-
Notifications
You must be signed in to change notification settings - Fork 0
/
react.js
59 lines (59 loc) · 1.44 KB
/
react.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
module.exports = {
env: {
browser: true,
es2021: true,
},
extends: [
'airbnb',
'plugin:react/recommended',
'plugin:react-hooks/recommended',
'plugin:jsx-a11y/recommended',
'prettier',
],
plugins: ['import', 'react', 'jsx-a11y'],
parserOptions: {
ecmaFeatures: {
jsx: true,
},
},
settings: {
react: { version: 'detect' },
},
rules: {
semi: ['error', 'never'],
'class-methods-use-this': 0,
'function-paren-newline': 0,
'comma-dangle': 0,
'max-len': 0,
'implicit-arrow-linebreak': 0,
'newline-per-chained-call': 0,
'operator-linebreak': 0,
'object-curly-newline': 0,
'import/prefer-default-export': 0,
'import/no-unresolved': 0,
'import/extensions': ['error', 'never', { json: 'always' }],
'react/react-in-jsx-scope': 0,
'react/display-name': 0,
'no-use-before-define': 0,
'react/jsx-filename-extension': [2, { extensions: ['.tsx'] }],
'react/prop-types': 'off',
'react/jsx-boolean-value': 2,
'react/jsx-props-no-spreading': 'off',
'react/no-danger': 0,
'import/no-extraneous-dependencies': [
'error',
{
devDependencies: ['**/*.stories.*', '**/*.test.*', '**/*.spec.*'],
optionalDependencies: false,
},
],
'react/function-component-definition': 0,
'react/require-default-props': 0,
'react/jsx-sort-props': [
2,
{
shorthandFirst: true,
},
],
},
}