Skip to content

Commit c82500d

Browse files
Thomas Graingerljharb
Thomas Grainger
authored andcommitted
[eslint config] [base] [breaking] enable no-useless-path-segments
1 parent 1fbeabd commit c82500d

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,6 @@ module.exports = {
229229

230230
// Ensures that there are no useless path segments
231231
// https://github.com/benmosher/eslint-plugin-import/issues/1032
232-
// TODO: enable
233-
'import/no-useless-path-segments': 'off',
232+
'import/no-useless-path-segments': 'error',
234233
},
235234
};

packages/eslint-config-airbnb-base/test/test-base.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import fs from 'fs';
22
import path from 'path';
33
import test from 'tape';
44

5-
import index from '../';
5+
import index from '..';
66

77
const files = { ...{ index } }; // object spread is to test parsing
88

packages/eslint-config-airbnb/test/test-react-order.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import test from 'tape';
22
import { CLIEngine } from 'eslint';
3-
import eslintrc from '../';
3+
import eslintrc from '..';
44
import reactRules from '../rules/react';
55
import reactA11yRules from '../rules/react-a11y';
66

0 commit comments

Comments
 (0)