We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f8dedf8 commit da2000aCopy full SHA for da2000a
1 file changed
etc/eslint/rules/nodejs.js
@@ -171,15 +171,24 @@ rules[ 'no-process-env' ] = 'error';
171
rules[ 'no-process-exit' ] = 'warn';
172
173
/**
174
-* Do not restrict the use of specific modules.
+* Restrict the use of specific modules.
175
*
176
* @name no-restricted-modules
177
* @memberof rules
178
-* @type {string}
179
-* @default 'off'
+* @type {Array}
180
* @see [no-restricted-modules]{@link http://eslint.org/docs/rules/no-restricted-modules}
181
*/
182
-rules[ 'no-restricted-modules' ] = 'off';
+rules[ 'no-restricted-modules' ] = [ 'error', {
+ 'paths': [
183
+ 'underscore',
184
+ 'lodash',
185
+ 'async'
186
+ ],
187
+ 'patterns': [
188
+ 'lodash*',
189
+ 'async*'
190
+ ]
191
+}];
192
193
194
* Warn when using synchronous methods when an asynchronous version exists.
0 commit comments