-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path.eslintrc.js
39 lines (39 loc) · 938 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
module.exports = {
env: {
browser: true,
es2021: true,
},
extends: [
'eslint:recommended',
'plugin:react/recommended',
'plugin:@typescript-eslint/recommended',
'plugin:react-hooks/recommended',
'prettier',
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 13,
sourceType: 'module',
},
plugins: ['react', 'react-hooks', '@typescript-eslint', 'prettier'],
rules: {
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'react/prop-types': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'react/jsx-key': 'off',
'react/react-in-jsx-scope': 'off',
'@typescript-eslint/ban-types': 'off',
'prettier/prettier': [
'error',
{
trailingComma: 'es5',
printWidth: 100,
singleQuote: true,
},
],
},
};