-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
28 lines (28 loc) · 857 Bytes
/
.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
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
extends: ['plugin:prettier/recommended'],
rules: {
'no-use-before-define': 0,
'react/style-prop-object': 0,
'react/require-default-props': 0,
'import/extensions': 0,
'@typescript-eslint/interface-name-prefix': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-empty-function': 'off',
'no-empty-function': 'off',
'react-hooks/rules-of-hooks': 'error',
'react-hooks/exhaustive-deps': 'warn',
'no-smart-quotes/no-smart-quotes': 'error',
},
globals: {
__DEV__: 'readonly',
},
plugins: [
'react-hooks',
'no-smart-quotes',
'@typescript-eslint/eslint-plugin',
],
};