mirror of
https://github.com/nodejs/node.git
synced 2025-05-09 21:00:01 +00:00

Create tools/update-babel-eslint.sh script and execute it to do the first installation of the package. Update tools/license-builder.sh and execute it to add babel-eslint's license to our LICENSE file. PR-URL: https://github.com/nodejs/node/pull/17820 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
16 lines
415 B
JavaScript
16 lines
415 B
JavaScript
"use strict";
|
|
|
|
const BABEL_VISITOR_KEYS = require("@babel/types").VISITOR_KEYS;
|
|
const ESLINT_VISITOR_KEYS = require("eslint-visitor-keys").KEYS;
|
|
|
|
module.exports = Object.assign(
|
|
{
|
|
Literal: ESLINT_VISITOR_KEYS.Literal,
|
|
MethodDefinition: ["decorators"].concat(
|
|
ESLINT_VISITOR_KEYS.MethodDefinition
|
|
),
|
|
Property: ["decorators"].concat(ESLINT_VISITOR_KEYS.Property),
|
|
},
|
|
BABEL_VISITOR_KEYS
|
|
);
|