File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed
packages/eslint-config-airbnb-base Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 5858 "editorconfig-tools" : " ^0.1.1" ,
5959 "eslint" : " ^4.19.1 || ^5.3.0" ,
6060 "eslint-find-rules" : " ^3.3.1" ,
61- "eslint-plugin-import" : " ^2.16.0 " ,
61+ "eslint-plugin-import" : " ^2.17.2 " ,
6262 "in-publish" : " ^2.0.0" ,
6363 "safe-publish-latest" : " ^1.1.2" ,
6464 "tape" : " ^4.10.1"
6565 },
6666 "peerDependencies" : {
6767 "eslint" : " ^4.19.1 || ^5.3.0" ,
68- "eslint-plugin-import" : " ^2.16.0 "
68+ "eslint-plugin-import" : " ^2.17.2 "
6969 },
7070 "engines" : {
7171 "node" : " >= 4"
Original file line number Diff line number Diff line change @@ -248,5 +248,14 @@ module.exports = {
248248 // Use this rule to prevent imports to folders in relative parent paths.
249249 // https://github.com/benmosher/eslint-plugin-import/blob/c34f14f67f077acd5a61b3da9c0b0de298d20059/docs/rules/no-relative-parent-imports.md
250250 '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+ } ] ,
251260 } ,
252261} ;
You can’t perform that action at this time.
0 commit comments