-
Notifications
You must be signed in to change notification settings - Fork 5
/
.eslintrc.js
46 lines (46 loc) · 1.28 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
module.exports = {
root: true,
env: {
browser: false,
node: true,
es2021: true
},
extends: ['plugin:react/recommended', 'airbnb', 'prettier', 'airbnb-typescript'],
parser: '@typescript-eslint/parser',
parserOptions: {
project: './tsconfig.json',
ecmaFeatures: {
jsx: true
},
ecmaVersion: 13,
sourceType: 'module'
},
plugins: ['react', 'react-hooks', 'prettier', '@typescript-eslint'],
rules: {
'prettier/prettier': [
'error',
{
useTabs: false
}
],
'func-names': 0,
'prefer-destructuring': 0,
'@typescript-eslint/semi': 'off',
'react/style-prop-object': 'off',
'react/function-component-definition': 'off',
'arrow-body-style': 'off',
'import/prefer-default-export': 'off',
'@typescript-eslint/comma-dangle': 'off',
'consistent-return': 'off',
'react/jsx-props-no-spreading': 'off',
'react/require-default-props': 'off',
'@typescript-eslint/no-unused-expressions': 'off',
'@typescript-eslint/no-extra-semi': 'off',
'no-plusplus': 'off',
'@typescript-eslint/indent': 'off',
'react/no-unstable-nested-components': 'off',
'react-hooks/exhaustive-deps': 'warn',
'react/react-in-jsx-scope': 'off',
'@typescript-eslint/no-floating-promises': 'warn'
}
}