-
Notifications
You must be signed in to change notification settings - Fork 50
/
.eslintrc.json
142 lines (142 loc) · 3.8 KB
/
.eslintrc.json
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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
{
"extends": [
"standard",
"@vue/standard",
"plugin:vue/recommended",
"plugin:prettier/recommended",
"eslint:recommended",
"airbnb-base",
"plugin:import/errors",
"plugin:import/warnings",
"problems",
"plugin:vue-scoped-css/recommended",
"plugin:promise/recommended",
"plugin:switch-case/recommended",
"plugin:unicorn/recommended",
"prettier"
],
"plugins": ["prettier", "vue", "@babel", "promise", "import", "vue-scoped-css", "simple-import-sort", "switch-case", "unicorn"],
"ignorePatterns": ["*.config.js"],
"parser": "vue-eslint-parser",
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 2021,
"parser": "@babel/eslint-parser",
"babelOptions": {
"configFile": "./babel.config.json"
}
},
"rules": {
"import/order": 0,
"array-callback-return": 0,
"unicorn/switch-case-braces": 0,
"unicorn/prefer-event-target": 0,
"unicorn/prefer-logical-operator-over-ternary": 0,
"unicorn/prefer-string-replace-all": 0,
"no-promise-executor-return": 0,
"no-restricted-exports": [2, { "restrictedNamedExports": [] }],
"import/prefer-default-export": 0,
"vue/multi-word-component-names": 0,
"unicorn/prefer-object-from-entries": 0,
"unicorn/require-post-message-target-origin": 0,
"unicorn/prefer-module": 0,
"unicorn/prefer-node-protocol": 0,
"unicorn/prefer-switch": 0,
"unicorn/no-array-push-push": 0,
"unicorn/no-this-assignment": 0,
"unicorn/no-array-for-each": 0,
"unicorn/consistent-destructuring": 0,
"unicorn/prefer-regexp-test": 0,
"unicorn/no-array-reduce": 0,
"accessor-pairs": 0,
"unicorn/prefer-ternary": 0,
"unicorn/prevent-abbreviations": 0,
"unicorn/no-useless-undefined": 0,
"unicorn/no-reduce": 0,
"camelcase": 0,
"unicorn/no-null": 0,
"unicorn/no-abusive-eslint-disable": 0,
"class-methods-use-this": 0,
"no-restricted-syntax": 0,
"guard-for-in": 0,
"no-underscore-dangle": 0,
"simple-import-sort/imports": "error",
"simple-import-sort/exports": "error",
"operator-linebreak": 0,
"promise/always-return": 0,
"unicorn/filename-case": 0,
"vue/no-v-html": 0,
"vue/array-bracket-spacing": 2,
"vue/arrow-spacing": 2,
"vue/block-spacing": 2,
"vue/brace-style": 2,
"vue/component-definition-name-casing": 2,
"vue/component-name-in-template-casing": 2,
"vue/component-tags-order": [
2,
{
"order": ["template", "script", "style"]
}
],
"vue/dot-location": 2,
"vue/eqeqeq": 2,
"vue/key-spacing": 2,
"vue/keyword-spacing": 2,
"vue/no-reserved-component-names": 2,
"vue/no-restricted-syntax": 2,
"vue/space-infix-ops": 2,
"vue/space-unary-ops": 2,
"vue/v-on-function-call": 2,
"vue/valid-v-bind-sync": 2,
"vue/valid-v-slot": 2,
"object-curly-newline": 0,
"semi": [2, "never"],
"quotes": [2, "single"],
"max-len": [
2,
{
"code": 150
}
],
"no-extra-semi": 0,
"no-unused-vars": [2, { "args": "after-used", "argsIgnorePattern": "_" }],
"no-console": 2,
"no-nested-ternary": 0,
"linebreak-style": 0,
"no-param-reassign": [
2,
{
"props": false
}
],
"prettier/prettier": [
2,
{
"singleQuote": true,
"printWidth": 150,
"semi": false,
"trailingComma": "es5"
}
]
},
"env": {
"es2021": true,
"browser": true,
"node": true
},
"globals": {
"document": "readonly",
"fetch": "readonly",
"it": "readonly",
"before": "readonly",
"after": "readonly",
"beforeEach": "readonly",
"afterEach": "readonly",
"describe": "readonly",
"expect": "readonly",
"serviceworker": "readonly"
},
"settings": {
"polyfills": ["BroadcastChannel"]
}
}