-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
69 lines (69 loc) · 1.62 KB
/
.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
module.exports = {
root: true,
env: {
browser: true,
node: true,
es2021: true,
},
extends: [
'eslint:recommended',
'plugin:react/recommended',
'plugin:import/errors',
'plugin:import/warnings',
'plugin:jsx-a11y/recommended',
'plugin:react-hooks/recommended',
'airbnb',
],
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 12,
sourceType: 'module',
},
plugins: ['react'],
rules: {
'react/jsx-filename-extension': [2, { extensions: ['.js', '.jsx'] }],
'react/no-this-in-sfc': 0,
'react/desctructuring-assigment': 0,
'react/react-in-jsx-scope': 0,
'react/jsx-one-expression-per-line': 0,
'react/jsx-props-no-spreading': 0,
'no-nested-ternary': 0,
'react-hooks/rules-of-hooks': 'error',
'react-hooks/exhaustive-deps': 'warn',
'no-underscore-dangle': [
'error',
{
allow: ['_id'],
},
],
'react/jsx-wrap-multilines': 0,
'comma-dangle': [
'error',
{
arrays: 'always-multiline',
objects: 'always-multiline',
imports: 'always-multiline',
exports: 'always-multiline',
functions: 'never',
},
],
'import/no-unresolved': 'off',
'operator-linebreak': [
'error',
'after',
{ overrides: { '?': 'ignore', ':': 'ignore' } },
],
'function-paren-newline': 0,
'react/require-default-props': 0,
'func-names': 0,
'import/prefer-default-export': 0,
'object-curly-newline': 0,
'implicit-arrow-linebreak': 0,
'no-confusing-arrow': 0,
'arrow-body-style': 0,
'max-len': 0,
indent: 0,
},
};