card 1.93.3 → 1.93.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (160) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/db/migrate/20170908114452_increase_text_size_for_delayed_jobs.rb +9 -0
  4. data/db/migrate_core_cards/data/cards/*header +2 -2
  5. data/lib/card/format/nest.rb +12 -5
  6. data/lib/card/format/nest/fetch.rb +1 -2
  7. data/lib/card/format/render.rb +2 -2
  8. data/lib/card/model/save_helper.rb +1 -1
  9. data/lib/card/set/format/haml_views.rb +7 -3
  10. data/lib/card/subcards.rb +27 -228
  11. data/lib/card/subcards/add.rb +121 -0
  12. data/lib/card/subcards/relate.rb +27 -0
  13. data/lib/card/subcards/remove.rb +42 -0
  14. data/lib/card/tasks/card/create.rake +35 -132
  15. data/lib/card/tasks/card/file_card_creator.rb +25 -0
  16. data/lib/card/tasks/card/file_card_creator/abstract_file_card.rb +44 -0
  17. data/lib/card/tasks/card/file_card_creator/abstract_file_card/migration_file.rb +49 -0
  18. data/lib/card/tasks/card/file_card_creator/abstract_file_card/ruby_file.rb +30 -0
  19. data/lib/card/tasks/card/file_card_creator/abstract_file_card/source_file.rb +36 -0
  20. data/lib/card/tasks/card/file_card_creator/haml_card.rb +42 -0
  21. data/lib/card/tasks/card/file_card_creator/output_helper.rb +50 -0
  22. data/lib/card/tasks/card/file_card_creator/script_card.rb +33 -0
  23. data/lib/card/tasks/card/file_card_creator/style_card.rb +25 -0
  24. data/lib/generators/card/template/template_generator.rb +1 -1
  25. data/mod/account/set/self/account_links.rb +1 -1
  26. data/mod/basic_formats/set/all/all_csv.rb +63 -0
  27. data/mod/basic_formats/set/all/json.rb +4 -1
  28. data/mod/bootstrap/db/migrate_cards/20170719163733_update_bootswatch_themes_to_4_beta.rb +5 -2
  29. data/mod/carrierwave/set/abstract/attachment.rb +1 -2
  30. data/mod/core/set/abstract/haml_file.rb +20 -0
  31. data/mod/core/set/all/chunk.rb +125 -0
  32. data/mod/core/set/all/collection.rb +2 -351
  33. data/mod/core/set/all/content.rb +26 -7
  34. data/mod/core/set/all/extended.rb +45 -0
  35. data/mod/core/set/all/haml.rb +3 -7
  36. data/mod/core/set/all/item.rb +92 -0
  37. data/mod/core/set/all/name.rb +36 -0
  38. data/mod/core/set/all/subcards.rb +21 -12
  39. data/mod/core/set/all/tabs.rb +50 -0
  40. data/mod/core/set/all/trash.rb +4 -0
  41. data/mod/core/spec/set/all/chunk_spec.rb +45 -0
  42. data/mod/core/spec/set/all/collection_spec.rb +6 -6
  43. data/mod/history/set/all/action_view.rb +1 -1
  44. data/mod/machines/lib/javascript/decko.js.coffee +3 -0
  45. data/mod/pointer/set/abstract/02_pointer/edit.rb +0 -2
  46. data/mod/search/set/abstract/search.rb +1 -1
  47. data/mod/search/set/all/filter.rb +0 -2
  48. data/mod/search/template/all/filter/_filter_input.haml +1 -1
  49. data/mod/search/template/all/filter/filter_form.haml +1 -1
  50. data/mod/standard/set/all/rich_html/editing.rb +1 -1
  51. data/mod/standard/set/all/rich_html/form.rb +6 -7
  52. data/mod/standard/set/all/rich_html/menu.rb +2 -3
  53. data/mod/standard/set/all/rich_html/toolbar.rb +3 -4
  54. data/mod/standard/set/type/cardtype.rb +1 -1
  55. data/mod/standard/spec/set/all/rich_html/editing_spec.rb +15 -4
  56. data/mod/tinymce_editor/db/migrate_cards/{20171113233150_update_tinymce_config.rb → 20171113233151_update_tinymce_config.rb} +1 -0
  57. metadata +25 -161
  58. data/.rspec +0 -4
  59. data/card.gemspec +0 -87
  60. data/db/seed/test/fixtures/.gitkeep +0 -0
  61. data/mod/bootstrap/vendor/bootstrap/.babelrc.js +0 -16
  62. data/mod/bootstrap/vendor/bootstrap/.editorconfig +0 -17
  63. data/mod/bootstrap/vendor/bootstrap/.eslintignore +0 -3
  64. data/mod/bootstrap/vendor/bootstrap/.gitattributes +0 -16
  65. data/mod/bootstrap/vendor/bootstrap/.github/CONTRIBUTING.md +0 -252
  66. data/mod/bootstrap/vendor/bootstrap/.github/ISSUE_TEMPLATE.md +0 -22
  67. data/mod/bootstrap/vendor/bootstrap/.gitignore +0 -46
  68. data/mod/bootstrap/vendor/bootstrap/.hound.yml +0 -19
  69. data/mod/bootstrap/vendor/bootstrap/.houndignore +0 -4
  70. data/mod/bootstrap/vendor/bootstrap/.travis.yml +0 -32
  71. data/mod/bootstrap/vendor/bootstrap/build/.htmllintrc +0 -19
  72. data/mod/bootstrap/vendor/bootstrap/build/.stylelintrc +0 -248
  73. data/mod/bootstrap/vendor/bootstrap/docs/4.0/examples/.stylelintrc +0 -12
  74. data/mod/bootstrap/vendor/bootstrap/js/.eslintrc.json +0 -240
  75. data/mod/bootstrap/vendor/bootstrap/js/tests/.eslintrc.json +0 -46
  76. data/mod/bootstrap/vendor/bootswatch/.gitignore +0 -7
  77. data/mod/bootstrap/vendor/bootswatch/.npmignore +0 -12
  78. data/mod/bootstrap/vendor/bootswatch/.travis.yml +0 -21
  79. data/mod/bootstrap/vendor/bootswatch/docs/.nojekyll +0 -0
  80. data/mod/bootstrap/vendor/bootswatch/docs/2/.travis.yml +0 -15
  81. data/mod/bootstrap/vendor/bootswatch/docs/2/bower_components/bootstrap/.bower.json +0 -20
  82. data/mod/bootstrap/vendor/bootswatch/docs/2/bower_components/bootstrap/.gitignore +0 -37
  83. data/mod/bootstrap/vendor/bootswatch/docs/2/bower_components/bootstrap/.travis.yml +0 -3
  84. data/mod/bootstrap/vendor/bootswatch/docs/2/bower_components/bootstrap/js/.jshintrc +0 -12
  85. data/mod/bootstrap/vendor/bootswatch/docs/2/bower_components/jquery/.bower.json +0 -20
  86. data/mod/bootstrap/vendor/bootswatch/docs/2/bower_components/jquery/.gitignore +0 -1
  87. data/mod/bootstrap/vendor/bootswatch/docs/2/swatchmaker/.gitignore +0 -1
  88. data/mod/bootstrap/vendor/bootswatch/docs/3/bower_components/bootstrap-sass-official/.bower.json +0 -45
  89. data/mod/bootstrap/vendor/bootswatch/docs/3/bower_components/bootstrap/.bower.json +0 -44
  90. data/mod/bootstrap/vendor/bootswatch/docs/3/bower_components/bootstrap/grunt/.jshintrc +0 -7
  91. data/mod/bootstrap/vendor/bootswatch/docs/3/bower_components/bootstrap/js/.jscsrc +0 -42
  92. data/mod/bootstrap/vendor/bootswatch/docs/3/bower_components/bootstrap/js/.jshintrc +0 -15
  93. data/mod/bootstrap/vendor/bootswatch/docs/3/bower_components/bootstrap/less/.csscomb.json +0 -304
  94. data/mod/bootstrap/vendor/bootswatch/docs/3/bower_components/bootstrap/less/.csslintrc +0 -19
  95. data/mod/bootstrap/vendor/bootswatch/docs/3/bower_components/font-awesome/.bower.json +0 -14
  96. data/mod/bootstrap/vendor/bootswatch/docs/3/bower_components/font-awesome/.gitignore +0 -32
  97. data/mod/bootstrap/vendor/bootswatch/docs/3/bower_components/html5shiv/.bower.json +0 -25
  98. data/mod/bootstrap/vendor/bootswatch/docs/3/bower_components/jquery/.bower.json +0 -38
  99. data/mod/bootstrap/vendor/bootswatch/docs/3/bower_components/respond/.bower.json +0 -20
  100. data/mod/bootstrap/vendor/select2/.editorconfig +0 -6
  101. data/mod/bootstrap/vendor/select2/.github/CONTRIBUTING.md +0 -204
  102. data/mod/bootstrap/vendor/select2/.github/ISSUE_TEMPLATE.md +0 -46
  103. data/mod/bootstrap/vendor/select2/.github/PULL_REQUEST_TEMPLATE.md +0 -13
  104. data/mod/bootstrap/vendor/select2/.gitignore +0 -3
  105. data/mod/bootstrap/vendor/select2/.jshintignore +0 -4
  106. data/mod/bootstrap/vendor/select2/.jshintrc +0 -25
  107. data/mod/bootstrap/vendor/select2/.travis.yml +0 -22
  108. data/script/fetch_bootswatch_themes.rb +0 -38
  109. data/spec/config/initializers/core_extensions_spec.rb +0 -47
  110. data/spec/config/initializers/patches/active_job_spec.rb +0 -7
  111. data/spec/lib/card/action_spec.rb +0 -15
  112. data/spec/lib/card/auth_spec.rb +0 -58
  113. data/spec/lib/card/cache_spec.rb +0 -116
  114. data/spec/lib/card/chunk_spec.rb +0 -18
  115. data/spec/lib/card/codename_spec.rb +0 -66
  116. data/spec/lib/card/content_spec.rb +0 -428
  117. data/spec/lib/card/diff_spec.rb +0 -208
  118. data/spec/lib/card/format/nest_spec.rb +0 -13
  119. data/spec/lib/card/format/render_spec.rb +0 -26
  120. data/spec/lib/card/format_spec.rb +0 -117
  121. data/spec/lib/card/i18n_spec.rb +0 -24
  122. data/spec/lib/card/loader/Modfile +0 -2
  123. data/spec/lib/card/loader_spec.rb +0 -98
  124. data/spec/lib/card/migration/import_spec.rb +0 -80
  125. data/spec/lib/card/mod/loader/mod_dirs.rb +0 -8
  126. data/spec/lib/card/mod/loader/set_loader_spec.rb +0 -19
  127. data/spec/lib/card/mod/loader/set_pattern_loader_spec.rb +0 -19
  128. data/spec/lib/card/name/fields_and_traits_spec.rb +0 -18
  129. data/spec/lib/card/name_spec.rb +0 -70
  130. data/spec/lib/card/query/sorting_spec.rb +0 -68
  131. data/spec/lib/card/query_spec.rb +0 -574
  132. data/spec/lib/card/reference_spec.rb +0 -212
  133. data/spec/lib/card/set/event_spec.rb +0 -22
  134. data/spec/lib/card/set/trait_spec.rb +0 -80
  135. data/spec/lib/card/set_pattern_spec.rb +0 -59
  136. data/spec/lib/card/set_spec.rb +0 -89
  137. data/spec/lib/card/stage_director_spec.rb +0 -482
  138. data/spec/lib/card/subcards_spec.rb +0 -177
  139. data/spec/lib/card/success_spec.rb +0 -148
  140. data/spec/lib/card/view_cache_spec.rb +0 -27
  141. data/spec/mailers/mailer_spec.rb +0 -62
  142. data/spec/models/card/create_spec.rb +0 -119
  143. data/spec/models/card/trash_spec.rb +0 -189
  144. data/spec/models/card_spec.rb +0 -136
  145. data/spec/spec_helper.rb +0 -45
  146. data/spec/support/card_spec_helper.rb +0 -74
  147. data/spec/support/card_spec_loader.rb +0 -112
  148. data/spec/support/helper/card_helper.rb +0 -58
  149. data/spec/support/helper/event_helper.rb +0 -94
  150. data/spec/support/helper/render_helper.rb +0 -44
  151. data/spec/support/helper/save_helper.rb +0 -30
  152. data/spec/support/helper/set_helper.rb +0 -80
  153. data/spec/support/matchers/card_matchers.rb +0 -160
  154. data/spec/support/matchers/expectations.rb +0 -5
  155. data/spec/support/matchers/file_matchers.rb +0 -71
  156. data/spec/support/matchers/html_matchers.rb +0 -29
  157. data/spec/support/matchers/negated_matchers.rb +0 -2
  158. data/spec/support/simplecov_helper.rb +0 -70
  159. data/spec/support/test_mods/mod1/set/all/test_set.rb +0 -3
  160. data/spec/support/test_mods/mod2/set_pattern/test_pattern.rb +0 -0
@@ -1,19 +0,0 @@
1
- fail_on_violations: true
2
-
3
- stylelint:
4
- config_file: build/.stylelintrc
5
- enabled: true
6
- ignore_file: .houndignore
7
-
8
- eslint:
9
- config_file: js/.eslintrc.json
10
- ignore_file: .houndignore
11
-
12
- scss:
13
- enabled: false
14
-
15
- jshint:
16
- enabled: false
17
-
18
- ruby:
19
- enabled: false
@@ -1,4 +0,0 @@
1
- **/*.min.js
2
- **/vendor/*
3
- **/dist/*
4
- js/tests/*
@@ -1,32 +0,0 @@
1
- sudo: false
2
- dist: trusty
3
- language: node_js
4
- git:
5
- depth: 3
6
- node_js:
7
- - "6"
8
- - "8"
9
- before_install:
10
- - if [[ `npm -v` != 5* ]]; then npm install -g npm@5; fi
11
- install:
12
- - bundle install --deployment --jobs=3 --retry=3
13
- - npm install
14
- after_success:
15
- - if [ "$TRAVIS_REPO_SLUG" = twbs-savage/bootstrap ]; then npm run docs-upload-preview; fi
16
- stages:
17
- - test
18
- - name: browser
19
- if: type = push
20
- jobs:
21
- include:
22
- - stage: browser
23
- node_js: 8
24
- script: if ! git log --format=%B --no-merges -n 1 | grep '\[skip browser\]'; then npm test && npm run js-test-cloud; fi
25
- cache:
26
- directories:
27
- - node_modules
28
- - vendor/bundle
29
- notifications:
30
- slack: heybb:iz4wwosL0N0EdaX1gvgkU0NH
31
- webhooks:
32
- - http://savage.twbsapps.com/savage/travis
@@ -1,19 +0,0 @@
1
- {
2
- "attr-bans": ["align", "background", "bgcolor", "border", "frameborder", "longdesc", "marginwidth", "marginheight", "scrolling"],
3
- "attr-name-style": false,
4
- "attr-no-unsafe-char": false,
5
- "class-style": "dash",
6
- "doctype-first": true,
7
- "doctype-html5": true,
8
- "fig-req-figcaption": false,
9
- "html-valid-content-model": false,
10
- "id-class-ignore-regex": "(onclick|content|[a-z]+([A-Z][a-z])+)",
11
- "id-class-style": "dash",
12
- "img-req-src": false,
13
- "img-req-alt": false,
14
- "indent-style": "spaces",
15
- "indent-width": 2,
16
- "spec-char-escape": false,
17
- "tag-bans": ["b", "i"],
18
- "title-max-len": false
19
- }
@@ -1,248 +0,0 @@
1
- {
2
- "extends": ["stylelint-config-standard", "stylelint-config-recommended-scss"],
3
- "plugins": [
4
- "stylelint-order"
5
- ],
6
- "rules": {
7
- "at-rule-empty-line-before": [null,
8
- "except": ["first-nested"]
9
- ],
10
- "at-rule-name-space-after": "always",
11
- "at-rule-no-vendor-prefix": true,
12
- "at-rule-semicolon-space-before": "never",
13
- "block-closing-brace-empty-line-before": null,
14
- "block-closing-brace-newline-after": null,
15
- "block-opening-brace-space-before": null,
16
- "color-named": "never",
17
- "declaration-block-semicolon-newline-after": "always-multi-line",
18
- "declaration-block-semicolon-newline-before": "never-multi-line",
19
- "declaration-block-semicolon-space-after": "always-single-line",
20
- "declaration-empty-line-before": null,
21
- "declaration-no-important": true,
22
- "font-family-name-quotes": "always-where-recommended",
23
- "font-weight-notation": "numeric",
24
- "function-comma-space-after": null,
25
- "function-url-no-scheme-relative": true,
26
- "function-url-quotes": "always",
27
- "length-zero-no-unit": true,
28
- "max-empty-lines": 2,
29
- "max-line-length": null,
30
- "media-feature-name-no-vendor-prefix": true,
31
- "media-feature-parentheses-space-inside": "never",
32
- "media-feature-range-operator-space-after": "always",
33
- "media-feature-range-operator-space-before": "never",
34
- "no-descending-specificity": null,
35
- "no-duplicate-selectors": true,
36
- "number-leading-zero": "never",
37
- "order/properties-order": [
38
- "position",
39
- "top",
40
- "right",
41
- "bottom",
42
- "left",
43
- "z-index",
44
- "box-sizing",
45
- "display",
46
- "flex",
47
- "flex-align",
48
- "flex-basis",
49
- "flex-direction",
50
- "flex-wrap",
51
- "flex-flow",
52
- "flex-grow",
53
- "flex-order",
54
- "flex-pack",
55
- "align-items",
56
- "align-self",
57
- "justify-content",
58
- "order",
59
- "float",
60
- "width",
61
- "min-width",
62
- "max-width",
63
- "height",
64
- "min-height",
65
- "max-height",
66
- "padding",
67
- "padding-top",
68
- "padding-right",
69
- "padding-bottom",
70
- "padding-left",
71
- "margin",
72
- "margin-top",
73
- "margin-right",
74
- "margin-bottom",
75
- "margin-left",
76
- "overflow",
77
- "overflow-x",
78
- "overflow-y",
79
- "-webkit-overflow-scrolling",
80
- "-ms-overflow-x",
81
- "-ms-overflow-y",
82
- "-ms-overflow-style",
83
- "clip",
84
- "clear",
85
- "font",
86
- "font-family",
87
- "font-size",
88
- "font-style",
89
- "font-weight",
90
- "font-variant",
91
- "font-size-adjust",
92
- "font-stretch",
93
- "font-effect",
94
- "font-emphasize",
95
- "font-emphasize-position",
96
- "font-emphasize-style",
97
- "font-smooth",
98
- "hyphens",
99
- "line-height",
100
- "color",
101
- "text-align",
102
- "text-align-last",
103
- "text-emphasis",
104
- "text-emphasis-color",
105
- "text-emphasis-style",
106
- "text-emphasis-position",
107
- "text-decoration",
108
- "text-indent",
109
- "text-justify",
110
- "text-outline",
111
- "-ms-text-overflow",
112
- "text-overflow",
113
- "text-overflow-ellipsis",
114
- "text-overflow-mode",
115
- "text-shadow",
116
- "text-transform",
117
- "text-wrap",
118
- "-webkit-text-size-adjust",
119
- "-ms-text-size-adjust",
120
- "letter-spacing",
121
- "-ms-word-break",
122
- "word-break",
123
- "word-spacing",
124
- "-ms-word-wrap",
125
- "word-wrap",
126
- "overflow-wrap",
127
- "tab-size",
128
- "white-space",
129
- "vertical-align",
130
- "list-style",
131
- "list-style-position",
132
- "list-style-type",
133
- "list-style-image",
134
- "pointer-events",
135
- "-ms-touch-action",
136
- "touch-action",
137
- "cursor",
138
- "visibility",
139
- "zoom",
140
- "table-layout",
141
- "empty-cells",
142
- "caption-side",
143
- "border-spacing",
144
- "border-collapse",
145
- "content",
146
- "quotes",
147
- "counter-reset",
148
- "counter-increment",
149
- "resize",
150
- "user-select",
151
- "nav-index",
152
- "nav-up",
153
- "nav-right",
154
- "nav-down",
155
- "nav-left",
156
- "background",
157
- "background-color",
158
- "background-image",
159
- "filter",
160
- "background-repeat",
161
- "background-attachment",
162
- "background-position",
163
- "background-position-x",
164
- "background-position-y",
165
- "background-clip",
166
- "background-origin",
167
- "background-size",
168
- "border",
169
- "border-color",
170
- "border-style",
171
- "border-width",
172
- "border-top",
173
- "border-top-color",
174
- "border-top-style",
175
- "border-top-width",
176
- "border-right",
177
- "border-right-color",
178
- "border-right-style",
179
- "border-right-width",
180
- "border-bottom",
181
- "border-bottom-color",
182
- "border-bottom-style",
183
- "border-bottom-width",
184
- "border-left",
185
- "border-left-color",
186
- "border-left-style",
187
- "border-left-width",
188
- "border-radius",
189
- "border-top-left-radius",
190
- "border-top-right-radius",
191
- "border-bottom-right-radius",
192
- "border-bottom-left-radius",
193
- "border-image",
194
- "border-image-source",
195
- "border-image-slice",
196
- "border-image-width",
197
- "border-image-outset",
198
- "border-image-repeat",
199
- "outline",
200
- "outline-width",
201
- "outline-style",
202
- "outline-color",
203
- "outline-offset",
204
- "box-shadow",
205
- "opacity",
206
- "-ms-interpolation-mode",
207
- "transition",
208
- "transition-delay",
209
- "transition-timing-function",
210
- "transition-duration",
211
- "transition-property",
212
- "transform",
213
- "transform-origin",
214
- "animation",
215
- "animation-name",
216
- "animation-duration",
217
- "animation-play-state",
218
- "animation-timing-function",
219
- "animation-delay",
220
- "animation-iteration-count",
221
- "animation-direction"
222
- ],
223
- "property-no-vendor-prefix": true,
224
- "rule-empty-line-before": null,
225
- "selector-attribute-quotes": "always",
226
- "selector-list-comma-newline-after": "always",
227
- "selector-list-comma-newline-before": "never-multi-line",
228
- "selector-list-comma-space-after": "always-single-line",
229
- "selector-list-comma-space-before": "never-single-line",
230
- "selector-max-attribute": 2,
231
- "selector-max-class": 4,
232
- "selector-max-combinators": 4,
233
- "selector-max-compound-selectors": 4,
234
- "selector-max-empty-lines": 1,
235
- "selector-max-id": 0,
236
- "selector-max-specificity": null,
237
- "selector-max-type": 2,
238
- "selector-max-universal": 1,
239
- "selector-no-qualifying-type": true,
240
- "selector-no-vendor-prefix": true,
241
- "string-quotes": "double",
242
- "value-keyword-case": "lower",
243
- "value-list-comma-newline-after": "never-multi-line",
244
- "value-list-comma-newline-before": "never-multi-line",
245
- "value-list-comma-space-after": "always",
246
- "value-no-vendor-prefix": true
247
- }
248
- }
@@ -1,12 +0,0 @@
1
- {
2
- "extends": "../../../build/.stylelintrc",
3
- "rules": {
4
- "at-rule-no-vendor-prefix": null,
5
- "comment-empty-line-before": null,
6
- "media-feature-name-no-vendor-prefix": null,
7
- "property-no-vendor-prefix": null,
8
- "selector-no-qualifying-type": null,
9
- "selector-no-vendor-prefix": null,
10
- "value-no-vendor-prefix": null
11
- }
12
- }
@@ -1,240 +0,0 @@
1
- {
2
- "root": true,
3
- "parser": "babel-eslint",
4
- "env": {
5
- "browser": true,
6
- "es6": true
7
- },
8
- "extends": "eslint:recommended",
9
- "plugins": ["compat"],
10
- "parserOptions": {
11
- "ecmaVersion": 8,
12
- "sourceType": "module"
13
- },
14
- "rules": {
15
- // Possible Errors
16
- "no-await-in-loop": "error",
17
- "no-extra-parens": "error",
18
- "no-prototype-builtins": "error",
19
- "no-template-curly-in-string": "error",
20
- "compat/compat": "error",
21
- "valid-jsdoc": "error",
22
-
23
- // Best Practices
24
- "accessor-pairs": "error",
25
- "array-callback-return": "error",
26
- "block-scoped-var": "error",
27
- "class-methods-use-this": "off",
28
- "complexity": "error",
29
- "consistent-return": "error",
30
- "curly": "error",
31
- "default-case": "error",
32
- "dot-location": ["error", "property"],
33
- "dot-notation": "error",
34
- "eqeqeq": "error",
35
- "guard-for-in": "error",
36
- "no-alert": "error",
37
- "no-caller": "error",
38
- "no-div-regex": "error",
39
- "no-else-return": "error",
40
- "no-empty-function": "error",
41
- "no-eq-null": "error",
42
- "no-eval": "error",
43
- "no-extend-native": "error",
44
- "no-extra-bind": "error",
45
- "no-extra-label": "error",
46
- "no-floating-decimal": "error",
47
- "no-implicit-coercion": "error",
48
- "no-implicit-globals": "error",
49
- "no-implied-eval": "error",
50
- "no-invalid-this": "off",
51
- "no-iterator": "error",
52
- "no-labels": "error",
53
- "no-lone-blocks": "error",
54
- "no-loop-func": "error",
55
- "no-magic-numbers": ["error", {
56
- "ignore": [-1, 0, 1],
57
- "ignoreArrayIndexes": true
58
- }
59
- ],
60
- "no-multi-spaces": ["error", {
61
- "ignoreEOLComments": true,
62
- "exceptions": {
63
- "AssignmentExpression": true,
64
- "ArrowFunctionExpression": true,
65
- "CallExpression": true,
66
- "VariableDeclarator": true
67
- }
68
- }
69
- ],
70
- "no-multi-str": "error",
71
- "no-new": "error",
72
- "no-new-func": "error",
73
- "no-new-wrappers": "error",
74
- "no-octal-escape": "error",
75
- "no-param-reassign": "off",
76
- "no-proto": "error",
77
- "no-restricted-properties": "error",
78
- "no-return-assign": "error",
79
- "no-return-await": "error",
80
- "no-script-url": "error",
81
- "no-self-compare": "error",
82
- "no-sequences": "error",
83
- "no-throw-literal": "error",
84
- "no-unmodified-loop-condition": "error",
85
- "no-unused-expressions": "error",
86
- "no-useless-call": "error",
87
- "no-useless-concat": "error",
88
- "no-useless-return": "off",
89
- "no-void": "error",
90
- "no-warning-comments": "off",
91
- "no-with": "error",
92
- "prefer-promise-reject-errors": "error",
93
- "radix": "error",
94
- "require-await": "error",
95
- "vars-on-top": "error",
96
- "wrap-iife": "error",
97
- "yoda": "error",
98
-
99
- // Strict Mode
100
- "strict": "error",
101
-
102
- // Variables
103
- "init-declarations": "off",
104
- "no-catch-shadow": "error",
105
- "no-label-var": "error",
106
- "no-restricted-globals": "error",
107
- "no-shadow": "off",
108
- "no-shadow-restricted-names": "error",
109
- "no-undef-init": "error",
110
- "no-undefined": "error",
111
- "no-use-before-define": "off",
112
-
113
- // Node.js and CommonJS
114
- "callback-return": "off",
115
- "global-require": "error",
116
- "handle-callback-err": "error",
117
- "no-mixed-requires": "error",
118
- "no-new-require": "error",
119
- "no-path-concat": "error",
120
- "no-process-env": "error",
121
- "no-process-exit": "error",
122
- "no-restricted-modules": "error",
123
- "no-sync": "error",
124
-
125
- // Stylistic Issues
126
- "array-bracket-spacing": "error",
127
- "block-spacing": "error",
128
- "brace-style": "error",
129
- "camelcase": "error",
130
- "capitalized-comments": "off",
131
- "comma-dangle": "error",
132
- "comma-spacing": "error",
133
- "comma-style": "error",
134
- "computed-property-spacing": "error",
135
- "consistent-this": "error",
136
- "eol-last": "error",
137
- "func-call-spacing": "error",
138
- "func-name-matching": "error",
139
- "func-names": "off",
140
- "func-style": ["error", "declaration"],
141
- "id-blacklist": "error",
142
- "id-length": "off",
143
- "id-match": "error",
144
- "indent": "off",
145
- "indent-legacy": ["error", 2, { "SwitchCase": 1 }],
146
- "jsx-quotes": "error",
147
- "key-spacing": "off",
148
- "keyword-spacing": "error",
149
- "line-comment-position": "off",
150
- "linebreak-style": ["error", "unix"],
151
- "lines-around-comment": "off",
152
- "lines-around-directive": "error",
153
- "max-depth": ["error", 10],
154
- "max-len": "off",
155
- "max-lines": "off",
156
- "max-nested-callbacks": "error",
157
- "max-params": "off",
158
- "max-statements": "off",
159
- "max-statements-per-line": "error",
160
- "multiline-ternary": "off",
161
- "new-cap": ["error", { "capIsNewExceptionPattern": "$.*" }],
162
- "new-parens": "error",
163
- "newline-after-var": "off",
164
- "newline-before-return": "off",
165
- "newline-per-chained-call": ["error", { "ignoreChainWithDepth": 5 }],
166
- "no-array-constructor": "error",
167
- "no-bitwise": "error",
168
- "no-continue": "off",
169
- "no-inline-comments": "off",
170
- "no-lonely-if": "error",
171
- "no-mixed-operators": "off",
172
- "no-multi-assign": "error",
173
- "no-multiple-empty-lines": "error",
174
- "no-negated-condition": "off",
175
- "no-nested-ternary": "error",
176
- "no-new-object": "error",
177
- "no-plusplus": "off",
178
- "no-restricted-syntax": "error",
179
- "no-tabs": "error",
180
- "no-ternary": "off",
181
- "no-trailing-spaces": "error",
182
- "no-underscore-dangle": "off",
183
- "no-unneeded-ternary": "error",
184
- "no-whitespace-before-property": "error",
185
- "nonblock-statement-body-position": "error",
186
- "object-curly-newline": ["error", { "minProperties": 1 }],
187
- "object-curly-spacing": ["error", "always"],
188
- "object-property-newline": "error",
189
- "one-var": ["error", "never"],
190
- "one-var-declaration-per-line": "error",
191
- "operator-assignment": "error",
192
- "operator-linebreak": "off",
193
- "padded-blocks": "off",
194
- "quote-props": ["error", "as-needed"],
195
- "quotes": ["error", "single"],
196
- "require-jsdoc": "off",
197
- "semi": ["error", "never"],
198
- "semi-spacing": "error",
199
- "sort-keys": "off",
200
- "sort-vars": "error",
201
- "space-before-blocks": "error",
202
- "space-before-function-paren": ["error", {
203
- "anonymous": "always",
204
- "named": "never"
205
- }],
206
- "space-in-parens": "error",
207
- "space-infix-ops": "error",
208
- "space-unary-ops": "error",
209
- "spaced-comment": "error",
210
- "template-tag-spacing": "error",
211
- "unicode-bom": "error",
212
- "wrap-regex": "off",
213
-
214
- // ECMAScript 6
215
- "arrow-body-style": ["error", "as-needed"],
216
- "arrow-parens": "error",
217
- "arrow-spacing": "error",
218
- "generator-star-spacing": "error",
219
- "no-confusing-arrow": "error",
220
- "no-duplicate-imports": "error",
221
- "no-restricted-imports": "error",
222
- "no-useless-computed-key": "error",
223
- "no-useless-constructor": "error",
224
- "no-useless-rename": "error",
225
- "no-var": "error",
226
- "object-shorthand": "error",
227
- "prefer-arrow-callback": "error",
228
- "prefer-const": "error",
229
- "prefer-destructuring": "off",
230
- "prefer-numeric-literals": "error",
231
- "prefer-rest-params": "error",
232
- "prefer-spread": "error",
233
- "prefer-template": "error",
234
- "rest-spread-spacing": "error",
235
- "sort-imports": "error",
236
- "symbol-description": "error",
237
- "template-curly-spacing": "error",
238
- "yield-star-spacing": "error"
239
- }
240
- }