From 9963e8b9f29a484a1de982a98fae23cd46697e2a Mon Sep 17 00:00:00 2001 From: Timo Hocker Date: Tue, 17 Dec 2019 08:47:50 +0100 Subject: [PATCH] remove from eslint:recommended inherited settings --- index.js | 54 ++---------------------------------------------------- 1 file changed, 2 insertions(+), 52 deletions(-) diff --git a/index.js b/index.js index 374898d..709f64f 100644 --- a/index.js +++ b/index.js @@ -2,46 +2,18 @@ module.exports = { globals: {}, + extends: 'eslint:recommended', + rules: { // 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-compare-neg-zero': 'error', - 'no-cond-assign': ['error', 'except-parens'], 'no-console': 'warn', 'no-constant-condition': ['error', { checkLoops: false }], - 'no-control-regex': 'error', - 'no-debugger': 'warn', - 'no-dupe-args': '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-semi': 'error', - 'no-func-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-sparse-arrays': '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 }], // Best Practices https://eslint.org/docs/rules/#best-practices @@ -62,12 +34,10 @@ module.exports = { 'max-classes-per-file': ['error', 1], 'no-alert': 'error', 'no-caller': 'error', - 'no-case-declarations': 'error', 'no-constructor-return': 'error', 'no-div-regex': 'error', 'no-else-return': ['error', { allowElseIf: false }], 'no-empty-function': 'error', - 'no-empty-pattern': 'error', 'no-eq-null': 'error', 'no-eval': ['error', { allowIndirect: false }], 'no-extend-native': 'error', @@ -75,7 +45,6 @@ module.exports = { 'no-extra-label': 'error', 'no-fallthrough': ['error', { commentPattern: 'break[\\s\\w]*omitted' }], 'no-floating-decimal': 'error', - 'no-global-assign': 'error', 'no-implicit-coercion': 'error', 'no-implicit-globals': 'error', 'no-implied-eval': 'error', @@ -90,30 +59,23 @@ module.exports = { 'no-new': 'error', 'no-new-func': '', // disallow `new` operators with the `Function` object '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-param-reassign': '', // disallow reassigning `function` parameters 'no-proto': 'error', - 'no-redeclare': 'error', 'no-restricted-properties': '', // disallow certain properties on certain objects 'no-return-assign': '', // disallow assignment operators in `return` statements 'no-return-await': 'error', 'no-script-url': '', // disallow `javascript:` urls - 'no-self-assign': 'error', 'no-self-compare': 'error', 'no-sequences': '', // disallow comma operators 'no-throw-literal': '', // disallow throwing literals as exceptions 'no-unmodified-loop-condition': '', // disallow unmodified loop conditions 'no-unused-expressions': 'error', - 'no-unused-labels': '', // disallow unused labels 'no-useless-call': '', // disallow unnecessary calls to `.call()` and `.apply()` - 'no-useless-catch': '', // disallow unnecessary `catch` clauses 'no-useless-concat': 'error', - 'no-useless-escape': 'error', 'no-useless-return': 'error', 'no-void': '', // disallow `void` operators '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-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 @@ -129,15 +91,11 @@ module.exports = { // ## Variables // These rules relate to 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-restricted-globals': '', // disallow specified global variables '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-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 // ## Node.js and 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-lonely-if': '', // disallow `if` statements as the only statement in `else` blocks '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-multiple-empty-lines': '', // disallow multiple empty lines 'no-negated-condition': '', // disallow negated conditions @@ -252,16 +209,10 @@ module.exports = { 'arrow-body-style': '', // require braces around arrow function bodies 'arrow-parens': '', // require parentheses around arrow function arguments '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 - 'no-class-assign': '', // disallow reassigning class members '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-new-symbol': '', // disallow `new` operators with the `Symbol` object '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-constructor': '', // disallow unnecessary constructors '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-spread': '', // require spread operators instead of `.apply()` '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 'sort-imports': '', // enforce sorted import declarations within modules 'symbol-description': '', // require symbol descriptions