-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.js
41 lines (41 loc) · 1022 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
40
41
module.exports = {
root: true,
env: {
node: true,
'react-native/react-native': true,
},
parserOptions: {
ecmaFeatures: {
jsx: true,
},
},
plugins: ['react', 'react-hooks', 'react-native', 'prettier', 'simple-import-sort', 'import'],
extends: [
'@react-native-community',
'plugin:react/recommended',
'plugin:react-hooks/recommended',
'plugin:import/recommended',
'plugin:react-native/all',
],
rules: {
'simple-import-sort/imports': 'error',
'simple-import-sort/exports': 'error',
'import/first': 'error',
'import/named': 0,
'import/newline-after-import': 'error',
'import/no-duplicates': 'error',
'react-native/no-unused-styles': 0,
'react-native/no-inline-styles': 0,
semi: [2, 'always'],
quotes: [2, 'single', {avoidEscape: true}],
'prettier/prettier': 2,
'no-console': 1,
'react/prop-types': 0,
},
settings: {
react: {
version: 'detect',
},
'import/extensions': ['.js', 'jsx'],
},
};