remove from eslint:recommended inherited settings
This commit is contained in:
parent
972e29f97a
commit
9963e8b9f2
54
index.js
54
index.js
@ -2,46 +2,18 @@ module.exports = {
|
|||||||
|
|
||||||
globals: {},
|
globals: {},
|
||||||
|
|
||||||
|
extends: 'eslint:recommended',
|
||||||
|
|
||||||
rules: {
|
rules: {
|
||||||
// Possible Errors https://eslint.org/docs/rules/#possible-errors
|
// Possible Errors https://eslint.org/docs/rules/#possible-errors
|
||||||
'for-direction': 'error',
|
|
||||||
'getter-return': ['error', { allowImplicit: false }],
|
|
||||||
'no-async-promise-executor': 'error',
|
|
||||||
'no-await-in-loop': 'warn',
|
'no-await-in-loop': 'warn',
|
||||||
'no-compare-neg-zero': 'error',
|
|
||||||
'no-cond-assign': ['error', 'except-parens'],
|
|
||||||
'no-console': 'warn',
|
'no-console': 'warn',
|
||||||
'no-constant-condition': ['error', { checkLoops: false }],
|
'no-constant-condition': ['error', { checkLoops: false }],
|
||||||
'no-control-regex': 'error',
|
|
||||||
'no-debugger': 'warn',
|
|
||||||
'no-dupe-args': 'error',
|
|
||||||
'no-dupe-else-if': 'error',
|
'no-dupe-else-if': 'error',
|
||||||
'no-dupe-keys': 'error',
|
|
||||||
'no-duplicate-case': 'error',
|
|
||||||
'no-empty': 'error',
|
|
||||||
'no-empty-character-class': 'error',
|
|
||||||
'no-ex-assign': 'error',
|
|
||||||
'no-extra-boolean-cast': 'error',
|
|
||||||
'no-extra-parens': ['error', { conditionalAssign: false }],
|
'no-extra-parens': ['error', { conditionalAssign: false }],
|
||||||
'no-extra-semi': 'error',
|
|
||||||
'no-func-assign': 'error',
|
|
||||||
'no-import-assign': 'error',
|
'no-import-assign': 'error',
|
||||||
'no-inner-declarations': 'error',
|
|
||||||
'no-invalid-regexp': 'error',
|
|
||||||
'no-irregular-whitespace': 'error',
|
|
||||||
'no-misleading-character-class': 'error',
|
|
||||||
'no-obj-calls': 'error',
|
|
||||||
'no-prototype-builtins': 'error',
|
|
||||||
'no-regex-spaces': 'error',
|
|
||||||
'no-setter-return': 'error',
|
'no-setter-return': 'error',
|
||||||
'no-sparse-arrays': 'error',
|
|
||||||
'no-template-curly-in-string': 'error',
|
'no-template-curly-in-string': 'error',
|
||||||
'no-unexpected-multiline': 'error',
|
|
||||||
'no-unreachable': 'error',
|
|
||||||
'no-unsafe-finally': 'error',
|
|
||||||
'no-unsafe-negation': 'error',
|
|
||||||
'require-atomic-updates': 'error',
|
|
||||||
'use-isnan': 'error',
|
|
||||||
'valid-typeof': ['error', { requireStringLiterals: true }],
|
'valid-typeof': ['error', { requireStringLiterals: true }],
|
||||||
|
|
||||||
// Best Practices https://eslint.org/docs/rules/#best-practices
|
// Best Practices https://eslint.org/docs/rules/#best-practices
|
||||||
@ -62,12 +34,10 @@ module.exports = {
|
|||||||
'max-classes-per-file': ['error', 1],
|
'max-classes-per-file': ['error', 1],
|
||||||
'no-alert': 'error',
|
'no-alert': 'error',
|
||||||
'no-caller': 'error',
|
'no-caller': 'error',
|
||||||
'no-case-declarations': 'error',
|
|
||||||
'no-constructor-return': 'error',
|
'no-constructor-return': 'error',
|
||||||
'no-div-regex': 'error',
|
'no-div-regex': 'error',
|
||||||
'no-else-return': ['error', { allowElseIf: false }],
|
'no-else-return': ['error', { allowElseIf: false }],
|
||||||
'no-empty-function': 'error',
|
'no-empty-function': 'error',
|
||||||
'no-empty-pattern': 'error',
|
|
||||||
'no-eq-null': 'error',
|
'no-eq-null': 'error',
|
||||||
'no-eval': ['error', { allowIndirect: false }],
|
'no-eval': ['error', { allowIndirect: false }],
|
||||||
'no-extend-native': 'error',
|
'no-extend-native': 'error',
|
||||||
@ -75,7 +45,6 @@ module.exports = {
|
|||||||
'no-extra-label': 'error',
|
'no-extra-label': 'error',
|
||||||
'no-fallthrough': ['error', { commentPattern: 'break[\\s\\w]*omitted' }],
|
'no-fallthrough': ['error', { commentPattern: 'break[\\s\\w]*omitted' }],
|
||||||
'no-floating-decimal': 'error',
|
'no-floating-decimal': 'error',
|
||||||
'no-global-assign': 'error',
|
|
||||||
'no-implicit-coercion': 'error',
|
'no-implicit-coercion': 'error',
|
||||||
'no-implicit-globals': 'error',
|
'no-implicit-globals': 'error',
|
||||||
'no-implied-eval': 'error',
|
'no-implied-eval': 'error',
|
||||||
@ -90,30 +59,23 @@ module.exports = {
|
|||||||
'no-new': 'error',
|
'no-new': 'error',
|
||||||
'no-new-func': '', // disallow `new` operators with the `Function` object
|
'no-new-func': '', // disallow `new` operators with the `Function` object
|
||||||
'no-new-wrappers': '', // disallow `new` operators with the `String`, `Number`, and `Boolean` objects
|
'no-new-wrappers': '', // disallow `new` operators with the `String`, `Number`, and `Boolean` objects
|
||||||
'no-octal': '', // disallow octal literals
|
|
||||||
'no-octal-escape': '', // disallow octal escape sequences in string literals
|
'no-octal-escape': '', // disallow octal escape sequences in string literals
|
||||||
'no-param-reassign': '', // disallow reassigning `function` parameters
|
'no-param-reassign': '', // disallow reassigning `function` parameters
|
||||||
'no-proto': 'error',
|
'no-proto': 'error',
|
||||||
'no-redeclare': 'error',
|
|
||||||
'no-restricted-properties': '', // disallow certain properties on certain objects
|
'no-restricted-properties': '', // disallow certain properties on certain objects
|
||||||
'no-return-assign': '', // disallow assignment operators in `return` statements
|
'no-return-assign': '', // disallow assignment operators in `return` statements
|
||||||
'no-return-await': 'error',
|
'no-return-await': 'error',
|
||||||
'no-script-url': '', // disallow `javascript:` urls
|
'no-script-url': '', // disallow `javascript:` urls
|
||||||
'no-self-assign': 'error',
|
|
||||||
'no-self-compare': 'error',
|
'no-self-compare': 'error',
|
||||||
'no-sequences': '', // disallow comma operators
|
'no-sequences': '', // disallow comma operators
|
||||||
'no-throw-literal': '', // disallow throwing literals as exceptions
|
'no-throw-literal': '', // disallow throwing literals as exceptions
|
||||||
'no-unmodified-loop-condition': '', // disallow unmodified loop conditions
|
'no-unmodified-loop-condition': '', // disallow unmodified loop conditions
|
||||||
'no-unused-expressions': 'error',
|
'no-unused-expressions': 'error',
|
||||||
'no-unused-labels': '', // disallow unused labels
|
|
||||||
'no-useless-call': '', // disallow unnecessary calls to `.call()` and `.apply()`
|
'no-useless-call': '', // disallow unnecessary calls to `.call()` and `.apply()`
|
||||||
'no-useless-catch': '', // disallow unnecessary `catch` clauses
|
|
||||||
'no-useless-concat': 'error',
|
'no-useless-concat': 'error',
|
||||||
'no-useless-escape': 'error',
|
|
||||||
'no-useless-return': 'error',
|
'no-useless-return': 'error',
|
||||||
'no-void': '', // disallow `void` operators
|
'no-void': '', // disallow `void` operators
|
||||||
'no-warning-comments': '', // disallow specified warning terms in comments
|
'no-warning-comments': '', // disallow specified warning terms in comments
|
||||||
'no-with': '', // disallow `with` statements
|
|
||||||
'prefer-named-capture-group': '', // enforce using named capture group in regular expression
|
'prefer-named-capture-group': '', // enforce using named capture group in regular expression
|
||||||
'prefer-promise-reject-errors': '', // require using Error objects as Promise rejection reasons
|
'prefer-promise-reject-errors': '', // require using Error objects as Promise rejection reasons
|
||||||
'prefer-regex-literals': '', // disallow use of the `RegExp` constructor in favor of regular expression literals
|
'prefer-regex-literals': '', // disallow use of the `RegExp` constructor in favor of regular expression literals
|
||||||
@ -129,15 +91,11 @@ module.exports = {
|
|||||||
// ## Variables
|
// ## Variables
|
||||||
// These rules relate to variable declarations:
|
// These rules relate to variable declarations:
|
||||||
'init-declarations': '', // require or disallow initialization in variable declarations
|
'init-declarations': '', // require or disallow initialization in variable declarations
|
||||||
'no-delete-var': '', // disallow deleting variables
|
|
||||||
'no-label-var': '', // disallow labels that share a name with a variable
|
'no-label-var': '', // disallow labels that share a name with a variable
|
||||||
'no-restricted-globals': '', // disallow specified global variables
|
'no-restricted-globals': '', // disallow specified global variables
|
||||||
'no-shadow': '', // disallow variable declarations from shadowing variables declared in the outer scope
|
'no-shadow': '', // disallow variable declarations from shadowing variables declared in the outer scope
|
||||||
'no-shadow-restricted-names': '', // disallow identifiers from shadowing restricted names
|
|
||||||
'no-undef': '', // disallow the use of undeclared variables unless mentioned in `/*global */` comments
|
|
||||||
'no-undef-init': '', // disallow initializing variables to `undefined`
|
'no-undef-init': '', // disallow initializing variables to `undefined`
|
||||||
'no-undefined': '', // disallow the use of `undefined` as an identifier
|
'no-undefined': '', // disallow the use of `undefined` as an identifier
|
||||||
'no-unused-vars': '', // disallow unused variables
|
|
||||||
'no-use-before-define': '', // disallow the use of variables before they are defined
|
'no-use-before-define': '', // disallow the use of variables before they are defined
|
||||||
// ## Node.js and CommonJS
|
// ## Node.js and CommonJS
|
||||||
// These rules relate to code running in Node.js, or in browsers with CommonJS:
|
// These rules relate to code running in Node.js, or in browsers with CommonJS:
|
||||||
@ -204,7 +162,6 @@ module.exports = {
|
|||||||
'no-inline-comments': '', // disallow inline comments after code
|
'no-inline-comments': '', // disallow inline comments after code
|
||||||
'no-lonely-if': '', // disallow `if` statements as the only statement in `else` blocks
|
'no-lonely-if': '', // disallow `if` statements as the only statement in `else` blocks
|
||||||
'no-mixed-operators': '', // disallow mixed binary operators
|
'no-mixed-operators': '', // disallow mixed binary operators
|
||||||
'no-mixed-spaces-and-tabs': '', // disallow mixed spaces and tabs for indentation
|
|
||||||
'no-multi-assign': '', // disallow use of chained assignment expressions
|
'no-multi-assign': '', // disallow use of chained assignment expressions
|
||||||
'no-multiple-empty-lines': '', // disallow multiple empty lines
|
'no-multiple-empty-lines': '', // disallow multiple empty lines
|
||||||
'no-negated-condition': '', // disallow negated conditions
|
'no-negated-condition': '', // disallow negated conditions
|
||||||
@ -252,16 +209,10 @@ module.exports = {
|
|||||||
'arrow-body-style': '', // require braces around arrow function bodies
|
'arrow-body-style': '', // require braces around arrow function bodies
|
||||||
'arrow-parens': '', // require parentheses around arrow function arguments
|
'arrow-parens': '', // require parentheses around arrow function arguments
|
||||||
'arrow-spacing': '', // enforce consistent spacing before and after the arrow in arrow functions
|
'arrow-spacing': '', // enforce consistent spacing before and after the arrow in arrow functions
|
||||||
'constructor-super': '', // require `super()` calls in constructors
|
|
||||||
'generator-star-spacing': '', // enforce consistent spacing around `*` operators in generator functions
|
'generator-star-spacing': '', // enforce consistent spacing around `*` operators in generator functions
|
||||||
'no-class-assign': '', // disallow reassigning class members
|
|
||||||
'no-confusing-arrow': '', // disallow arrow functions where they could be confused with comparisons
|
'no-confusing-arrow': '', // disallow arrow functions where they could be confused with comparisons
|
||||||
'no-const-assign': '', // disallow reassigning `const` variables
|
|
||||||
'no-dupe-class-members': '', // disallow duplicate class members
|
|
||||||
'no-duplicate-imports': '', // disallow duplicate module imports
|
'no-duplicate-imports': '', // disallow duplicate module imports
|
||||||
'no-new-symbol': '', // disallow `new` operators with the `Symbol` object
|
|
||||||
'no-restricted-imports': '', // disallow specified modules when loaded by `import`
|
'no-restricted-imports': '', // disallow specified modules when loaded by `import`
|
||||||
'no-this-before-super': '', // disallow `this`/`super` before calling `super()` in constructors
|
|
||||||
'no-useless-computed-key': '', // disallow unnecessary computed property keys in objects and classes
|
'no-useless-computed-key': '', // disallow unnecessary computed property keys in objects and classes
|
||||||
'no-useless-constructor': '', // disallow unnecessary constructors
|
'no-useless-constructor': '', // disallow unnecessary constructors
|
||||||
'no-useless-rename': '', // disallow renaming import, export, and destructured assignments to the same name
|
'no-useless-rename': '', // disallow renaming import, export, and destructured assignments to the same name
|
||||||
@ -274,7 +225,6 @@ module.exports = {
|
|||||||
'prefer-rest-params': '', // require rest parameters instead of `arguments`
|
'prefer-rest-params': '', // require rest parameters instead of `arguments`
|
||||||
'prefer-spread': '', // require spread operators instead of `.apply()`
|
'prefer-spread': '', // require spread operators instead of `.apply()`
|
||||||
'prefer-template': '', // require template literals instead of string concatenation
|
'prefer-template': '', // require template literals instead of string concatenation
|
||||||
'require-yield': '', // require generator functions to contain `yield`
|
|
||||||
'rest-spread-spacing': '', // enforce spacing between rest and spread operators and their expressions
|
'rest-spread-spacing': '', // enforce spacing between rest and spread operators and their expressions
|
||||||
'sort-imports': '', // enforce sorted import declarations within modules
|
'sort-imports': '', // enforce sorted import declarations within modules
|
||||||
'symbol-description': '', // require symbol descriptions
|
'symbol-description': '', // require symbol descriptions
|
||||||
|
Loading…
x
Reference in New Issue
Block a user