-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
103 lines (103 loc) · 2.63 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
{
"root": true,
"env": {
"amd": true,
"browser": true,
"es6": true,
"jquery": true,
"mocha": true,
"node": true
},
"globals": {
"vega": true,
"vegaEmbed": true
},
"plugins": [
"dollar-sign",
"html",
"jsdoc",
"jsx-a11y",
"markdown",
"prettier",
"react"
],
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:jsx-a11y/recommended",
"airbnb",
"prettier"
],
"rules": {
"class-methods-use-this": 0,
"comma-dangle": ["error", "never"],
"default-case": 0,
"dollar-sign/dollar-sign": [2, "ignoreProperties"],
"func-names": 0,
"import/extensions": 0,
"import/newline-after-import": 0,
"import/no-dynamic-require": 0,
"import/no-extraneous-dependencies": 0,
"import/no-unresolved": 0,
"import/prefer-default-export": 0,
"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": 0,
"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
}],
"no-bitwise": ["error", {
"allow": ["~"]
}],
"no-plusplus": ["error", {
"allowForLoopAfterthoughts": true
}],
"no-underscore-dangle": 0,
"no-var": 0,
"object-shorthand": ["error", "consistent"],
"one-var": ["error", "never"],
"prefer-arrow-callback": 0,
"prefer-template": 0,
"prettier/prettier": ["error", {
"singleQuote": true,
"bracketSpacing": false
}],
"react/forbid-prop-types": ["error", {
"forbid": ["any", "array"]
}],
"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",
"react/no-unused-prop-types": 0,
"react/prefer-stateless-function": 0,
"vars-on-top": 0
},
"parser": "babel-eslint",
"parserOptions": {
"sourceType": "module"
}
}