more config

This commit is contained in:
Timo Hocker 2019-12-19 13:40:28 +01:00
parent 46d36cbc70
commit b22579bf69

View File

@ -112,18 +112,18 @@ module.exports = {
'no-sync': ['error', { allowAtRootLevel: true }],
// Stylistic Issues https://eslint.org/docs/rules/#stylistic-issues
'array-bracket-newline': null, // https://eslint.org/docs/rules/array-bracket-newline // enforce linebreaks after opening and before closing array brackets
'array-bracket-spacing': null, // https://eslint.org/docs/rules/array-bracket-spacing // enforce consistent spacing inside array brackets
'array-element-newline': null, // https://eslint.org/docs/rules/array-element-newline // enforce line breaks after each array element
'block-spacing': null, // https://eslint.org/docs/rules/block-spacing // disallow or enforce spaces inside of blocks after opening block and before closing block
'brace-style': null, // https://eslint.org/docs/rules/brace-style // enforce consistent brace style for blocks
camelcase: '', // enforce camelcase naming convention
'capitalized-comments': null, // https://eslint.org/docs/rules/capitalized-comments // enforce or disallow capitalization of the first letter of a comment
'comma-dangle': null, // https://eslint.org/docs/rules/comma-dangle // require or disallow trailing commas
'comma-spacing': null, // https://eslint.org/docs/rules/comma-spacing // enforce consistent spacing before and after commas
'comma-style': null, // https://eslint.org/docs/rules/comma-style // enforce consistent comma style
'computed-property-spacing': null, // https://eslint.org/docs/rules/computed-property-spacing // enforce consistent spacing inside computed property brackets
'consistent-this': null, // https://eslint.org/docs/rules/consistent-this // enforce consistent naming when capturing the current execution context
'array-bracket-newline': ['error', { multiline: true, minItems: 2 }],
'array-bracket-spacing': ['error', 'always'],
'array-element-newline': ['error', { multiline: true, minItems: 2 }],
'block-spacing': ['error', 'always'],
'brace-style': ['error', 'stroustrup', { allowSingleLine: true }],
camelcase: 'error',
'capitalized-comments': 'off',
'comma-dangle': ['error', 'never'],
'comma-spacing': 'error',
'comma-style': 'error',
'computed-property-spacing': ['error', 'never'],
'consistent-this': 'error',
'eol-last': null, // https://eslint.org/docs/rules/eol-last // require or disallow newline at the end of files
'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