eol-last and recommended rules

This commit is contained in:
Timo Hocker 2019-12-19 13:45:07 +01:00
parent b22579bf69
commit 684f42dd8c

View File

@ -124,7 +124,7 @@ module.exports = {
'comma-style': 'error', 'comma-style': 'error',
'computed-property-spacing': ['error', 'never'], 'computed-property-spacing': ['error', 'never'],
'consistent-this': 'error', 'consistent-this': 'error',
'eol-last': null, // https://eslint.org/docs/rules/eol-last // require or disallow newline at the end of files 'eol-last': 'error',
'func-call-spacing': null, // https://eslint.org/docs/rules/func-call-spacing // require or disallow spacing between function identifiers and their invocations 'func-call-spacing': null, // https://eslint.org/docs/rules/func-call-spacing // require or disallow spacing between function identifiers and their invocations
'func-name-matching': null, // https://eslint.org/docs/rules/func-name-matching // require function names to match the name of the variable or property to which they are assigned 'func-name-matching': null, // https://eslint.org/docs/rules/func-name-matching // require function names to match the name of the variable or property to which they are assigned
'func-names': null, // https://eslint.org/docs/rules/func-names // require or disallow named `function` expressions 'func-names': null, // https://eslint.org/docs/rules/func-names // require or disallow named `function` expressions
@ -163,7 +163,7 @@ module.exports = {
'no-lonely-if': null, // https://eslint.org/docs/rules/no-lonely-if // disallow `if` statements as the only statement in `else` blocks 'no-lonely-if': null, // https://eslint.org/docs/rules/no-lonely-if // disallow `if` statements as the only statement in `else` blocks
'no-mixed-operators': null, // https://eslint.org/docs/rules/no-mixed-operators // disallow mixed binary operators 'no-mixed-operators': null, // https://eslint.org/docs/rules/no-mixed-operators // disallow mixed binary operators
'no-multi-assign': null, // https://eslint.org/docs/rules/no-multi-assign // disallow use of chained assignment expressions 'no-multi-assign': null, // https://eslint.org/docs/rules/no-multi-assign // disallow use of chained assignment expressions
'no-multiple-empty-lines': null, // https://eslint.org/docs/rules/no-multiple-empty-lines // disallow multiple empty lines 'no-multiple-empty-lines': ['error', { max: 2, maxEOF: 1, maxBOF: 0 }],
'no-negated-condition': null, // https://eslint.org/docs/rules/no-negated-condition // disallow negated conditions 'no-negated-condition': null, // https://eslint.org/docs/rules/no-negated-condition // disallow negated conditions
'no-nested-ternary': null, // https://eslint.org/docs/rules/no-nested-ternary // disallow nested ternary expressions 'no-nested-ternary': null, // https://eslint.org/docs/rules/no-nested-ternary // disallow nested ternary expressions
'no-new-object': null, // https://eslint.org/docs/rules/no-new-object // disallow `Object` constructors 'no-new-object': null, // https://eslint.org/docs/rules/no-new-object // disallow `Object` constructors
@ -171,7 +171,7 @@ module.exports = {
'no-restricted-syntax': null, // https://eslint.org/docs/rules/no-restricted-syntax // disallow specified syntax 'no-restricted-syntax': null, // https://eslint.org/docs/rules/no-restricted-syntax // disallow specified syntax
'no-tabs': null, // https://eslint.org/docs/rules/no-tabs // disallow all tabs 'no-tabs': null, // https://eslint.org/docs/rules/no-tabs // disallow all tabs
'no-ternary': null, // https://eslint.org/docs/rules/no-ternary // disallow ternary operators 'no-ternary': null, // https://eslint.org/docs/rules/no-ternary // disallow ternary operators
'no-trailing-spaces': null, // https://eslint.org/docs/rules/no-trailing-spaces // disallow trailing whitespace at the end of lines 'no-trailing-spaces': 'error',
'no-underscore-dangle': null, // https://eslint.org/docs/rules/no-underscore-dangle // disallow dangling underscores in identifiers 'no-underscore-dangle': null, // https://eslint.org/docs/rules/no-underscore-dangle // disallow dangling underscores in identifiers
'no-unneeded-ternary': null, // https://eslint.org/docs/rules/no-unneeded-ternary // disallow ternary operators when simpler alternatives exist 'no-unneeded-ternary': null, // https://eslint.org/docs/rules/no-unneeded-ternary // disallow ternary operators when simpler alternatives exist
'no-whitespace-before-property': null, // https://eslint.org/docs/rules/no-whitespace-before-property // disallow whitespace before properties 'no-whitespace-before-property': null, // https://eslint.org/docs/rules/no-whitespace-before-property // disallow whitespace before properties