forked from bldrs-ai/Share
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
49 lines (49 loc) · 1018 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
46
47
48
49
module.exports = {
env: {
browser: true,
es2021: true,
node: true,
jest: true,
},
'extends': [
'google',
'eslint:recommended',
'plugin:react/recommended',
'plugin:react-hooks/recommended',
'plugin:jsx-a11y/recommended',
],
parser: '@babel/eslint-parser',
parserOptions: {
babelOptions: {
plugins: [
'@babel/syntax-import-assertions'
],
},
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 'latest',
sourceType: 'module',
},
plugins: [
'import',
'react',
'jsx-a11y',
],
rules: {
'import/newline-after-import': ['error', { 'count': 2 }],
'max-len': ['error', 140],
'no-irregular-whitespace': ['error'],
'no-trailing-spaces': ['error'],
'prefer-rest-params': 'off',
'quote-props': ['error', 'consistent-as-needed'],
'react/prop-types': 'off',
'semi': ['error', 'never'],
},
settings: {
react: {
version: '17.0.2',
},
},
reportUnusedDisableDirectives: true,
}