forked from thundersdata-frontend/td-design
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
executable file
·45 lines (45 loc) · 1.45 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
module.exports = {
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint', 'react-hooks'],
extends: [
'plugin:@typescript-eslint/recommended', // Uses the recommended rules from the @typescript-eslint/eslint-plugin
'plugin:react/recommended',
'plugin:prettier/recommended', // Enables eslint-plugin-prettier and displays prettier errors as ESLint errors. Make sure this is always the last configuration in the extends array.
],
settings: {
react: {
version: 'detect',
},
},
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
jsx: true,
useJSXTextNode: true,
},
rules: {
// your rules
'react-hooks/rules-of-hooks': 'error',
'react-hooks/exhaustive-deps': 'error',
'global-require': 0,
'no-shadow': 0,
'operator-assignment': 0,
'no-param-reassign': 0,
'react/no-array-index-key': 0,
'react/prop-types': 0,
'react/no-did-update-set-state': 0,
'react/sort-comp': 0,
'react/display-name': 0,
'@typescript-eslint/no-use-before-define': 0,
'no-use-before-define': 0,
'no-console': 0,
'no-underscore-dangle': 0,
'lines-between-class-members': 0,
'@typescript-eslint/explicit-module-boundary-types': 0,
'@typescript-eslint/no-empty-function': 0,
'@typescript-eslint/no-non-null-assertion': 0,
'@typescript-eslint/no-var-requires': 0,
'@typescript-eslint/ban-ts-comment': 0,
'@typescript-eslint/no-explicit-any': 0,
},
};