-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
47 lines (47 loc) · 1.23 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
module.exports = {
env: {
browser: true,
es2021: true
},
extends: [
'plugin:react/recommended',
'airbnb',
'eslint:recommended',
'eslint-config-prettier'
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaFeatures: {
jsx: true
},
ecmaVersion: 12,
sourceType: 'module'
},
plugins: ['react', '@typescript-eslint'],
rules: {
'import/no-unresolved': 0,
'import/prefer-default-export': 0,
'prefer-const': 0,
'react/jsx-filename-extension': [1, { extensions: ['.jsx', '.tsx'] }],
'react/jsx-props-no-spreading': 0,
'react/prop-types': 0,
'react/react-in-jsx-scope': 0,
'react/jsx-indent': 0,
'react/jsx-indent-props': 0,
'react/jsx-one-expression-per-line': 0,
'react/jsx-closing-tag-location': 0,
'jsx-a11y/anchor-is-valid': 0,
'import/extensions': 0,
'consistent-return': 0,
'no-plusplus': 0
},
ignorePatterns: [
'__tests__',
'__mocks__',
'next.config.js',
'jest.config.js',
'jest.setup.js',
'postcss.config.js',
'tailwind.config.js'
]
}