forked from sumcumo/vue-datepicker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
109 lines (109 loc) · 2.17 KB
/
.eslintrc
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
{
"root": true,
"parserOptions": {
"parser": "@babel/eslint-parser"
},
"extends": [
"airbnb-base",
"plugin:compat/recommended",
"plugin:cypress/recommended",
"plugin:vue/vue3-recommended",
"prettier"
],
"ignorePatterns": ["!.vuepress"],
"plugins": ["import", "html", "vue", "vitest"],
"settings": {
"import/resolver": {
"alias": {
"map": [["~", "./src"]]
}
}
},
"rules": {
"vue/max-attributes-per-line": "off",
"vue/html-self-closing": "off",
"vue/singleline-html-element-content-newline": "off",
"import/prefer-default-export": "off",
"import/extensions": [
"error",
"always",
{
"js": "never"
}
],
"import/no-extraneous-dependencies": "off",
"no-console": ["error", { "allow": ["info", "warn", "error"] }],
"no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_"
}
],
"no-use-before-define": [
"error",
{
"functions": false,
"classes": true,
"variables": true
}
],
"max-nested-callbacks": ["error", { "max": 3 }],
"max-statements": [
"error",
{
"max": 10
},
{
"ignoreTopLevelFunctions": false
}
],
"complexity": [
"error",
{
"max": 5
}
],
"max-depth": [
"error",
{
"max": 2
}
],
"max-params": [
"error",
{
"max": 3
}
],
"max-lines-per-function": [
"warn",
{
"max": 100,
"skipComments": true,
"skipBlankLines": true
}
],
"vue/component-name-in-template-casing": [
"error",
"PascalCase",
{ "registeredComponentsOnly": false }
],
"vue/no-deprecated-scope-attribute": "error",
"arrow-body-style": "off"
// 'vitest/no-skipped-tests': 2,
},
"overrides": [
{
"files": ["*.spec.js", "test/e2e/specs/*/index.js", "*.config.js"],
"rules": {
"max-lines-per-function": "off",
"max-statements": "off",
"max-nested-callbacks": "off",
"complexity": "off"
}
}
],
"env": {
"browser": true
}
}