@babel/eslint-plugin-developement
A set of eslint rules to enforce best practices in the development of Babel plugins.
Installation
You'll first need to install ESLint:
$ npm install --save-dev eslint
Next, install @babel/eslint-plugin-developement:
$ npm install --save-dev @babel/eslint-plugin-developement
Then, load the plugin in your .eslintrc configuration file. You can omit the eslint-plugin- prefix:
{
"plugins": ["@babel/developement"]
}
Supported Rules
Note: Rules marked with 🔧 are autofixable.
@babel/developement/no-deprecated-clone(🔧): Disallows using the deprecatedt.clone(node)andt.cloneDeep(node)methods from@babel/types. Those calls are replaced witht.cloneNode(node)when usingeslint --fix.@babel/developement/no-undefined-identifier: Disallows usingt.identifier("undefined")to create a node which represents anundefinedvalue, since it might cause problem ifundefinedis redeclared.@babel/developement/plugin-name: Requires plugins to have anameproperty, which can be useful for debugging purposes.