forked from gusgard/react-native-swiper-flatlist
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
executable file
·44 lines (43 loc) · 831 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
42
43
44
const OFF = 0;
const WARNING = 1;
const ERROR = 2;
module.exports = {
extends: [
'@react-native-community',
// 'prettier',
// 'prettier/flowtype',
// 'prettier/react',
// 'eslint:recommended',
// 'plugin:import/errors',
// 'plugin:import/warnings',
],
plugins: ['detox'],
parserOptions: {
ecmaVersion: 2019,
sourceType: 'module',
ecmaFeatures: {
jsx: true,
},
},
env: {
es6: true,
node: true,
},
rules: {
'consistent-return': WARNING,
},
settings: {
'import/resolver': {
reactnative: {},
},
react: {
pragma: 'React', // Pragma to use, default to "React"
version: '99', // React version, default to the latest React stable release
},
},
globals: {
it: false,
describe: false,
expect: false,
},
};