-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy path.eslintrc.js
36 lines (36 loc) · 913 Bytes
/
.eslintrc.js
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
module.exports = {
env: {
browser: true,
es2021: true,
jest: true,
},
extends: ['eslint:recommended', 'plugin:react/recommended', 'prettier'],
overrides: [
{
env: {
node: true,
},
files: ['.eslintrc.{js,cjs}'],
parserOptions: {
sourceType: 'script',
},
},
],
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
},
plugins: ['react', 'react-hooks', 'prettier'],
rules: {
'react/prop-types': 'off', // keeping off for first phase
'no-unused-vars': 'off', // Getting a lot of Error for: '_' is assigned a value but never used no-unused-vars. For now disabling this because need to understand more about the use '_'.
},
settings: {
'import/resolver': {
node: {
moduleDirectory: ['node_modules', './src/*'],
extensions: ['.js', '.jsx', '.ts', '.tsx'],
},
},
},
};