-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
eslint.config.js
executable file
·38 lines (37 loc) · 1.12 KB
/
eslint.config.js
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
37
38
import pluginVue from 'eslint-plugin-vue';
import pluginUnicorn from 'eslint-plugin-unicorn';
import pluginTypeScript from '@typescript-eslint/eslint-plugin';
import parserTypeScript from '@typescript-eslint/parser';
import vueParser from 'vue-eslint-parser';
export default [
{
files: ['**/*.{js,vue,ts}'],
ignores: ['node_modules/**', '.output/**', '.nuxt/**', 'dist/**'],
plugins: {
vue: pluginVue,
unicorn: pluginUnicorn,
'@typescript-eslint': pluginTypeScript,
},
languageOptions: {
parser: vueParser,
parserOptions: {
parser: parserTypeScript,
ecmaVersion: 2020,
sourceType: 'module',
project: './tsconfig.json',
extraFileExtensions: ['.vue'],
},
},
rules: {
'vue/no-unused-vars': 'error',
'vue/require-prop-types': 'error',
'unicorn/prefer-at': 'error',
'@typescript-eslint/no-unused-vars': ['error', {
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_",
"ignoreRestSiblings": true
}],
'unicorn/no-array-reduce': 'warn',
},
},
];