-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
41 lines (41 loc) · 1.07 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
{
"env": {
"es6": true,
"node": true,
"mocha": true,
"browser": true
},
"parser": "babel-eslint",
"extends": ["eslint:recommended", "eslint-config-leapfrog/react", "prettier"],
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module"
},
"plugins": ["react", "react-hooks", "prettier"],
"rules": {
"react-hooks/exhaustive-deps":"error",
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
"require-jsdoc": [
"error",
{
"require": {
"FunctionDeclaration": true,
"MethodDefinition": false,
"ClassDeclaration": false,
"ArrowFunctionExpression": true,
"FunctionExpression": false
}
}
],
"react/display-name": "off"
},
"settings": {
"react": {
"pragma": "React", // Pragma to use, default to "React"
"version": "detect" // React version. "detect" automatically picks the version you have installed.
}
},
"globals": {
"expect": "readonly" // jest adds expect to global for ease out writing tests
}
}