@babel/eslint-plugin-development

7.27.1 • Public • Published

@babel/eslint-plugin-development

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-development:

$ npm install --save-dev @babel/eslint-plugin-development

Then, load the plugin in your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
  "plugins": ["@babel/development"]
}

Supported Rules

[!NOTE] Rules marked with 🔧 are autofixable.

  • @babel/development/no-deprecated-clone (:wrench:): Disallows using the deprecated t.clone(node) and t.cloneDeep(node) methods from @babel/types. Those calls are replaced with t.cloneNode(node) when using eslint --fix.
  • @babel/development/no-undefined-identifier: Disallows using t.identifier("undefined") to create a node which represents an undefined value, since it might cause problem if undefined is redeclared.
  • @babel/development/plugin-name: Requires plugins to have a name property, which can be useful for debugging purposes.

/@babel/eslint-plugin-development/

    Package Sidebar

    Install

    npm i @babel/eslint-plugin-development

    Homepage

    babel.dev/

    Weekly Downloads

    281

    Version

    7.27.1

    License

    MIT

    Unpacked Size

    33.2 kB

    Total Files

    19

    Last publish

    Collaborators

    • hzoo
    • existentialism
    • nicolo-ribaudo
    • jlhwung