Skip to content

Commit

Permalink
enable and ignore all errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mvorisek committed Dec 4, 2022
1 parent cd03928 commit 988db67
Showing 1 changed file with 50 additions and 1 deletion.
51 changes: 50 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ module.exports = {
},
extends: [
'airbnb-base',
'plugin:unicorn/recommended',
],
parserOptions: {
ecmaVersion: '2020',
Expand Down Expand Up @@ -64,6 +65,16 @@ module.exports = {
}],
'import/no-unresolved': 'off',
'import/prefer-default-export': 'off',
'unicorn/catch-error-name': 'off',
'unicorn/no-array-callback-reference': 'off',
'unicorn/no-lonely-if': 'off',
'unicorn/no-negated-condition': 'off',
'unicorn/no-null': 'off',
'unicorn/no-this-assignment': 'off',
'unicorn/prefer-module': 'off',
'unicorn/prevent-abbreviations': 'off',
'unicorn/switch-case-braces': ['error', 'avoid'],
'unicorn/numeric-separators-style': 'off',

// TODO for general fix/review, a lot of errors
'semi-style': 'off',
Expand All @@ -88,8 +99,32 @@ module.exports = {
strict: 'off',
'import/no-dynamic-require': 'off',
'import/extensions': 'off',
'unicorn/better-regex': 'off',
'unicorn/empty-brace-spaces': 'off',
'unicorn/escape-case': 'off',
'unicorn/new-for-builtins': 'off',
'unicorn/no-array-for-each': 'off',
'unicorn/no-console-spaces': 'off',
'unicorn/no-for-loop': 'off',
'unicorn/no-hex-escape': 'off',
'unicorn/no-instanceof-array': 'off', // TODO
'unicorn/no-typeof-undefined': 'off', // TODO
'unicorn/no-useless-undefined': 'off', // TODO
'unicorn/prefer-array-find': 'off', // TODO
'unicorn/prefer-array-some': 'off',
'unicorn/prefer-date-now': 'off',
'unicorn/prefer-includes': 'off',
'unicorn/prefer-native-coercion-functions': 'off', // TODO
'unicorn/prefer-negative-index': 'off', // TODO
'unicorn/prefer-node-protocol': 'off',
'unicorn/prefer-optional-catch-binding': 'off',
'unicorn/prefer-prototype-methods': 'off',
'unicorn/prefer-reflect-apply': 'off', // TODO
'unicorn/prefer-regexp-test': 'off',
'unicorn/prefer-switch': 'off',
'unicorn/prefer-ternary': 'off',

// TODO impossible to autofix (about 200 errors in total)
// TODO impossible to autofix (about 250 errors in total)
'no-path-concat': 'off',
'no-mixed-operators': 'off',
'no-restricted-globals': 'off',
Expand All @@ -108,6 +143,20 @@ module.exports = {
'no-empty': 'off',
'no-self-assign': 'off',
'guard-for-in': 'off',
'no-loop-func': 'off', // TODO
'unicorn/consistent-function-scoping': 'off',
'unicorn/explicit-length-check': 'off',
'unicorn/no-nested-ternary': 'off',
'unicorn/no-process-exit': 'off',
'unicorn/no-useless-switch-case': 'off',
'unicorn/prefer-add-event-listener': 'off',
'unicorn/prefer-code-point': 'off',
'unicorn/prefer-default-parameters': 'off',
'unicorn/prefer-logical-operator-over-ternary': 'off',
'unicorn/prefer-number-properties': 'off',
'unicorn/prefer-spread': 'off',
'unicorn/prefer-string-slice': 'off',
'unicorn/prefer-top-level-await': 'off',
},
reportUnusedDisableDirectives: true,
};

0 comments on commit 988db67

Please sign in to comment.