* Ensure compilation works for @babel/eslint-parser * Update with review suggestions * Incorporate feedback :)
16 lines
428 B
JavaScript
16 lines
428 B
JavaScript
import { types as t } from "@babel/core";
|
|
import { KEYS as ESLINT_VISITOR_KEYS } from "eslint-visitor-keys";
|
|
|
|
const { VISITOR_KEYS: BABEL_VISITOR_KEYS } = t;
|
|
|
|
export default Object.assign(
|
|
{
|
|
Literal: ESLINT_VISITOR_KEYS.Literal,
|
|
MethodDefinition: ["decorators"].concat(
|
|
ESLINT_VISITOR_KEYS.MethodDefinition,
|
|
),
|
|
Property: ["decorators"].concat(ESLINT_VISITOR_KEYS.Property),
|
|
},
|
|
BABEL_VISITOR_KEYS,
|
|
);
|