-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
35 lines (35 loc) · 848 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
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
plugins: [
'@typescript-eslint',
],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:react/recommended',
'plugin:react-native/all',
'plugin:prettier/recommended',
'prettier/@typescript-eslint',
],
settings: {
'import/resolver': {
node: {
paths: ['.'],
extensions: ['.ios.ts', '.android.ts', '.ts', '.ios.tsx', '.android.tsx', '.tsx', '.jsx', '.js', '.json'],
moduleDirectory: ['node_modules', './'],
},
},
react: {
version: 'detect',
},
},
rules: {
'prettier/prettier': 'error',
'react-native/no-unused-styles': 'error',
'react-native/split-platform-components': 'off',
},
env: {
'react-native/react-native': true,
},
};