Error: Plugin "@typescript-eslint" was conflicted between ".eslintrc.js » plugin:@typescript-eslint/recommended-type-checked » ./configs/base" and ".eslintrc.js » @vue/eslint-config-typescriptBug: <short description of the issue>
laterdayi opened this issue · 1 comments
laterdayi commented
Before You File a Bug Report Please Confirm You Have Done The Following...
- I'm using eslint-plugin-vue.
- I'm sure the problem is a parser problem. (If you are not sure, search for the issue in eslint-plugin-vue repo and open the issue in eslint-plugin-vue repo if there is no solution.
- I have tried restarting my IDE and the issue persists.
- I have updated to the latest version of the packages.
What version of ESLint are you using?
lastest
What version of eslint-plugin-vue
and vue-eslint-parser
are you using?
- vue-eslint-parser@0.0.0
- eslint-plugin-vue@0.0.0
What did you do?
require('@rushstack/eslint-patch/modern-module-resolution');
module.exports = {
root: true,
env: {
node: true,
es6: true
},
parser: 'vue-eslint-parser',
plugins: ['standard-recommended'],
extends: [
'eslint:recommended',
'plugin:vue/vue3-essential',
'plugin:vue/vue3-strongly-recommended',
'plugin:vue/vue3-recommended',
'@vue/eslint-config-typescript',
'@vue/eslint-config-prettier/skip-formatting',
'plugin:@typescript-eslint/recommended-type-checked',
// unplugin-auto-import
'./.eslintrc-auto-import.json'
],
parserOptions: {
project: true,
tsconfigRootDir: __dirname,
parser: '@typescript-eslint/parser',
sourceType: 'module',
ecmaVersion: 'latest',
ecmaFeatures: {
jsx: true
}
},
noInlineConfig: true,
reportUnusedDisableDirectives: true,
// ignore
ignorePatterns: [
'*.sh',
'node_modules',
'*.md',
'*.woff',
'*.ttf',
'.vscode',
'.idea',
'dist',
'/docs',
'.husky',
'.github'
],
};
{
"extends": "@vue/tsconfig/tsconfig.dom.json",
"include": ["env.d.ts", "src/**/*", "src/**/*.vue", "auto-imports.d.ts", "components.d.ts"],
"compilerOptions": {
"ignoreDeprecations": "5.0",
"jsx": "preserve",
"baseUrl": ".",
"moduleResolution": "bundler",
"paths": {
"@unocss/preset-icons/browser": ["./node_modules/@unocss/preset-icons/dist/browser"],
"@/*": ["./src/*"],
"@c/*": ["./src/components/*"],
"@v/*": ["./src/views/*"]
},
"lib": ["ESNext", "DOM"],
"types": ["vite/client", "naive-ui/volar"]
}
}
What did you expect to happen?
fix
What actually happened?
fix
Link to Minimal Reproducible Example
fix
Additional comments
No response
ota-meshi commented
I don't know how to reproduce the error.
Please open the issue and fill in all the required sections. Also, please share a repository to reproduce your problem.