-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.js
80 lines (80 loc) · 1.98 KB
/
index.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
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
module.exports = {
"extends": "airbnb",
"env": {
"browser": true,
"jquery": true,
"jasmine": true,
"mocha": true
},
"globals": {
"angular": true
},
"rules": {
"arrow-parens": ["error", "as-needed", {
"requireForBlockBody": true
}],
"eol-last": "off",
"func-names": "off",
"function-paren-newline": "off",
"guard-for-in": "off",
"implicit-arrow-linebreak": "off",
"keyword-spacing": "warn",
"lines-between-class-members": "off",
"max-len": [
"error", 100, 2, {
"ignoreUrls": true,
"ignoreComments": false,
"ignoreRegExpLiterals": true,
"ignoreStrings": true,
"ignoreTemplateLiterals": true,
"ignoreUrls": true,
"ignorePattern": "^\\s*(function|.factory|.service|.controller|.config|.run|.filter|.component|constructor)"
}
],
"no-console": "warn",
"no-multiple-empty-lines": [
"error", {
"max": 4,
"maxEOF": 2
}
],
"no-param-reassign": [
"error", {
"props": false
}
],
"no-restricted-syntax": "warn",
"no-trailing-spaces": [
"error", {
"skipBlankLines": true
}
],
"no-use-before-define": [
"error", {
"functions": false,
"classes": false
}
],
"object-curly-newline": "off",
"operator-linebreak": "off",
"padded-blocks": "off",
"react/destructuring-assignment": "off",
"react/jsx-filename-extension": "off",
"react/jsx-tag-spacing": [
"error", {
"closingSlash": "never",
"beforeSelfClosing": "allow",
"afterOpening": "never",
"beforeClosing": "allow"
}
],
"react/jsx-curly-newline": "off",
"react/jsx-one-expression-per-line": "off",
"react/prop-types": "off",
"react/jsx-props-no-spreading": "off",
"react/no-array-index-key": "off",
"react/no-did-update-set-state": "off",
"react/sort-comp": "off",
"react/state-in-constructor": "off"
}
}