shuttlerock_shared_config 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/shuttlerock_shared_config/version.rb +1 -1
- data/lib/templates/.eslintrc +158 -101
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6649a0c736ec3628e50fe790e8def6a41c470d27493965895b74d5db67a87023
|
4
|
+
data.tar.gz: 25cbaa8987c0b1241c8c6fb917d96dfd7018dfb4a5ea21d36f01b47b353d29c0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b4c937dec2ef30b833371d36c2f636ce8fbf120edaa7d48c84fdc26553f68074a7ad9bbcc835446f7cd860b430bc6cd7eff3d6ec15b255efe9d55c2e3b680c4a
|
7
|
+
data.tar.gz: a0d1c7916584f19ce0f3230dcbed6ddef5646d508331786feae8206cfad998973749a4884848c5f0fb47264f576bf1a55d4139a835a2212ab4f95fd7dddbd65c
|
data/lib/templates/.eslintrc
CHANGED
@@ -1,103 +1,160 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
plugins:
|
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
|
-
|
1
|
+
{
|
2
|
+
"extends": [
|
3
|
+
"airbnb",
|
4
|
+
"plugin:flowtype/recommended"
|
5
|
+
],
|
6
|
+
"parser": "babel-eslint",
|
7
|
+
"plugins": [
|
8
|
+
"flowtype",
|
9
|
+
"import",
|
10
|
+
"jsdoc"
|
11
|
+
],
|
12
|
+
"env": {
|
13
|
+
"browser": true,
|
14
|
+
"node": true,
|
15
|
+
"mocha": true,
|
16
|
+
"es6": true,
|
17
|
+
"jquery": true
|
18
|
+
},
|
19
|
+
"globals": {
|
20
|
+
"$": true,
|
21
|
+
"App": true,
|
22
|
+
"Application": true,
|
23
|
+
"CustomEvent": true,
|
24
|
+
"document": true,
|
25
|
+
"Event": true,
|
26
|
+
"expect": true,
|
27
|
+
"fetch": true,
|
28
|
+
"gon": true,
|
29
|
+
"I18n": true,
|
30
|
+
"jest": true,
|
31
|
+
"Routes": true,
|
32
|
+
"window": true,
|
33
|
+
},
|
34
|
+
"rules": {
|
35
|
+
"class-methods-use-this": 0,
|
36
|
+
"global-require": 0,
|
37
|
+
"import/extensions": [
|
38
|
+
2,
|
39
|
+
"never"
|
40
|
+
],
|
41
|
+
"import/no-dynamic-require": 0,
|
42
|
+
"import/no-extraneous-dependencies": 0,
|
43
|
+
"import/no-named-as-default": 0,
|
44
|
+
"import/no-unresolved": [
|
45
|
+
2,
|
46
|
+
{
|
47
|
+
"ignore": [
|
48
|
+
"shuttlerock"
|
49
|
+
]
|
50
|
+
}
|
51
|
+
],
|
52
|
+
"import/prefer-default-export": 0,
|
53
|
+
"key-spacing": [
|
54
|
+
"error",
|
55
|
+
{
|
56
|
+
"multiLine": {
|
57
|
+
"beforeColon": false,
|
58
|
+
"afterColon": true
|
59
|
+
},
|
60
|
+
"align": {
|
61
|
+
"beforeColon": false,
|
62
|
+
"afterColon": true,
|
63
|
+
"on": "value"
|
64
|
+
}
|
65
|
+
}
|
66
|
+
],
|
67
|
+
"max-len": [
|
68
|
+
"error",
|
69
|
+
150
|
70
|
+
],
|
71
|
+
"no-duplicate-imports": 0,
|
72
|
+
"no-multi-spaces": [
|
73
|
+
"error",
|
74
|
+
{
|
75
|
+
"exceptions": {
|
76
|
+
"AssignmentExpression": true,
|
77
|
+
"BinaryExpression": true,
|
78
|
+
"ImportDeclaration": true,
|
79
|
+
"VariableDeclarator": true
|
80
|
+
}
|
81
|
+
}
|
82
|
+
],
|
83
|
+
"no-unused-vars": [
|
84
|
+
"error",
|
85
|
+
{
|
86
|
+
"argsIgnorePattern": "^__"
|
87
|
+
}
|
88
|
+
],
|
89
|
+
"lines-between-class-members": 0,
|
90
|
+
"react/destructuring-assignment": 0,
|
91
|
+
"react/no-danger": 0,
|
92
|
+
"react/no-array-index-key": 0,
|
93
|
+
"react/prefer-stateless-function": 0,
|
94
|
+
"react/require-default-props": 0,
|
95
|
+
"jsdoc/check-param-names": 1,
|
96
|
+
"jsdoc/check-tag-names": 1,
|
97
|
+
"jsdoc/check-types": 1,
|
98
|
+
"jsdoc/newline-after-description": 1,
|
99
|
+
"jsdoc/require-description-complete-sentence": 1,
|
100
|
+
"jsdoc/require-hyphen-before-param-description": 1,
|
101
|
+
"jsdoc/require-param": 1,
|
102
|
+
"jsdoc/require-param-description": 1,
|
103
|
+
"jsdoc/require-param-type": 1,
|
104
|
+
"jsdoc/require-returns-description": 1,
|
105
|
+
"jsdoc/require-returns-type": 1,
|
106
|
+
// See https://github.com/ReactTraining/react-router/issues/5598
|
107
|
+
"jsx-a11y/label-has-for": [
|
108
|
+
2,
|
109
|
+
{
|
110
|
+
"components": [
|
111
|
+
"Label"
|
112
|
+
],
|
113
|
+
"required": {
|
114
|
+
"some": [
|
115
|
+
"nesting",
|
116
|
+
"id"
|
117
|
+
]
|
118
|
+
},
|
119
|
+
"allowChildren": false
|
120
|
+
}
|
121
|
+
],
|
122
|
+
"jsx-a11y/anchor-is-valid": 0,
|
123
|
+
"jsx-a11y/no-autofocus": 0,
|
124
|
+
// TODO: remove this rule after we have gotten rid of all alert()s.
|
125
|
+
"no-alert": 0,
|
126
|
+
// Validate JSX has key prop when in array or iterator
|
127
|
+
"react/jsx-key": 0,
|
128
|
+
"react/jsx-no-duplicate-props": [
|
129
|
+
0,
|
130
|
+
{
|
131
|
+
"ignoreCase": false
|
132
|
+
}
|
133
|
+
],
|
134
|
+
// Enforce component methods order
|
135
|
+
"react/sort-comp": [
|
136
|
+
2,
|
137
|
+
{
|
138
|
+
"order": [
|
139
|
+
"static-methods",
|
140
|
+
"constructor",
|
141
|
+
"lifecycle",
|
142
|
+
"render",
|
143
|
+
"/^render.+$/",
|
144
|
+
"/^handle.+$/",
|
145
|
+
"everything-else"
|
146
|
+
]
|
147
|
+
}
|
148
|
+
],
|
149
|
+
// # function-paren-newline: ["error", "multiline"]
|
150
|
+
"no-console": [
|
151
|
+
"error",
|
152
|
+
{
|
153
|
+
"allow": [
|
154
|
+
"warn",
|
155
|
+
"error"
|
156
|
+
]
|
55
157
|
}
|
56
|
-
}
|
57
|
-
]
|
58
|
-
max-len: [error, 150]
|
59
|
-
no-duplicate-imports: off # import/no-duplicates replaces this one.
|
60
|
-
no-multi-spaces: [error, { exceptions: { AssignmentExpression: true, BinaryExpression: true, ImportDeclaration: true, VariableDeclarator: true } }]
|
61
|
-
no-unused-vars: ["error", { "argsIgnorePattern": "^__" }]
|
62
|
-
lines-between-class-members: off
|
63
|
-
react/destructuring-assignment: off
|
64
|
-
react/no-danger: off
|
65
|
-
react/no-array-index-key: off
|
66
|
-
react/prefer-stateless-function: off
|
67
|
-
react/require-default-props: off
|
68
|
-
jsdoc/check-param-names: 1
|
69
|
-
jsdoc/check-tag-names: 1
|
70
|
-
jsdoc/check-types: 1
|
71
|
-
jsdoc/newline-after-description: 1
|
72
|
-
jsdoc/require-description-complete-sentence: 1
|
73
|
-
jsdoc/require-hyphen-before-param-description: 1
|
74
|
-
jsdoc/require-param: 1
|
75
|
-
jsdoc/require-param-description: 1
|
76
|
-
jsdoc/require-param-type: 1
|
77
|
-
jsdoc/require-returns-description: 1
|
78
|
-
jsdoc/require-returns-type: 1
|
79
|
-
# See https://github.com/ReactTraining/react-router/issues/5598
|
80
|
-
jsx-a11y/label-has-for: [2, { "components": [ "Label" ], "required": { "some": [ "nesting", "id" ] }, "allowChildren": false }]
|
81
|
-
jsx-a11y/anchor-is-valid: off
|
82
|
-
jsx-a11y/no-autofocus: off
|
83
|
-
# TODO: remove this rule after we have gotten rid of all alert()s.
|
84
|
-
no-alert: off
|
85
|
-
// Validate JSX has key prop when in array or iterator
|
86
|
-
react/jsx-key: 0
|
87
|
-
react/jsx-no-duplicate-props: [0, {
|
88
|
-
"ignoreCase": false
|
89
|
-
}]
|
90
|
-
// Enforce component methods order
|
91
|
-
react/sort-comp: [2, {
|
92
|
-
"order": [
|
93
|
-
"static-methods",
|
94
|
-
"constructor",
|
95
|
-
"lifecycle",
|
96
|
-
"render",
|
97
|
-
"/^render.+$/",
|
98
|
-
"/^handle.+$/",
|
99
|
-
"everything-else"
|
100
158
|
]
|
101
|
-
}
|
102
|
-
|
103
|
-
no-console: ["error", { allow: ["warn", "error"] }]
|
159
|
+
}
|
160
|
+
}
|