docs: remove experimental warning on README (#11900)
This commit is contained in:
parent
231328aafc
commit
08054181c3
@ -1,8 +1,5 @@
|
||||
# @babel/eslint-parser [](https://www.npmjs.com/package/@babel/eslint-parser) [](https://travis-ci.org/babel/@babel/eslint-parser) [](https://www.npmjs.com/package/@babel/eslint-parser)
|
||||
|
||||
|
||||
## This project is still experimental and will be released with Babel v8. You can track our progress [here](https://github.com/babel/babel/issues/10752)! Please use [babel-eslint](https://github.com/babel/babel-eslint) in the meantime.
|
||||
|
||||
**@babel/eslint-parser** allows you to lint **ALL** valid Babel code with the fantastic
|
||||
[ESLint](https://github.com/eslint/eslint).
|
||||
|
||||
@ -83,14 +80,14 @@ This configuration would use the default parser for all files except for those f
|
||||
```js
|
||||
module.exports = {
|
||||
rules: {
|
||||
indent: "error"
|
||||
indent: "error",
|
||||
},
|
||||
overrides: [
|
||||
{
|
||||
files: ["files/transformed/by/babel/*.js"],
|
||||
parser: "@babel/eslint-parser",
|
||||
}
|
||||
]
|
||||
},
|
||||
],
|
||||
};
|
||||
```
|
||||
|
||||
|
||||
@ -1,12 +1,10 @@
|
||||
# @babel/eslint-plugin
|
||||
|
||||
## This project is still experimental and will be released with Babel v8. You can track our progress [here](https://github.com/babel/babel/issues/10752)! Please use [eslint-plugin-babel](https://github.com/babel/eslint-plugin-babel) in the meantime.
|
||||
|
||||
Companion rules for `@babel/eslint-parser`. `@babel/eslint-parser` does a great job at adapting `eslint`
|
||||
for use with Babel, but it can't change the built-in rules to support experimental features.
|
||||
`@babel/eslint-plugin` re-implements problematic rules so they do not give false positives or negatives.
|
||||
|
||||
> Requires Node 10.9 or greater
|
||||
> Requires Node 10.13 or greater
|
||||
|
||||
### Install
|
||||
|
||||
@ -18,7 +16,7 @@ Load the plugin in your `.eslintrc.json` file:
|
||||
|
||||
```json
|
||||
{
|
||||
"plugins": ["@babel/eslint-plugin"]
|
||||
"plugins": ["@babel"]
|
||||
}
|
||||
```
|
||||
|
||||
@ -32,10 +30,11 @@ original ones as well!).
|
||||
"babel/no-invalid-this": "error",
|
||||
"babel/no-unused-expressions": "error",
|
||||
"babel/object-curly-spacing": "error",
|
||||
"babel/semi": "error",
|
||||
"babel/semi": "error"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
### Rules
|
||||
|
||||
Each rule corresponds to a core `eslint` rule and has the same options.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user