8000 [eslint config] [base] add new rules in eslint 6.x, disabled · odongohcoder2019/javascript@dee4f17 · GitHub
[go: up one dir, main page]

Skip to content

Commit dee4f17

Browse files
committed
[eslint config] [base] add new rules in eslint 6.x, disabled
1 parent c66cfc3 commit dee4f17

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

packages/eslint-config-airbnb-base/rules/best-practices.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ module.exports = {
2828
// require default case in switch statements
2929
'default-case': ['error', { commentPattern: '^no default$' }],
3030

31+
// https://eslint.org/docs/rules/default-param-last
32+
// TODO: enable, semver-minor, when eslint v6.4 is required (which is a major)
33+
'default-param-last': 'off',
34+
3135
// encourages use of dot notation whenever possible
3236
'dot-notation': ['error', { allowKeywords: true }],
3337

@@ -313,6 +317,10 @@ module.exports = {
313317
// https://eslint.org/docs/rules/prefer-named-capture-group
314318
'prefer-named-capture-group': 'off',
315319

320+
// https://eslint.org/docs/rules/prefer-regex-literals
321+
// TODO; enable, semver-minor, once eslint v6.4 is required (which is a major)
322+
'prefer-regex-literals': 'off',
323+
316324
// require use of the second argument for parseInt()
317325
radix: 'error',
318326

packages/eslint-config-airbnb-base/rules/errors.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,10 @@ module.exports = {
7373
// disallow overwriting functions written as function declarations
7474
'no-func-assign': 'error',
7575

76+
// https://eslint.org/docs/rules/no-import-assign
77+
// TODO: enable, semver-minor, once eslint v6.4 is required (which is a major)
78+
'no-import-assign': 'off',
79+
7680
// disallow function or variable declarations in nested blocks
7781
'no-inner-declarations': 'error',
7882

packages/eslint-config-airbnb-base/rules/style.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,10 @@ module.exports = {
7676
// enforce newline at the end of file, with no multiple empty lines
7777
'eol-last': ['error', 'always'],
7878

79+
// https://eslint.org/docs/rules/function-call-argument-newline
80+
// TODO: enable, semver-minor, once eslint v6.2 is required (which is a major)
81+
'function-call-argument-newline': ['off', 'consistent'],
82+
7983
// enforce spacing between functions and their invocations
8084
// https://eslint.org/docs/rules/func-call-spacing
8185
'func-call-spacing': ['error', 'never'],

0 commit comments

Comments
 (0)
0