forked from monzo/progression-framework
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
executable file
·46 lines (45 loc) · 1.08 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
// Similar to our web-projects eslint config file at https://github.com/monzo/web-projects/eslintConfig.js
{
"parser": "babel-eslint",
"extends": [
"eslint:recommended",
"plugin:react/recommended"
],
"plugins": ["prettier", "flowtype", "flowtype-errors"],
"rules": {
"strict": 0,
"no-debugger": 1,
"no-console": "off",
"no-useless-escape": "off",
"prettier/prettier": 1,
"flowtype/define-flow-type": 1,
"flowtype-errors/show-errors": 2,
"flowtype-errors/show-warnings": 1,
"no-restricted-syntax": [
"error",
{
"selector": "MethodDefinition[kind=\"get\"]",
"message": "Please don’t use getters and setters"
},
{
"selector": "MethodDefinition[kind=\"set\"]",
"message": "Please don’t use getters and setters"
}
],
"react/require-render-return": 0,
"react/prop-types": 0,
"jsx-a11y/href-no-hash": 0
},
"globals": {
"console": true
},
"env": {
"es6": true,
"browser": true
},
"settings": {
"react": {
"version": "latest"
}
}
}