forked from Joystream/joystream-org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
49 lines (49 loc) · 1.33 KB
/
.eslintrc
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
{
"extends": ["react-app", "plugin:jsx-a11y/recommended"],
"plugins": ["jsx-a11y"],
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module"
},
"env": {
"browser": true,
"jest": true
},
"settings": {
"import/extensions": [".js", ".jsx"],
},
"rules": {
"semi": ["warn", "always"],
"comma-dangle": ["warn", "always-multiline"],
"function-paren-newline": ["error", "consistent"],
"jsx-a11y/anchor-is-valid": [ "error", {
"components": [ "Link" ],
"specialLink": [ "to" ]
}],
"jsx-a11y/label-has-for": [ 2, {
"components": [ "Label" ],
"required": {
"every": [ "id" ]
},
"allowChildren": false
}],
"jsx-a11y/label-has-associated-control": [ 2, {
"labelComponents": ["label"],
"labelAttributes": ["htmlFor"],
"controlComponents": ["input"],
"depth": 3
}],
"max-len": ["warn", { "code": 120 }],
"object-curly-newline": ["error", { "consistent": true }],
"object-curly-spacing": [2, "always"],
"react/jsx-filename-extension": [1, {
"extensions": [".js", ".jsx"]
}],
"react/jsx-one-expression-per-line": "off",
"react/jsx-indent": [2, 2],
"quotes": ["warn", "single"],
"jsx-quotes": ["warn", "prefer-double"],
"eol-last": ["warn", "always"]
}
}