-
Notifications
You must be signed in to change notification settings - Fork 6
/
.eslintrc.js
35 lines (35 loc) · 856 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 = {
parserOptions: {
ecmaVersion: 2019, // Allows for the parsing of modern ECMAScript features
sourceType: 'module', // Allows for the use of imports
ecmaFeatures: {
jsx: true,
},
extraFileExtensions: ['.js', '.jsx'],
},
env: {
node: true,
browser: true,
},
globals: { Symbol: 'false' },
plugins: ['react-native', 'react-hooks'],
rules: {
camelcase: ['warn', { properties: 'always' }],
eqeqeq: 1,
'no-console': 0,
'no-irregular-whitespace': 0,
'no-undef': 1,
'require-await': 1,
'react/prop-types': 0,
'react-hooks/rules-of-hooks': 'error',
'react-hooks/exhaustive-deps': 'warn',
'import/order': 0,
'import/namespace': 0,
},
extends: ['eslint:recommended', 'universe/native'],
settings: {
react: {
version: 'detect',
},
},
};