forked from vovietanh/incognito-chain-wallet-client-app
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.js
More file actions
69 lines (69 loc) · 1.81 KB
/
.eslintrc.js
File metadata and controls
69 lines (69 loc) · 1.81 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
module.exports = {
root: true,
env: {
browser: true,
commonjs: true,
es6: true,
'react-native/react-native': true,
'jest/globals': true,
},
extends: ['airbnb', 'react-native', 'eslint:recommended'],
parser: 'babel-eslint',
parserOptions: {
ecmaFeatures: {
experimentalObjectRestSpread: true,
jsx: true,
},
ecmaVersion: 2018,
sourceType: 'module',
babelOptions: {
configFile: './babel.config.js',
},
},
plugins: ['react', 'react-native', 'jest'],
settings: {
'import/resolver': {
'babel-module': {},
},
},
globals: {
__DEV__: true,
},
rules: {
'no-console': 0,
'react/jsx-filename-extension': [
2,
{ extensions: ['.js', '.jsx', '.ts', '.tsx'] },
],
// indent: [2, 2, { SwitchCase: 1 }],
'linebreak-style': ['error', 'unix'],
quotes: ['error', 'single'],
semi: ['error', 'always'],
'no-invalid-this': 0,
'import/no-commonjs': 0,
'react/jsx-no-bind': 0,
'react/prop-types': 0,
'react-native/no-inline-styles': 'off',
'react-native/no-color-literals': 'off',
'react/jsx-uses-react': 'error',
'react/jsx-uses-vars': 'error',
'react/no-array-index-key': 'warn',
'react/no-unused-prop-types': 'warn',
'react/jsx-wrap-multilines': 'warn',
'react/jsx-tag-spacing': 'warn',
'react/require-default-props': 'warn',
'import/prefer-default-export': 0,
'no-console': 0,
'no-unused-vars': 1,
'react/no-unused-state': 1,
'react-native/sort-styles': 0,
'react/forbid-prop-types': 0,
'react/prefer-stateless-function': 0,
'import/no-unresolved': 0, // tmp
'react/jsx-one-expression-per-line': 0,
'react/sort-comp': 0,
'react/jsx-handler-names': 0,
'react/display-name': 0,
'@typescript-eslint/no-explicit-any': 0,
},
};