From cc2d73834309c6bbae73e2d3b242b38b02e37520 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=B2=20Ribaudo?= Date: Tue, 18 Dec 2018 21:23:50 +0100 Subject: [PATCH] Update readme with the new package name --- eslint/babel-eslint-plugin-development/README.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/eslint/babel-eslint-plugin-development/README.md b/eslint/babel-eslint-plugin-development/README.md index 524706c592..a5c3d82712 100644 --- a/eslint/babel-eslint-plugin-development/README.md +++ b/eslint/babel-eslint-plugin-development/README.md @@ -1,4 +1,4 @@ -# eslint-plugin-babel-plugin +# @babel/eslint-plugin-developement A set of eslint rules to enforce best practices in the development of Babel plugins. @@ -10,17 +10,17 @@ You'll first need to install [ESLint](http://eslint.org): $ npm install --save-dev eslint ``` -Next, install `eslint-plugin-babel-plugin`: +Next, install `@babel/eslint-plugin-developement`: ``` -$ npm install --save-dev eslint-plugin-babel-plugin +$ npm install --save-dev @babel/eslint-plugin-developement ``` Then, load the plugin in your `.eslintrc` configuration file. You can omit the `eslint-plugin-` prefix: ```json { - "plugins": ["babel-plugin"] + "plugins": ["@babel/developement"] } ``` @@ -28,11 +28,11 @@ Then, load the plugin in your `.eslintrc` configuration file. You can omit the ` > Note: Rules marked with :wrench: are autofixable. -* `babel-plugin/no-deprecated-clone` (:wrench:): Disallows using the deprecated +* `@babel/developement/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-plugin/no-undefined-identifier`: Disallows using +* `@babel/developement/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-plugin/plugin-name`: Requires plugins to have a `name` property, which +* `@babel/developement/plugin-name`: Requires plugins to have a `name` property, which can be useful for debugging purposes.