@@ -82,9 +82,9 @@ module.exports = [
82
82
// The n/no-unpublished-bin rule does does not support non-trivial glob
83
83
// patterns used in package.json "files" fields. In those cases we simplify
84
84
// the glob patterns used.
85
- 'n/no-unpublished-bin' : [ 'error' ] ,
86
- 'n/no-unsupported-features/es-builtins' : [ 'error' ] ,
87
- 'n/no-unsupported-features/es-syntax' : [ 'error' ] ,
85
+ 'n/no-unpublished-bin' : 'error' ,
86
+ 'n/no-unsupported-features/es-builtins' : 'error' ,
87
+ 'n/no-unsupported-features/es-syntax' : 'error' ,
88
88
'n/no-unsupported-features/node-builtins' : [
89
89
'error' ,
90
90
{
@@ -93,7 +93,7 @@ module.exports = [
93
93
version : constants . maintainedNodeVersions . previous
94
94
}
95
95
] ,
96
- 'n/prefer-node-protocol' : [ 'error' ]
96
+ 'n/prefer-node-protocol' : 'error'
97
97
}
98
98
} ,
99
99
{
@@ -104,19 +104,20 @@ module.exports = [
104
104
} ,
105
105
rules : {
106
106
...js . configs . recommended . rules ,
107
- 'no-await-in-loop' : [ 'error' ] ,
108
- 'no-control-regex' : [ 'error' ] ,
107
+ 'no-await-in-loop' : 'error' ,
108
+ 'no-control-regex' : 'error' ,
109
109
'no-empty' : [ 'error' , { allowEmptyCatch : true } ] ,
110
- 'no-new' : [ 'error' ] ,
111
- 'no-proto' : [ 'error' ] ,
110
+ 'no-new' : 'error' ,
111
+ 'no-proto' : 'error' ,
112
+ 'no-undef' : 'error' ,
112
113
'no-unused-vars' : [
113
114
'error' ,
114
115
{ argsIgnorePattern : '^_|^this$' , ignoreRestSiblings : true }
115
116
] ,
116
117
'no-warning-comments' : [ 'warn' , { terms : [ 'fixme' ] } ] ,
117
- 'sort-destructure-keys/sort-destructure-keys' : [ 'error' ] ,
118
+ 'sort-destructure-keys/sort-destructure-keys' : 'error' ,
118
119
'sort-imports' : [ 'error' , { ignoreDeclarationSort : true } ] ,
119
- 'unicorn/consistent-function-scoping' : [ 'error' ]
120
+ 'unicorn/consistent-function-scoping' : 'error'
120
121
}
121
122
}
122
123
]
0 commit comments