-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
39 lines (33 loc) · 1.07 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
// @ts-check
module.exports = {
extends: ['@thorgate/eslint-config-typescript'],
parser: '@typescript-eslint/parser',
parserOptions: {
project: ['./tsconfig.eslint.json', './packages/**/tsconfig.json'],
},
env: {
es6: true,
browser: true,
node: true,
jest: true,
},
rules: {
'no-console': 'warn',
'prettier/prettier': 'error',
'no-underscore-dangle': 'off',
'max-classes-per-file': 'off',
'no-param-reassign': 'off',
'@typescript-eslint/no-explicit-any': 'off', // warn
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/no-unused-vars': [
'error',
{ argsIgnorePattern: '^_', varsIgnorePattern: '^_' },
],
'react/jsx-props-no-spreading': 'off',
'react/state-in-constructor': 'off',
'react/static-property-placement': 'off',
'react/no-unescaped-entities': 'off',
'react-hooks/rules-of-hooks': 'error',
'react-hooks/exhaustive-deps': 'warn',
},
};