Skip to content

Commit

Permalink
[eslint config] [base] [deps] update eslint-plugin-import
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Apr 28, 2019
1 parent 117d4fc commit 5cd011d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/eslint-config-airbnb-base/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,14 @@
"editorconfig-tools": "^0.1.1",
"eslint": "^4.19.1 || ^5.3.0",
"eslint-find-rules": "^3.3.1",
"eslint-plugin-import": "^2.16.0",
"eslint-plugin-import": "^2.17.2",
"in-publish": "^2.0.0",
"safe-publish-latest": "^1.1.2",
"tape": "^4.10.1"
},
"peerDependencies": {
"eslint": "^4.19.1 || ^5.3.0",
"eslint-plugin-import": "^2.16.0"
"eslint-plugin-import": "^2.17.2"
},
"engines": {
"node": ">= 4"
Expand Down
9 changes: 9 additions & 0 deletions packages/eslint-config-airbnb-base/rules/imports.js
Original file line number Diff line number Diff line change
Expand Up @@ -248,5 +248,14 @@ module.exports = {
// Use this rule to prevent imports to folders in relative parent paths.
// https://github.com/benmosher/eslint-plugin-import/blob/c34f14f67f077acd5a61b3da9c0b0de298d20059/docs/rules/no-relative-parent-imports.md
'import/no-relative-parent-imports': 'off',

// Reports modules without any exports, or with unused exports
// https://github.com/benmosher/eslint-plugin-import/blob/f63dd261809de6883b13b6b5b960e6d7f42a7813/docs/rules/no-unused-modules.md
// TODO: enable, semver-major
'import/no-unused-modules': ['off', {
ignoreExports: [],
missingExports: true,
unusedExports: true,
}],
},
};

0 comments on commit 5cd011d

Please sign in to comment.