-
Notifications
You must be signed in to change notification settings - Fork 14
/
.eslintrc.js
27 lines (27 loc) · 1.02 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
module.exports = {
extends: ['standard-with-typescript'],
parserOptions: {
project: './tsconfig.json',
ecmaVersion: 2021
},
parser: '@typescript-eslint/parser',
plugins: ['react-hooks'],
rules: {
indent: 'off',
'@typescript-eslint/indent': 'off',
'no-unused-vars': 'off',
'multiline-ternary': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars-experimental': 'error',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/prefer-reduce-type-parameter': 'off',
'@typescript-eslint/strict-boolean-expressions': 'off',
'@typescript-eslint/space-before-function-paren': 'off',
'@typescript-eslint/prefer-nullish-coalescing': 'off',
'@typescript-eslint/member-delimiter-style': 'off',
'generator-star-spacing': ['error', { before: false, after: true }],
'yield-star-spacing': ['error', { before: false, after: true }],
'react-hooks/exhaustive-deps': 'off',
'react-hooks/rules-of-hooks': 'error'
}
}