-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc.js
54 lines (53 loc) · 1.5 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
const { peerDependencies } = require('./package.json');
module.exports = {
root: true,
env: {
browser: true,
es2021: true,
'jest/globals': true,
},
extends: [
'airbnb',
'plugin:react/recommended',
'plugin:prettier/recommended',
'plugin:react-hooks/recommended',
],
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 12,
sourceType: 'module',
},
plugins: ['react', 'jest'],
rules: {
'prettier/prettier': 'error',
'import/no-unresolved': [
'error',
{ ignore: Object.keys(peerDependencies) },
],
'react/forbid-prop-types': 0,
'global-require': 0,
'prefer-arrow-callback': 0,
'func-names': 0,
'import/no-extraneous-dependencies': 0,
'no-underscore-dangle': 0,
'no-unused-expressions': 0,
'no-use-before-define': 0,
'react/jsx-filename-extension': 0,
'react/sort-comp': 0,
'react/no-multi-comp': 0,
'react/require-extension': 0,
'react/prefer-stateless-function': 0,
'react/prop-types': 0,
'react/jsx-no-bind': 0,
'react/jsx-closing-bracket-location': 0,
'jsx-a11y/alt-text': 0,
'react/jsx-curly-brace-presence': 0,
'no-return-assign': 0,
'react/no-find-dom-node': 0,
'no-param-reassign': 0,
'consistent-return': 0,
'react/jsx-props-no-spreading': 0,
},
};