Skip to content

Commit

Permalink
fixed the names of the rules (#11933)
Browse files Browse the repository at this point in the history
  • Loading branch information
AleksRap committed Aug 8, 2020
1 parent a827ca4 commit 32744b2
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions eslint/babel-eslint-plugin/README.md
Expand Up @@ -26,11 +26,11 @@ original ones as well!).
```json
{
"rules": {
"babel/new-cap": "error",
"babel/no-invalid-this": "error",
"babel/no-unused-expressions": "error",
"babel/object-curly-spacing": "error",
"babel/semi": "error"
"@babel/new-cap": "error",
"@babel/no-invalid-this": "error",
"@babel/no-unused-expressions": "error",
"@babel/object-curly-spacing": "error",
"@babel/semi": "error"
}
}
```
Expand All @@ -41,8 +41,8 @@ Each rule corresponds to a core `eslint` rule and has the same options.

馃洜: means it's autofixable with `--fix`.

- `babel/new-cap`: handles decorators (`@Decorator`)
- `babel/no-invalid-this`: handles class fields and private class methods (`class A { a = this.b; }`)
- `babel/no-unused-expressions`: handles `do` expressions
- `babel/object-curly-spacing`: handles `export * as x from "mod";` (馃洜)
- `babel/semi`: Handles class properties (馃洜)
- `@babel/new-cap`: handles decorators (`@Decorator`)
- `@babel/no-invalid-this`: handles class fields and private class methods (`class A { a = this.b; }`)
- `@babel/no-unused-expressions`: handles `do` expressions
- `@babel/object-curly-spacing`: handles `export * as x from "mod";` (馃洜)
- `@babel/semi`: Handles class properties (馃洜)

0 comments on commit 32744b2

Please sign in to comment.