-
Notifications
You must be signed in to change notification settings - Fork 4
/
.eslintrc.js
45 lines (45 loc) · 892 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
37
38
39
40
41
42
43
44
45
module.exports = {
extends: [
'airbnb-base',
'plugin:react/recommended',
'plugin:prettier/recommended',
],
env: {
es6: true,
node: true,
jest: true,
browser: true,
},
parser: '@babel/eslint-parser',
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 2021,
sourceType: 'module',
},
rules: {
'import/extensions': 0,
'no-console': 0,
'no-alert': 0,
'no-unused-vars': 0,
'react/prop-types': 0,
'import/no-unresolved': 0,
'global-require': 0,
'class-methods-use-this': 0,
'import/no-extraneous-dependencies': 0,
'arrow-body-style': 1,
'prefer-arrow-callback': 1,
},
settings: {
'import/resolver': {
node: {
extensions: ['.js', '.jsx'],
moduleDirectory: ['node_modules', 'src/'],
},
},
react: {
version: 'detect',
},
},
};