forked from Lay4U/jse-react
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
35 lines (35 loc) · 879 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
30
31
32
33
34
35
{
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:jsx-a11y/recommended",
"prettier",
"prettier/react"
],
"parserOptions": {
"ecmaVersion": 2017,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"plugins": ["react", "prettier", "jsx-a11y", "eslint-plugin-cypress"],
"env": {
"es6": true,
"browser": true,
"node": true,
"cypress/globals": true
},
"rules": {
"no-console": "off", // We use console.log for demonstrative purposes
"no-unused-vars": "off", // At times we have unused variables across chapters/sections
"react-hooks/rules-of-hooks": "error", // Checks rules of React Hooks
"react-hooks/exhaustive-deps": "warn" // Checks Hooks effect dependencies
},
"settings": {
"react": {
"pragma": "React",
"version": "detect"
}
}
}