forked from tongyy/react-native-draggable
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
44 lines (38 loc) · 1.04 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
const OFF = 0;
const WARNING = 1;
const ERROR = 2;
module.exports = {
parser: 'babel-eslint',
plugins: [
'react',
],
parserOptions: {
ecmaVersion: 6,
sourceType: 'module',
ecmaFeatures: {
jsx: true,
},
},
env: {
browser: true,
node: true,
jasmine: true,
es6: true,
},
globals: {
jest: false,
},
rules: {
'strict': OFF,
'block-scoped-var': ERROR,
'semi': [WARNING, 'always'],
'space-before-blocks': [WARNING, 'always'],
'space-in-parens': [OFF, 'never'],
'comma-dangle': [ERROR, 'only-multiline'],
'no-underscore-dangle': 0,
'no-delete-var': ERROR,
'react/jsx-uses-react': 1,
'no-mixed-spaces-and-tabs':ERROR,
'indent': ['error', 'tab']
}
};