-
Notifications
You must be signed in to change notification settings - Fork 5
/
eslint.config.js
38 lines (37 loc) · 887 Bytes
/
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 { config } from '@kouts/eslint-config'
import vitest from '@vitest/eslint-plugin'
export default [
...config({
ts: false,
vue: true,
}),
{
// Ignores has to be its own object - https://github.com/eslint/eslint/issues/17400
name: 'project-ignores',
ignores: ['.husky', '.history', 'coverage'],
},
{
name: 'project-overrides',
// Disable multi-word-component-names for docs examples
files: ['docs/.vuepress/**/*.vue', 'docs/.vuepress/**/*.js'],
rules: {
'vue/multi-word-component-names': 'off',
},
},
{
name: 'project-vitest',
files: ['tests/**'],
plugins: {
vitest,
},
rules: {
...vitest.configs.recommended.rules,
'vitest/max-nested-describe': ['error', { max: 3 }],
},
languageOptions: {
globals: {
...vitest.environments.env.globals,
},
},
},
]