import-js/eslint-plugin-import
GitHub で見るFeature: option caseSensitive with regex pattern
Open
#1,656 opened on 2020年2月14日
bughelp wantedresolver
Repository metrics
- Stars
- (4,946 stars)
- PR merge metrics
- (平均マージ 138d 22h) (30d で 3 merged PRs)
説明
I have the following setting with alias:
.eslintrc.js
settings: {
"import/resolver": {
alias: {
map: ["@", "./src],
extensions: [".ts", ".js", ".jsx", ".tsx", ".json"]
}
}
}
someFile.js
/* There I have the error:
Casing of @/test does not match the underlying filesystem import/no-unresolved
*/
import testDefault from "@/test";
As I see the plugin doesn't look for 'alias' in 'import/resolver' It should be fixed or it can be implemented via the following case: .eslintrc.js
"import/no-unresolved": [2, {
caseSensitive: ["@"] // like it works for ignoreOption
}],