-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.cjs
38 lines (38 loc) · 1 KB
/
.eslintrc.cjs
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
module.exports = {
env: {
browser: true,
es2021: true
},
settings: {
react: {
version: 'detect'
}
},
extends: [
'standard-with-typescript',
'eslint-config-prettier',
'plugin:react/recommended',
'plugin:react/jsx-runtime',
'plugin:testing-library/react',
'plugin:jest-dom/recommended'
],
overrides: [],
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
project: './tsconfig.json'
},
plugins: ['react'],
rules: {
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/no-unused-vars': 'warn',
'@typescript-eslint/consistent-type-definitions': ['error', 'type'],
'@typescript-eslint/no-misused-promises': 'off',
'@typescript-eslint/strict-boolean-expressions': 'off',
'no-throw-literal': 'off',
'@typescript-eslint/no-throw-literal': 'off',
'react/no-unescaped-entities': 'off',
'@typescript-eslint/consistent-type-imports': 'warn'
},
ignorePatterns: ['vite.config.ts']
}