-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.cjs
35 lines (35 loc) · 898 Bytes
/
.eslintrc.cjs
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
module.exports = {
root: true,
plugins: ['@dvcol/presets'],
extends: ['plugin:@dvcol/presets/vue', 'plugin:@dvcol/presets/vitest'],
// to apply jest linting even-though we use vitest
settings: { jest: { version: 27 } },
rules: {
'import/no-extraneous-dependencies': ['error', { devDependencies: ['/!(src)/**', '**/*.test.*', '**/*.spec.*', '**/*.config.*'] }],
'vue/no-undef-components': [
'error',
{
ignorePatterns: ['^v-.*'],
},
],
'vitest/no-hooks': 'off',
'vitest/max-expects': ['warn', { max: 10 }],
},
overrides: [
{
files: ['*.vue'],
rules: {
'prettier/prettier': [
'warn',
{
printWidth: 90,
singleQuote: true,
trailingComma: 'all',
arrowParens: 'avoid',
bracketSpacing: true,
},
],
},
},
],
};