-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
27 lines (27 loc) · 951 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
module.exports = {
parser: '@typescript-eslint/parser',
parserOptions: {
project: './tsconfig.json',
tsconfigRootDir: __dirname,
},
extends: [
'react-app',
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/recommended-requiring-type-checking',
'plugin:prettier/recommended',
],
plugins: ['simple-import-sort'],
rules: {
'simple-import-sort/sort': 'warn',
'no-shadow': 'error',
'no-debugger': 'off',
'jsx-a11y/accessible-emoji': 'off',
'@typescript-eslint/camelcase': 'off',
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/member-delimiter-style': 'off',
'@typescript-eslint/no-floating-promises': ['error', { ignoreVoid: true }],
'@typescript-eslint/no-misused-promises': ['error', { checksVoidReturn: false }],
'@typescript-eslint/explicit-function-return-type': ['error', { allowExpressions: true }],
},
}