* chore: use yarn 2 * chore: remove redundant yarn locks * chore: remove publishEslintPkg * chore: remove redundant make bootstrap * Update .yarnrc.yml Co-authored-by: Kristoffer K. <merceyz@users.noreply.github.com> * chore: use workspace protocol for eslint packages in the root Co-Authored-By: merceyz <merceyz@users.noreply.github.com> * chore: pin caniuse-lite versions Testcases in packages/babel-preset-env/test/fixtures/debug/browserslists-defaults-not-ie depends on specific caniuse-lite versions. We pinned the version here so we don't have to deal with fixture different in e2e-tests where all deps will be updated and tested. * chore: resolve yarn install warnings * chore: update yarn cache path on circle/travis * chore: add yarn deduplicate plugin * chore: deduplicate lock files * chore: move devDependencies to leaf packages * chore: remove @yarnpkg/plugin-constraints * chore: remove unused dedupe options * test: fix unwanted self reference * chore: remove output-file-sync dependency * chore: update browserify to 16.5.2 Co-authored-by: Kristoffer K. <merceyz@users.noreply.github.com>
@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(🔧): Disallows using the deprecatedt.clone(node)andt.cloneDeep(node)methods from@babel/types. Those calls are replaced witht.cloneNode(node)when usingeslint --fix.@babel/development/no-undefined-identifier: Disallows usingt.identifier("undefined")to create a node which represents anundefinedvalue, since it might cause problem ifundefinedis redeclared.@babel/development/plugin-name: Requires plugins to have anameproperty, which can be useful for debugging purposes.