-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc
29 lines (28 loc) · 945 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
24
25
26
27
28
29
{
// install the following packages:
// yarn add --dev eslint prettier eslint-config-airbnb@ eslint-config-prettier eslint-plugin-prettier eslint-plugin-react eslint-plugin-import eslint-plugin-jsx-a11y
"extends": ["react-app", "airbnb", "prettier", "prettier/react"],
"plugins": ["prettier", "react-hooks"],
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 2016,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"env": {
"es6": true,
"browser": true,
"node": true
},
"rules": {
"import/no-extraneous-dependencies": ["error", { "packageDir": "./" }],
"jsx-a11y/label-has-for": "off",
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
"no-underscore-dangle": [1, { "allow": ["_id", "__REDUX_DEVTOOLS_EXTENSION__"] }],
"no-console": 0,
"react/destructuring-assignment": "off",
"react/jsx-props-no-spreading": "off"
}
}