File tree 2 files changed +11
-2
lines changed
packages/eslint-config-airbnb-base 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 58
58
"editorconfig-tools" : " ^0.1.1" ,
59
59
"eslint" : " ^4.19.1 || ^5.3.0" ,
60
60
"eslint-find-rules" : " ^3.3.1" ,
61
- "eslint-plugin-import" : " ^2.16.0 " ,
61
+ "eslint-plugin-import" : " ^2.17.2 " ,
62
62
"in-publish" : " ^2.0.0" ,
63
63
"safe-publish-latest" : " ^1.1.2" ,
64
64
"tape" : " ^4.10.1"
65
65
},
66
66
"peerDependencies" : {
67
67
"eslint" : " ^4.19.1 || ^5.3.0" ,
68
- "eslint-plugin-import" : " ^2.16.0 "
68
+ "eslint-plugin-import" : " ^2.17.2 "
69
69
},
70
70
"engines" : {
71
71
"node" : " >= 4"
Original file line number Diff line number Diff line change @@ -248,5 +248,14 @@ module.exports = {
248
248
// Use this rule to prevent imports to folders in relative parent paths.
249
249
// https://github.com/benmosher/eslint-plugin-import/blob/c34f14f67f077acd5a61b3da9c0b0de298d20059/docs/rules/no-relative-parent-imports.md
250
250
'import/no-relative-parent-imports' : 'off' ,
251
+
252
+ // Reports modules without any exports, or with unused exports
253
+ // https://github.com/benmosher/eslint-plugin-import/blob/f63dd261809de6883b13b6b5b960e6d7f42a7813/docs/rules/no-unused-modules.md
254
+ // TODO: enable, semver-major
255
+ 'import/no-unused-modules' : [ 'off' , {
256
+ ignoreExports : [ ] ,
257
+ missingExports : true ,
258
+ unusedExports : true ,
259
+ } ] ,
251
260
} ,
252
261
} ;
You can’t perform that action at this time.
0 commit comments