-
Notifications
You must be signed in to change notification settings - Fork 4
/
.eslintrc.json
70 lines (70 loc) · 1.77 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
{
"root": true,
"env": {
"amd": true,
"browser": true,
"es6": true,
"jquery": true,
"mocha": true,
"node": true
},
"plugins": [
"dollar-sign",
"jsdoc",
"jsx-a11y",
"prettier",
"react"
],
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:jsx-a11y/recommended",
"prettier"
],
"rules": {
"comma-dangle": ["error", "never"],
"dollar-sign/dollar-sign": [2, "ignoreProperties"],
"indent": ["error", 2, {
"SwitchCase": 1
}],
"jsdoc/check-param-names": 1,
"jsdoc/check-tag-names": 1,
"jsdoc/check-types": 1,
"jsdoc/newline-after-description": 1,
"jsdoc/require-description-complete-sentence": 1,
"jsdoc/require-hyphen-before-param-description": 1,
"jsdoc/require-param": 1,
"jsdoc/require-param-description": 0,
"jsdoc/require-param-type": 1,
"jsdoc/require-returns-description": 0,
"jsdoc/require-returns-type": 1,
"jsx-quotes": ["error", "prefer-double"],
"newline-per-chained-call": ["error", {
"ignoreChainWithDepth": 2
}],
"one-var": ["error", "never"],
"prettier/prettier": ["error", {
"singleQuote": true,
"bracketSpacing": false
}],
"react/jsx-boolean-value": ["error", "never"],
"react/jsx-closing-bracket-location": ["error", "line-aligned"],
"react/jsx-curly-spacing": ["error", "never", {
"allowMultiline": true
}],
"react/jsx-pascal-case": ["error", {
"allowAllCaps": true,
"ignore": []
}],
"react/jsx-tag-spacing": ["error", {
"closingSlash": "never",
"beforeSelfClosing": "allow",
"afterOpening": "never"
}],
"react/no-array-index-key": "error"
},
"parser": "babel-eslint",
"parserOptions": {
"sourceType": "module"
}
}