Skip to content

Commit 1fb7d76

Browse files
committed
[eslint config] [patch] add new disabled core rules
1 parent 38f1488 commit 1fb7d76

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,11 @@ module.exports = {
104104
// https://eslint.org/docs/rules/no-empty-pattern
105105
'no-empty-pattern': 'error',
106106

107+
// Disallow empty static blocks
108+
// https://eslint.org/docs/latest/rules/no-empty-static-block
109+
// TODO: semver-major, enable
110+
'no-empty-static-block': 'off',
111+
107112
// disallow comparisons to null without a type-checking operator
108113
// https://eslint.org/docs/rules/no-eq-null
109114
'no-eq-null': 'off',

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,11 @@ module.exports = {
105105
// disallow the use of object properties of the global object (Math and JSON) as functions
106106
'no-obj-calls': 'error',
107107

108+
// Disallow new operators with global non-constructor functions
109+
// https://eslint.org/docs/latest/rules/no-new-native-nonconstructor
110+
// TODO: semver-major, enable
111+
'no-new-native-nonconstructor': 'off',
112+
108113
// Disallow returning values from Promise executor functions
109114
// https://eslint.org/docs/rules/no-promise-executor-return
110115
'no-promise-executor-return': 'error',

0 commit comments

Comments
 (0)