-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy patheslint.config.mjs
36 lines (35 loc) · 1.18 KB
/
eslint.config.mjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import withNuxt from './.nuxt/eslint.config.mjs';
import UnusedImports from 'eslint-plugin-unused-imports';
export default withNuxt({
plugins: {
'unused-imports': UnusedImports
},
// workarounds for unexpected lint error @see https://github.com/nuxt/eslint/issues/371
languageOptions: {
globals: {
$fetch: 'readonly'
}
},
rules: {
'unused-imports/no-unused-imports': 'error',
'unused-imports/no-unused-vars': [
'warn',
{
vars: 'all',
varsIgnorePattern: '^_',
args: 'after-used',
argsIgnorePattern: '^_'
}
],
'vue/multi-word-component-names': 'off',
'vue/no-deprecated-v-on-native-modifier': 'off',
'vue/no-v-html': 'off',
'vue/no-v-text-v-html-on-component': 'off',
'vue/html-self-closing': 'off',
'vue/valid-v-slot': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/prefer-ts-expect-error': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'warn'
}
});