forked from just1and0/React-Native-Paystack-WebView
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc.js
52 lines (51 loc) · 1.19 KB
/
.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
42
43
44
45
46
47
48
49
50
51
52
const IGNORE = 0;
const WARN = 1;
const ERROR = 2;
module.exports = {
env: {
browser: true,
node: true,
jest: true,
es6: true,
},
extends: [
'plugin:react/recommended',
'airbnb',
'plugin:import/warnings',
'plugin:import/typescript',
'plugin:import/errors',
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 6,
sourceType: 'module',
ecmaFeatures: {
modules: true,
},
},
plugins: ['react', 'react-native', '@typescript-eslint', 'import'],
rules: {
// Allow imports from dev and peer dependencies
'import/no-extraneous-dependencies': [ERROR, { devDependencies: true, peerDependencies: true }],
'no-unused-vars': WARN,
'no-shadow': IGNORE,
'import/no-unresolved': IGNORE,
'import/extensions': [
ERROR,
'ignorePackages',
{
js: 'never',
jsx: 'never',
ts: 'never',
tsx: 'never',
},
],
'react/prop-types': IGNORE,
'no-use-before-define': IGNORE,
'react/jsx-filename-extension': IGNORE,
'no-case-declarations': IGNORE,
'no-unused-expressions': IGNORE,
'object-curly-newline': IGNORE,
'prefer-template': IGNORE,
},
};