-
Notifications
You must be signed in to change notification settings - Fork 4
/
.eslintrc.js
48 lines (43 loc) · 1.36 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
// @ts-check
module.exports = {
parser: '@typescript-eslint/parser',
parserOptions: {
project: './packages/**/tsconfig.eslint.json'
},
extends: [
'eslint:recommended',
'plugin:prettier/recommended',
'plugin:@typescript-eslint/recommended',
'plugin:react/recommended',
],
plugins: ['prettier', '@typescript-eslint', 'react', 'react-hooks'],
settings: {
react: {
version: '16.12',
},
},
env: {
es6: true,
browser: true,
node: true,
jest: true,
},
rules: {
'no-console': 'warn',
'prettier/prettier': 'error',
'@typescript-eslint/no-explicit-any': 'off', // warn
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/no-unused-vars': [
'error',
{ argsIgnorePattern: '^_', varsIgnorePattern: '^_' },
],
'@typescript-eslint/no-for-in-array': 'off',
'@typescript-eslint/no-unnecessary-qualifier': 'off',
'@typescript-eslint/no-unnecessary-type-assertion': 'off',
'@typescript-eslint/promise-function-async': 'off',
'@typescript-eslint/restrict-plus-operands': 'off',
'react/no-unescaped-entities': 'off',
'react-hooks/rules-of-hooks': 'error',
'react-hooks/exhaustive-deps': 'warn',
},
};