-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.js
39 lines (39 loc) · 897 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
29
30
31
32
33
34
35
36
37
38
39
module.exports = {
parser: '@typescript-eslint/parser',
parserOptions: {
project: 'tsconfig.eslint.json',
tsconfigRootDir: __dirname,
},
plugins: [
'@typescript-eslint',
'import',
'react',
'react-hooks',
'react-native',
'prettier',
],
extends: [
'airbnb-typescript',
'plugin:import/recommended',
'plugin:import/typescript',
'plugin:react/recommended',
'plugin:react-hooks/recommended',
'prettier',
'plugin:prettier/recommended',
],
ignorePatterns: ['backend', 'env'],
rules: {
'import/namespace': 'off',
'import/order': 'error',
'import/extensions': 'off',
'import/no-unresolved': [2, { ignore: ['env$'] }],
'no-use-before-define': 'off',
'@typescript-eslint/no-use-before-define': 'off',
'prettier/prettier': 'error',
},
settings: {
react: {
version: 'detect',
},
},
};