Skip to content

Commit 53704a5

Browse files
author
Thomas Grainger
committed
enable no-useless-path-segments
1 parent e20c78a commit 53704a5

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

packages/eslint-config-airbnb-base/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
"editorconfig-tools": "^0.1.1",
5454
"eslint": "^4.9.0",
5555
"eslint-find-rules": "^3.1.1",
56-
"eslint-plugin-import": "^2.7.0",
56+
"eslint-plugin-import": "^2.9.0",
5757
"in-publish": "^2.0.0",
5858
"safe-publish-latest": "^1.1.1",
5959
"tape": "^4.8.0"

packages/eslint-config-airbnb-base/rules/imports.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,5 +204,7 @@ module.exports = {
204204
allowLiteral: false,
205205
allowObject: false,
206206
}],
207+
208+
'import/no-useless-path-segments': 'error'
207209
},
208210
};

0 commit comments

Comments
 (0)