forked from postlight/lux
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
88 lines (88 loc) · 2.11 KB
/
.eslintrc.json
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
{
"parser": "babel-eslint",
"plugins": [
"jest",
"flowtype"
],
"extends": "airbnb-base",
"env": {
"node": true
},
"globals": {
"$PropertyType": true,
"afterAll": true,
"afterEach": true,
"beforeAll": true,
"beforeEach": true,
"Class": true,
"describe": true,
"expect": true,
"Generator": true,
"it": true,
"jasmine": true,
"jest": true,
"Knex$QueryBuilder": true,
"Knex$SchemaBuilder": true,
"Knex$Transaction": true,
"Process": true,
"test": true
},
"settings": {
"flowtype": {
"onlyFilesWithFlowAnnotation": true
}
},
"parserOptions": {
"ecmaVersion": 2017,
"sourceType": "module",
"ecmaFeatures": {
"impliedStrict": true,
"experimentalObjectRestSpread": true
}
},
"rules": {
"semi": ["error", "never"],
"strict": 0,
"max-len": ["error", 80],
"arrow-parens": 0,
"comma-dangle": [2, "only-multiline"],
"global-require": 0,
"no-underscore-dangle": 0,
"class-methods-use-this": 0,
"no-irregular-whitespace": 0,
"no-restricted-syntax": [
"error",
"ForInStatement",
"LabeledStatement",
"WithStatement"
],
"import/order": ["warn", {
"groups": [
"builtin",
"external",
"internal",
"parent",
"sibling",
"index"
],
"newlines-between": "always"
}],
"import/extensions": 0,
"import/no-named-default": 0,
"import/no-dynamic-require": 0,
"import/prefer-default-export": 0,
"jest/no-focused-tests": "error",
"jest/no-disabled-tests": "warn",
"jest/no-identical-title": "error",
"flowtype/semi": ["error", "never"],
"flowtype/no-dupe-keys": 2,
"flowtype/boolean-style": [2, "boolean"],
"flowtype/generic-spacing": 2,
"flowtype/define-flow-type": 0,
"flowtype/space-after-type-colon": [2, "always"],
"flowtype/space-before-type-colon": [2, "never"],
"flowtype/union-intersection-spacing": [2, "always"],
"flowtype/space-before-generic-bracket": [2, "never"],
"flowtype/require-valid-file-annotation": [2, "always"]
}
}