-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
executable file
·39 lines (39 loc) · 1.13 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
{
"extends": "airbnb",
"parser": "babel-eslint",
"rules": {
"strict": [2, "global"],
"space-before-function-paren": [2, "never"],
"indent": [2, "tab", { "SwitchCase": 1 }],
"spaced-comment": 0,
"react/no-did-update-set-state": 0, // Pu vrai https://fr.reactjs.org/docs/react-component.html#componentdidupdate
"react/jsx-indent-props": [2, "tab"],
"react/jsx-indent": [2, "tab"],
"react/sort-comp": 0,
"padded-blocks": [0],
"camelcase": [0],
"no-nested-ternary": [0],
"no-unused-vars": [1],
"no-trailing-spaces": [0],
"no-tabs": [0],
"arrow-body-style": [0],
"newline-per-chained-call": [0],
"prefer-template": [0],
"import/no-unresolved": [0],
"jsx-a11y/img-has-alt": [0],
"no-return-assign": [0],
"max-len": [0],
"import/order": [0],
"global-require": [0],
"no-console": ["warn", { "allow": ["warn", "error"] }],
"react/prefer-stateless-function": [0],
"react/jsx-fragments": [0],
"no-param-reassign": ["error", { "props": false }],
"no-underscore-dangle": ["error", { "allowAfterThis": true }],
"consistent-return": [0],
"no-cond-assign": [2, "except-parens"]
},
"env": {
"browser": true
}
}