Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
@babel/eslint-plugin: remove deprecated rules (#10975)
- Loading branch information
1 parent
3dcb8ca
commit 4cb2148
Showing
13 changed files
with
5 additions
and
1,043 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,25 @@ | ||
import arrayBracketSpacing from "./rules/array-bracket-spacing"; | ||
import arrowParens from "./rules/arrow-parens"; | ||
import flowObjectType from "./rules/flow-object-type"; | ||
import funcParamsCommaDangle from "./rules/func-params-comma-dangle"; | ||
import generatorStarSpacing from "./rules/generator-star-spacing"; | ||
import newCap from "./rules/new-cap"; | ||
import camelcase from "./rules/camelcase"; | ||
import noAwaitInLoop from "./rules/no-await-in-loop"; | ||
import noInvalidThis from "./rules/no-invalid-this"; | ||
import noUnusedExpressions from "./rules/no-unused-expressions"; | ||
import objectCurlySpacing from "./rules/object-curly-spacing"; | ||
import objectShorthand from "./rules/object-shorthand"; | ||
import quotes from "./rules/quotes"; | ||
import semi from "./rules/semi"; | ||
import validTypeof from "./rules/valid-typeof"; | ||
|
||
module.exports = { | ||
rules: { | ||
"array-bracket-spacing": arrayBracketSpacing, | ||
"arrow-parens": arrowParens, | ||
"flow-object-type": flowObjectType, | ||
"func-params-comma-dangle": funcParamsCommaDangle, | ||
"generator-star-spacing": generatorStarSpacing, | ||
"new-cap": newCap, | ||
camelcase, | ||
"no-await-in-loop": noAwaitInLoop, | ||
"new-cap": newCap, | ||
"no-invalid-this": noInvalidThis, | ||
"no-unused-expressions": noUnusedExpressions, | ||
"object-curly-spacing": objectCurlySpacing, | ||
"object-shorthand": objectShorthand, | ||
quotes, | ||
semi, | ||
"valid-typeof": validTypeof, | ||
}, | ||
rulesConfig: { | ||
"array-bracket-spacing": "off", | ||
"arrow-parens": "off", | ||
camelcase: "off", | ||
"flow-object-type": "off", | ||
"func-params-comma-dangle": "off", | ||
"generator-star-spacing": "off", | ||
"new-cap": "off", | ||
"no-await-in-loop": "off", | ||
"no-invalid-this": "off", | ||
"no-unused-expressions": "off", | ||
"object-curly-spacing": "off", | ||
"object-shorthand": "off", | ||
quotes: "off", | ||
semi: "off", | ||
"valid-typeof": "off", | ||
}, | ||
}; |
45 changes: 0 additions & 45 deletions
45
eslint/babel-eslint-plugin/src/rules/array-bracket-spacing.js
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
30 changes: 0 additions & 30 deletions
30
eslint/babel-eslint-plugin/src/rules/func-params-comma-dangle.js
This file was deleted.
Oops, something went wrong.
42 changes: 0 additions & 42 deletions
42
eslint/babel-eslint-plugin/src/rules/generator-star-spacing.js
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.