mirror of
https://github.com/airbnb/javascript.git
synced 2026-04-25 03:00:19 -04:00
[eslint config] [base] add new rules in eslint 6.x, disabled
This commit is contained in:
@@ -28,6 +28,10 @@ module.exports = {
|
||||
// require default case in switch statements
|
||||
'default-case': ['error', { commentPattern: '^no default$' }],
|
||||
|
||||
// https://eslint.org/docs/rules/default-param-last
|
||||
// TODO: enable, semver-minor, when eslint v6.4 is required (which is a major)
|
||||
'default-param-last': 'off',
|
||||
|
||||
// encourages use of dot notation whenever possible
|
||||
'dot-notation': ['error', { allowKeywords: true }],
|
||||
|
||||
@@ -313,6 +317,10 @@ module.exports = {
|
||||
// https://eslint.org/docs/rules/prefer-named-capture-group
|
||||
'prefer-named-capture-group': 'off',
|
||||
|
||||
// https://eslint.org/docs/rules/prefer-regex-literals
|
||||
// TODO; enable, semver-minor, once eslint v6.4 is required (which is a major)
|
||||
'prefer-regex-literals': 'off',
|
||||
|
||||
// require use of the second argument for parseInt()
|
||||
radix: 'error',
|
||||
|
||||
|
||||
@@ -73,6 +73,10 @@ module.exports = {
|
||||
// disallow overwriting functions written as function declarations
|
||||
'no-func-assign': 'error',
|
||||
|
||||
// https://eslint.org/docs/rules/no-import-assign
|
||||
// TODO: enable, semver-minor, once eslint v6.4 is required (which is a major)
|
||||
'no-import-assign': 'off',
|
||||
|
||||
// disallow function or variable declarations in nested blocks
|
||||
'no-inner-declarations': 'error',
|
||||
|
||||
|
||||
@@ -76,6 +76,10 @@ module.exports = {
|
||||
// enforce newline at the end of file, with no multiple empty lines
|
||||
'eol-last': ['error', 'always'],
|
||||
|
||||
// https://eslint.org/docs/rules/function-call-argument-newline
|
||||
// TODO: enable, semver-minor, once eslint v6.2 is required (which is a major)
|
||||
'function-call-argument-newline': ['off', 'consistent'],
|
||||
|
||||
// enforce spacing between functions and their invocations
|
||||
// https://eslint.org/docs/rules/func-call-spacing
|
||||
'func-call-spacing': ['error', 'never'],
|
||||
|
||||
Reference in New Issue
Block a user