mirror of
https://github.com/airbnb/javascript.git
synced 2026-01-10 03:37:57 -05:00
[eslint config] [patch] add new disabled core rules
This commit is contained in:
@@ -104,6 +104,11 @@ module.exports = {
|
||||
// https://eslint.org/docs/rules/no-empty-pattern
|
||||
'no-empty-pattern': 'error',
|
||||
|
||||
// Disallow empty static blocks
|
||||
// https://eslint.org/docs/latest/rules/no-empty-static-block
|
||||
// TODO: semver-major, enable
|
||||
'no-empty-static-block': 'off',
|
||||
|
||||
// disallow comparisons to null without a type-checking operator
|
||||
// https://eslint.org/docs/rules/no-eq-null
|
||||
'no-eq-null': 'off',
|
||||
|
||||
@@ -105,6 +105,11 @@ module.exports = {
|
||||
// disallow the use of object properties of the global object (Math and JSON) as functions
|
||||
'no-obj-calls': 'error',
|
||||
|
||||
// Disallow new operators with global non-constructor functions
|
||||
// https://eslint.org/docs/latest/rules/no-new-native-nonconstructor
|
||||
// TODO: semver-major, enable
|
||||
'no-new-native-nonconstructor': 'off',
|
||||
|
||||
// Disallow returning values from Promise executor functions
|
||||
// https://eslint.org/docs/rules/no-promise-executor-return
|
||||
'no-promise-executor-return': 'error',
|
||||
|
||||
Reference in New Issue
Block a user