-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc.js
58 lines (58 loc) · 1.24 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
51
52
53
54
55
56
57
58
module.exports = {
root: true,
env: {
node: true,
},
extends: [
'plugin:vue/vue3-essential',
'eslint:recommended',
'@vue/typescript/recommended',
'@vue/prettier',
'@vue/prettier/@typescript-eslint',
'prettier',
],
parserOptions: {
xecmaVersion: 'latest',
parser: '@typescript-eslint/parser',
},
globals: {
defineProps: 'readonly',
defineEmits: 'readonly',
defineExpose: 'readonly',
withDefaults: 'readonly',
},
rules: {
'prettier/prettier': [
'warn',
{
vueIndentScriptAndStyle: false,
printWidth: 80,
trailingComma: 'all',
endOfLine: 'auto',
},
],
'vue/name-property-casing': [2, 'kebab-case'],
'arrow-parens': 0,
'no-debugger': 1,
'no-console': [
1,
{
allow: ['warn', 'error'],
},
],
'no-warning-comments': [
1,
{
terms: ['hardcoded'],
location: 'anywhere',
},
],
'no-return-await': 0,
'object-curly-spacing': ['error', 'always'],
'no-var': 'error',
'comma-dangle': [1, 'always-multiline'],
'linebreak-style': ['error', 'unix'],
'@typescript-eslint/no-non-null-assertion': 'off',
'vue/multi-word-component-names': 0,
},
}