-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.eslintrc.js
50 lines (50 loc) · 1.27 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
module.exports = {
parser: '@typescript-eslint/parser',
env: {
browser: true,
es2021: true,
},
plugins: ['react', 'react-hooks', 'tailwindcss', '@typescript-eslint'],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:react/recommended',
'standard-with-typescript',
'prettier',
'plugin:tailwindcss/recommended',
],
overrides: [],
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
ecmaFeatures: {
jsx: true,
},
project: './tsconfig.json',
},
rules: {
'react/react-in-jsx-scope': 'off',
'tailwindcss/classnames-order': 'off',
'tailwindcss/no-custom-classname': 'warn',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/strict-boolean-expressions': [
'warn',
{
allowNullableObject: true,
},
],
'@typescript-eslint/no-misused-promises': [
2,
{
checksVoidReturn: {
attributes: false,
},
},
],
'@typescript-eslint/consistent-type-imports': 'off',
'no-callback-literal': 'off',
'@typescript-eslint/no-confusing-void-expression': 'off',
'react/prop-types': 'off',
'@typescript-eslint/consistent-indexed-object-style': 'off',
},
};