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:
No branches or pull requests
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: