-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc.json
119 lines (117 loc) · 3.52 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
{
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"node": true
},
"extends": "eslint:recommended",
"parserOptions": {
"sourceType": "module"
},
"plugins": [
"import",
"jsdoc"
],
"rules": {
"indent": [
"error",
4
],
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
"single"
],
"semi": [
"error",
"always"
],
"no-console": 0,
"no-prototype-builtins": 0,
"no-var": [
"error"
],
"prefer-const": [
"error",
{ "destructuring": "all" }
],
"prefer-template": [
"error"
],
"padding-line-between-statements": [
"error",
{ "blankLine": "always", "prev": "import", "next": "*" },
{ "blankLine": "any", "prev": "import", "next": "import" },
{ "blankLine": "always", "prev": "*", "next": "block-like" },
{ "blankLine": "always", "prev": "block-like", "next": "*" },
{ "blankLine": "always", "prev": "*", "next": "export" },
{ "blankLine": "always", "prev": "export", "next": "*" },
{ "blankLine": "any", "prev": "export", "next": "export" },
{ "blankLine": "always", "prev": "const", "next": "*" },
{ "blankLine": "always", "prev": "*", "next": "const" },
{ "blankLine": "any", "prev": "const", "next": "const" },
{ "blankLine": "always", "prev": "let", "next": "*" },
{ "blankLine": "always", "prev": "*", "next": "let" },
{ "blankLine": "any", "prev": "let", "next": "let" },
{ "blankLine": "any", "prev": "let", "next": "const" },
{ "blankLine": "any", "prev": "const", "next": "let" },
{ "blankLine": "always", "prev": "*", "next": "return" },
{ "blankLine": "always", "prev": "*", "next": "break" },
{ "blankLine": "always", "prev": "*", "next": "continue" }
],
"key-spacing": [
"error"
],
"object-shorthand": [
"error",
"always"
],
"space-before-function-paren": [
"error",
"never"
],
"space-before-blocks": [
"error",
"always"
],
"prefer-arrow-callback": [
"error",
{ "allowNamedFunctions": true }
],
"import/no-unresolved": 2,
"import/named": 2,
"import/default": 2,
"import/namespace": 2,
"import/no-absolute-path": 2,
"import/no-self-import": 2,
"import/no-useless-path-segments": 2,
"import/no-deprecated": 0,
"import/no-commonjs": 0,
"import/no-duplicates": 2,
"import/first": 2,
"import/no-amd": 2,
"import/extensions": [2, "never"],
"jsdoc/check-alignment": 2,
"jsdoc/check-param-names": 2,
"jsdoc/check-types": 2,
"jsdoc/require-param": 2,
"jsdoc/require-param-name": 2,
"jsdoc/require-param-type": 2,
"jsdoc/require-returns": 2,
"jsdoc/require-returns-check": 2,
"jsdoc/require-returns-type": 2,
"jsdoc/valid-types": 2,
"jsdoc/no-undefined-types": 2
},
"settings": {
"jsdoc": {
"tagNamePreference": {
"returns": "return"
}
}
}
}