-
-
Notifications
You must be signed in to change notification settings - Fork 167
/
.eslintrc.cjs
35 lines (35 loc) · 1.09 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
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
plugins: [
'@typescript-eslint',
],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended',
'plugin:react-hooks/recommended',
],
rules: {
'@typescript-eslint/ban-types': 'off', // reenable later?
// ---------
'@typescript-eslint/no-redeclare': 'error',
'@typescript-eslint/default-param-last': 'error',
'@typescript-eslint/no-invalid-void-type': 'warn',
'no-var': 'warn',
'prefer-const': 'warn',
'no-useless-escape': 'warn',
'@typescript-eslint/no-unused-vars': [
'error',
{ varsIgnorePattern: '^_', argsIgnorePattern: '^_' },
],
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-namespace': 'off',
'no-case-declarations': 'warn',
'prettier/prettier': 'warn',
'no-constant-binary-expression': 'error',
},
}