-
Notifications
You must be signed in to change notification settings - Fork 59
/
Copy path.eslintrc
23 lines (23 loc) · 872 Bytes
/
.eslintrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{
"parser": "babel-eslint",
"extends": "airbnb",
"plugins": ["jest"],
"env": {
"browser": true,
"es6": true,
"jest/globals": true
},
"rules": {
"no-console": "error", // airbnb is using warn
"no-return-assign": "off", // airbnb use error, handy for react ref assign.
"operator-linebreak": ["error", "after"], // aibnb is disabling this rule
"react/jsx-filename-extension": ["error", { "extensions": [".js"] }], // airbnb is using .jsx
"react/jsx-max-props-per-line": ["error", { "maximum": 3 }], // airbnb is disabling this rule
"react/no-danger": "error", // airbnb is using warn
"react/no-direct-mutation-state": "error", // airbnb is disabling this rule
"react/prop-types": "off", // disable prop tyles check
"no-confusing-arrow": "off",
"implicit-arrow-linebreak": "off",
"comma-dangle": "off"
}
}