[eslint config] [base] [breaking] enable no-useless-path-segments

This commit is contained in:
Thomas Grainger
2018-02-22 01:07:09 +00:00
committed by Jordan Harband
parent 1fbeabd0c4
commit c82500d7fa
3 changed files with 3 additions and 4 deletions

View File

@@ -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',
},
};

View File

@@ -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

View File

@@ -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';