-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy patheslint.config.mjs
40 lines (39 loc) · 1.2 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
37
38
39
40
import globals from "globals";
import vue from "eslint-plugin-vue";
import jest from 'eslint-plugin-jest';
export default [
{
files: ["**/*.{js,mjs,cjs,vue}"]
},
{
ignores: ["output/"]
},
{
languageOptions: { globals: globals.browser }
},
{
plugins: { jest },
rules: {
...jest.configs.recommended.rules,
},
},
...vue.configs["flat/essential"],
{
rules: {
semi: ['error', 'always'], // Enforce semicolons
curly: ['error', 'multi'], // Enforce curly braces only for multi-line blocks
'jest/valid-title': 'off', // To be removed
'jest/no-standalone-expect': 'off', // To be removed
'jest/no-disabled-tests': 'off', // To be removed
'jest/no-conditional-expect': 'off', // To be removed
'jest/valid-expect': 'off', // To be removed
'jest/no-test-prefixes': 'off', // To be removed
'jest/no-export': 'off', // To be removed
'jest/no-alias-methods': 'off', // To be removed
'jest/expect-expect': 'off', // To be removed
'jest/valid-describe-callback': 'off', // To be removed
'vue/require-v-for-key': 'off', // To be removed
'vue/no-reserved-component-names': 'off', // To be removed
}
}
];