fix some unspecified rules

This commit is contained in:
Timo Hocker 2019-12-15 20:06:15 +01:00
parent f312157cb6
commit 972e29f97a

View File

@ -64,28 +64,28 @@ module.exports = {
'no-caller': 'error', 'no-caller': 'error',
'no-case-declarations': 'error', 'no-case-declarations': 'error',
'no-constructor-return': 'error', 'no-constructor-return': 'error',
'no-div-regex': '', // disallow division operators explicitly at the beginning of regular expressions 'no-div-regex': 'error',
'no-else-return': 'error', 'no-else-return': ['error', { allowElseIf: false }],
'no-empty-function': 'error', 'no-empty-function': 'error',
'no-empty-pattern': 'error', 'no-empty-pattern': 'error',
'no-eq-null': '', // disallow `null` comparisons without type-checking operators 'no-eq-null': 'error',
'no-eval': 'error', 'no-eval': ['error', { allowIndirect: false }],
'no-extend-native': '', // disallow extending native types 'no-extend-native': 'error',
'no-extra-bind': '', // disallow unnecessary calls to `.bind()` 'no-extra-bind': 'error',
'no-extra-label': '', // disallow unnecessary labels 'no-extra-label': 'error',
'no-fallthrough': 'error', 'no-fallthrough': ['error', { commentPattern: 'break[\\s\\w]*omitted' }],
'no-floating-decimal': '', // disallow leading or trailing decimal points in numeric literals 'no-floating-decimal': 'error',
'no-global-assign': 'error', 'no-global-assign': 'error',
'no-implicit-coercion': '', // disallow shorthand type conversions 'no-implicit-coercion': 'error',
'no-implicit-globals': '', // disallow declarations in the global scope 'no-implicit-globals': 'error',
'no-implied-eval': 'error', 'no-implied-eval': 'error',
'no-invalid-this': 'error', 'no-invalid-this': 'error',
'no-iterator': 'error', 'no-iterator': 'error',
'no-labels': '', // disallow labeled statements 'no-labels': 'off',
'no-lone-blocks': 'error', 'no-lone-blocks': 'error',
'no-loop-func': 'error', 'no-loop-func': 'error',
'no-magic-numbers': '', // disallow magic numbers 'no-magic-numbers': ['error', { enforceConst: true, ignoreArrayIndexes: true, detectObjects: false }],
'no-multi-spaces': '', // disallow multiple spaces 'no-multi-spaces': 'error',
'no-multi-str': 'error', 'no-multi-str': 'error',
'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