-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
50 lines (50 loc) · 1.18 KB
/
.eslintrc.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
39
40
41
42
43
44
45
46
47
48
49
50
module.exports = {
globals: {
__VUETIFY_VERSION__: true,
__REQUIRED_VUE__: true,
},
env: {
'jest/globals': true,
},
plugins: [
'jest',
'eslint-plugin-local-rules',
],
extends: ['plugin:jest/recommended'],
rules: {
'vue/html-self-closing': 'off',
'vue/html-closing-bracket-spacing': 'off',
'vue/max-attributes-per-line': ['error', {
singleline: 1,
multiline: {
max: 1,
allowFirstLine: false,
},
}],
'vue/component-definition-name-casing': ['error', 'kebab-case'],
'local-rules/no-render-string-reference': 'error',
'jest/no-disabled-tests': 'off',
'jest/no-large-snapshots': 'warn',
'jest/prefer-spy-on': 'warn',
'jest/prefer-to-be-null': 'warn',
'jest/prefer-to-be-undefined': 'warn',
'jest/prefer-to-contain': 'warn',
'jest/prefer-to-have-length': 'warn',
'jest/no-standalone-expect': 'off',
'jest/no-conditional-expect': 'off',
},
overrides: [
{
files: 'dev/Playground.vue',
rules: {
'max-len': 'off',
},
},
{
files: '**/*.spec.ts',
rules: {
'vue/component-definition-name-casing': 'off',
},
},
],
}