import-js/eslint-plugin-import
import/no-relative-parent-imports report incorrectly in 2.20.1
開放
#1,644 建立於 2020年2月3日
bughelp wantedtypescript
倉庫指標
- 星標
- (5,940 顆星)
- PR 合併指標
- (平均合併 138天 22小時) (30 天內合併 3 個 PR)
描述
In version 2.20.1, I start to get errors like:
Relative imports from parent directories are not allowed. Please either pass what ...
for
import React from 'react';
The problem did not occur in 2.20.0.
I use eslint-typescript but since this used to work in 2.20.0 I doubt that this has anything to do with that.
My .eslintrc.js looks like this
parser: '@typescript-eslint/parser',
parserOptions: {
project: path.resolve(__dirname, './tsconfig.json')
},
plugins: [
'react',
'react-hooks'
],
extends: [
'plugin:@typescript-eslint/recommended',
'plugin:react/recommended',
'plugin:import/errors',
'plugin:import/warnings',
'plugin:import/typescripts',
]