-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.eslintrc.json
40 lines (40 loc) · 1.06 KB
/
.eslintrc.json
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
{
"parser": "@babel/eslint-parser",
// Extend existing configuration
// from ESlint and eslint-plugin-react defaults.
"extends": ["eslint:recommended", "plugin:react/recommended"],
// Enable ES6 support. If you want to use custom Babel
// features, you will need to enable a custom parser
// as described in a section below.
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"experimentalObjectRestSpread": true
}
},
"env": {
"es6": true,
"browser": true,
"node": true,
"jquery": true
},
// Enable custom plugin known as eslint-plugin-react
"plugins": ["react", "react-hooks"],
"rules": {
// Disable `no-console` rule
"no-console": 0,
// Give a warning if identifiers contain underscores
"no-underscore-dangle": 0,
"no-empty-pattern": 0,
"react/prop-types": 0,
"react-hooks/rules-of-hooks": "error",
"no-empty": [
"error",
{
"allowEmptyCatch": true
}
],
"react/display-name": [0, { "ignoreTranspilerName": true }]
}
}