We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In my current ESLint config I have set up eslint-plugin-import v2.29.1 in the following way:
{ "$schema": "https://json.schemastore.org/eslintrc.json", "env": { "browser": true, "node": true }, "extends": ["prettier", "plugin:import/typescript"], "parser": "@typescript-eslint/parser", "parserOptions": { "ecmaFeatures": { "jsx": true }, "ecmaVersion": 8, "project": "./tsconfig.json", "sourceType": "module" }, "plugins": ["@typescript-eslint", "prettier", "sort-keys-fix", "import"], "rules": { "import/no-commonjs": ["error"], "import/no-duplicates": [ "error", { "prefer-inline": true } ], }, "settings": { "import/resolver": { "node": true, "typescript": true } } }
Unfortunately, the import/no-duplicates rule breaks my TS code.
import/no-duplicates
Initial code:
import type { AxiosDefaults, AxiosInterceptorManager, AxiosRequestConfig, AxiosResponse, AxiosInstance, AxiosError, } from 'axios'; import axios, {isAxiosError} from 'axios';
Broken code after formatting:
import axios, type { AxiosDefaults, AxiosInterceptorManager, AxiosRequestConfig, AxiosResponse, AxiosInstance, AxiosError, isAxiosError} from 'axios';
The text was updated successfully, but these errors were encountered:
I’d like to work on this issue. Is it okay if I take it?
Sorry, something went wrong.
@yesl-kim yes, in open source anyone can just put up a PR, no need to ask.
fix: Removing duplicates breaks in TypeScript
4ddcfe7
dquote> dquote> fixes import-js#3016
eb8882d
fixes import-js#3016
no-duplicates
Fix PR: #3033 PTAL! 🙇
4bdf61a
Successfully merging a pull request may close this issue.
In my current ESLint config I have set up eslint-plugin-import v2.29.1 in the following way:
Unfortunately, the
import/no-duplicates
rule breaks my TS code.Initial code:
Broken code after formatting:
The text was updated successfully, but these errors were encountered: