forked from sadwoolf/maddevsio.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
126 lines (126 loc) · 2.99 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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
{
"root": true,
"env": {
"browser": true,
"es6": true,
"node": true,
"cypress/globals": true
},
"plugins": [
"vue",
"cypress"
],
"parserOptions": {
"parser": "@babel/eslint-parser"
},
"extends": [
"airbnb-base",
"plugin:vue/recommended",
"plugin:cypress/recommended"
],
"rules": {
"no-tabs": ["error"],
"semi": ["error", "never"],
"quotes": ["error", "single"],
"max-len": "off",
"vue/max-len": ["warn", {
"code": 120,
"tabWidth": 2,
"ignoreComments": true,
"ignoreTrailingComments": true,
"ignoreUrls": true,
"ignoreStrings": true,
"ignoreHTMLAttributeValues": true,
"ignoreHTMLTextContents": true
}],
"import/no-unresolved": "off",
"import/extensions": "off",
"import/no-extraneous-dependencies": "off",
"import/no-dynamic-require": "off",
"global-require": "off",
"no-restricted-syntax": ["error", "ForInStatement", "LabeledStatement", "WithStatement"],
"vue/attribute-hyphenation": [
"error",
"always"
],
"vue/multiline-html-element-content-newline": ["error"],
"vue/singleline-html-element-content-newline": ["error"],
"vue/max-attributes-per-line": [
"error",
{
"singleline": 1,
"multiline": {
"max": 1,
"allowFirstLine": false
}
}
],
"vue/no-v-html": "off",
"vue/new-line-between-multi-line-property": [
"error",
{
"minLineOfMultilineProperty": 2
}
],
"no-param-reassign": "off",
"no-unused-vars": [
"error"
],
"arrow-parens": [
"error",
"as-needed"
],
"import/prefer-default-export": 0
},
"settings": {
"import/extensions": [
".js",
".vue"
]
},
"globals": {
"$nuxt": true,
"cy": true
},
"overrides": [
{
"files": ["tests/unit/**/*.test.js", "tests/unit/**/*.spec.js", "server/**/*.test.js", "server/**/*.spec.js"],
"plugins": [
"jest"
],
"extends": [
"airbnb-base",
"plugin:jest/all"
],
"rules": {
"no-tabs": ["error"],
"semi": ["error", "never"],
"quotes": ["error", "single"],
"max-len": "off",
"global-require": "off",
"no-param-reassign": "off",
"no-unused-vars": [
"error"
],
"arrow-parens": [
"error",
"as-needed"
],
"jest/prefer-expect-assertions": "off",
"jest/no-hooks": "off",
"jest/require-hook": "off",
"jest/prefer-to-be": "off",
"jest/prefer-strict-equal": "off",
"jest/prefer-expect-resolves": "off",
"jest/no-mocks-import": "off",
"jest/lowercase-name": "off",
"import/no-unresolved": "off",
"import/extensions": "off",
"import/no-extraneous-dependencies": "off",
"import/no-dynamic-require": "off",
"import/prefer-default-export": 0,
"no-proto": "off"
}
}
]
}