forked from flekschas/svelte-simple-modal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
40 lines (40 loc) · 962 Bytes
/
.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
{
"parserOptions": {
"ecmaVersion": 2019,
"sourceType": "module"
},
"env": {
"es6": true,
"browser": true
},
"plugins": [
"svelte3"
],
"overrides": [
{
"files": ["**/*.svelte"],
"processor": "svelte3/svelte3"
}
],
"extends": [
"eslint:recommended",
"plugin:import/errors",
"plugin:import/warnings"
],
"settings": {},
"rules": {
"arrow-spacing": 2,
"keyword-spacing": [2, { "before": true, "after": true }],
"no-console": ["error", { "allow": ["warn", "error"] }],
"no-mixed-spaces-and-tabs": [2, "smart-tabs"],
"no-var": 2,
"object-shorthand": [2, "always"],
"one-var": [2, "never"],
"prefer-arrow-callback": 2,
"prefer-const": 2,
"quote-props": [2, "as-needed"],
"semi": [2, "always"],
"space-before-blocks": [2, "always"],
"space-before-function-paren": [2, {"anonymous": "always", "named": "never", "asyncArrow": "always"}]
}
}