ecma6 complete

This commit is contained in:
Timo Hocker 2019-12-20 13:24:49 +01:00
parent d161f6f300
commit a174e49ae9

View File

@ -249,30 +249,29 @@ module.exports = {
'wrap-regex': 'error', 'wrap-regex': 'error',
// ECMAScript 6 https://eslint.org/docs/rules/#ecmascript-6 // ECMAScript 6 https://eslint.org/docs/rules/#ecmascript-6
'arrow-body-style': null, // https://eslint.org/docs/rules/arrow-body-style // require braces around arrow function bodies 'arrow-body-style': ['error', 'as-needed'],
'arrow-parens': null, // https://eslint.org/docs/rules/arrow-parens // require parentheses around arrow function arguments 'arrow-parens': 'error',
'arrow-spacing': null, // https://eslint.org/docs/rules/arrow-spacing // enforce consistent spacing before and after the arrow in arrow functions 'arrow-spacing': 'error',
'generator-star-spacing': null, // https://eslint.org/docs/rules/generator-star-spacing // enforce consistent spacing around `*` operators in generator functions 'generator-star-spacing': 'error',
'no-confusing-arrow': null, // https://eslint.org/docs/rules/no-confusing-arrow // disallow arrow functions where they could be confused with comparisons 'no-confusing-arrow': 'error',
'no-duplicate-imports': null, // https://eslint.org/docs/rules/no-duplicate-imports // disallow duplicate module imports 'no-duplicate-imports': 'error',
'no-restricted-imports': null, // https://eslint.org/docs/rules/no-restricted-imports // disallow specified modules when loaded by `import` 'no-useless-computed-key': 'error',
'no-useless-computed-key': null, // https://eslint.org/docs/rules/no-useless-computed-key // disallow unnecessary computed property keys in objects and classes 'no-useless-constructor': 'error',
'no-useless-constructor': null, // https://eslint.org/docs/rules/no-useless-constructor // disallow unnecessary constructors 'no-useless-rename': 'error',
'no-useless-rename': null, // https://eslint.org/docs/rules/no-useless-rename // disallow renaming import, export, and destructured assignments to the same name 'no-var': 'error',
'no-var': null, // https://eslint.org/docs/rules/no-var // require `let` or `const` instead of `var` 'object-shorthand': 'error',
'object-shorthand': null, // https://eslint.org/docs/rules/object-shorthand // require or disallow method and property shorthand syntax for object literals 'prefer-arrow-callback': 'error',
'prefer-arrow-callback': null, // https://eslint.org/docs/rules/prefer-arrow-callback // require using arrow functions for callbacks 'prefer-const': 'error',
'prefer-const': null, // https://eslint.org/docs/rules/prefer-const // require `const` declarations for variables that are never reassigned after declared 'prefer-destructuring': 'error',
'prefer-destructuring': null, // https://eslint.org/docs/rules/prefer-destructuring // require destructuring from arrays and/or objects 'prefer-numeric-literals': 'error',
'prefer-numeric-literals': null, // https://eslint.org/docs/rules/prefer-numeric-literals // disallow `parseInt()` and `Number.parseInt()` in favor of binary, octal, and hexadecimal literals 'prefer-rest-params': 'error',
'prefer-rest-params': null, // https://eslint.org/docs/rules/prefer-rest-params // require rest parameters instead of `arguments` 'prefer-spread': 'error',
'prefer-spread': null, // https://eslint.org/docs/rules/prefer-spread // require spread operators instead of `.apply()` 'prefer-template': 'error',
'prefer-template': null, // https://eslint.org/docs/rules/prefer-template // require template literals instead of string concatenation 'rest-spread-spacing': 'error',
'rest-spread-spacing': null, // https://eslint.org/docs/rules/rest-spread-spacing // enforce spacing between rest and spread operators and their expressions 'sort-imports': 'error',
'sort-imports': null, // https://eslint.org/docs/rules/sort-imports // enforce sorted import declarations within modules 'symbol-description': 'error',
'symbol-description': null, // https://eslint.org/docs/rules/symbol-description // require symbol descriptions 'template-curly-spacing': 'error',
'template-curly-spacing': null, // https://eslint.org/docs/rules/template-curly-spacing // require or disallow spacing around embedded expressions of template strings 'yield-star-spacing': 'error'
'yield-star-spacing': '' // require or disallow spacing around the `*` in `yield*` expressions
} }
} }