forked from Giveth/giveth-dapp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
51 lines (51 loc) · 1.31 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
50
51
{
"extends": [
"airbnb",
"plugin:prettier/recommended",
"prettier",
"prettier/flowtype",
"prettier/react",
"prettier/standard"
],
"rules": {
"jsx-a11y/anchor-is-valid": [ "error", {
"components": [ "Link" ],
"specialLink": [ "to", "hrefLeft", "hrefRight" ],
"aspects": [ "noHref", "invalidHref", "preferButton" ]
}],
"no-param-reassign": [2, {
"props": false
}],
"no-underscore-dangle": 0,
"no-unused-vars": ["error", {
"vars": "all",
"args": "after-used",
"ignoreRestSiblings": true,
"argsIgnorePattern": "^_"
}
],
"prettier/prettier": ["error", {
"singleQuote": true,
"trailingComma": "all"
}],
"react-app/jsx-a11y/href-no-hash": "off", // This rule is dropped but create-react-app uses old rules
"jsx-a11y/label-has-for": "off", // This rule will be dropped soon anyways
"react/destructuring-assignment": "off", // Seems to be way too restrictive
"import/no-cycle": 1 // Should be addressed eventually but does not break
},
"env": {
"jest": true,
"browser": true
},
"globals": {
"FileReader": true,
"window": true
},
"settings": {
"import/resolver": {
"node": {
"moduleDirectory": ["node_modules", "src/"]
}
}
}
}