Closed ubuding closed 4 months ago
+1
We temporarily closed this due to the lack of enough information. We could not identify whether it was a bug or a userland misconfiguration with the given info. Please provide a minimal reproduction to reopen the issue. Thanks.
貌似和我遇到了同样的问题 这样操作试试:
This work for me:
import { FlatCompat } from '@eslint/eslintrc'
import unocss from '@unocss/eslint-config/flat'
import skipFormatting from '@vue/eslint-config-prettier/skip-formatting'
import vueTsEslintConfig from '@vue/eslint-config-typescript'
import pluginVue from 'eslint-plugin-vue'
const compat = new FlatCompat()
export default [
...pluginVue.configs['flat/essential'],
...vueTsEslintConfig(),
unocss,
...compat.extends('./.eslintrc-auto-import.json'),
skipFormatting,
{
name: 'app/files-to-lint',
files: ['**/*.{ts,mts,tsx,vue}'],
rules: {
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/no-unused-expressions': 'off',
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/no-empty-object-type': 'off'
}
},
{
name: 'app/files-to-ignore',
ignores: ['**/dist/**', '**/dist-ssr/**', '**/coverage/**']
}
]
I want eslint to check whether my usage is correct when submitting the code. For example, when I write computed(0) eslint will report an error