mirror of
https://github.com/airbnb/javascript.git
synced 2026-04-25 03:00:19 -04:00
[eslint config] [base] [breaking] enable no-useless-path-segments
This commit is contained in:
committed by
Jordan Harband
parent
1fbeabd0c4
commit
c82500d7fa
@@ -229,7 +229,6 @@ module.exports = {
|
||||
|
||||
// Ensures that there are no useless path segments
|
||||
// https://github.com/benmosher/eslint-plugin-import/issues/1032
|
||||
// TODO: enable
|
||||
'import/no-useless-path-segments': 'off',
|
||||
'import/no-useless-path-segments': 'error',
|
||||
},
|
||||
};
|
||||
|
||||
@@ -2,7 +2,7 @@ import fs from 'fs';
|
||||
import path from 'path';
|
||||
import test from 'tape';
|
||||
|
||||
import index from '../';
|
||||
import index from '..';
|
||||
|
||||
const files = { ...{ index } }; // object spread is to test parsing
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import test from 'tape';
|
||||
import { CLIEngine } from 'eslint';
|
||||
import eslintrc from '../';
|
||||
import eslintrc from '..';
|
||||
import reactRules from '../rules/react';
|
||||
import reactA11yRules from '../rules/react-a11y';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user