-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.eslintrc.js
36 lines (36 loc) · 1.02 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
module.exports = {
root: true,
parserOptions: {
tsconfigRootDir: __dirname,
project: ['./tsconfig.json'],
},
extends: [
'plugin:react/recommended',
'plugin:react-hooks/recommended',
'standard-with-typescript',
'prettier',
],
plugins: ['react'],
settings: {
react: {
version: 'detect',
},
},
ignorePatterns: ['metro.config.js', 'babel.config.js', '.eslintrc.js'],
rules: {
'react-hooks/exhaustive-deps': 'error',
'react/react-in-jsx-scope': 'off',
'@typescript-eslint/strict-boolean-expressions': 'off',
'array-callback-return': 'off',
'@typescript-eslint/promise-function-async': 'off',
'@typescript-eslint/key-spacing': 'off',
'react/prop-types': 'off',
'@typescript-eslint/no-redeclare': 'off',
'@typescript-eslint/consistent-type-assertions': 'off',
'@typescript-eslint/strict-boolean-expressions': 'off',
'no-restricted-exports': [
'error',
{'restrictDefaultExports': {'namespaceFrom': true, 'namedFrom': true}},
],
},
}