Skip to content

Commit 18953ff

Browse files
committed
fix(eslint): correct keyword after spacing rule for eslint)
1 parent 5eee030 commit 18953ff

File tree

7 files changed

+28
-12
lines changed

7 files changed

+28
-12
lines changed

.eslintrc.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ module.exports = {
4747
"case": { "after": true },
4848
"return": { "after": true },
4949
"finally": { "after": true },
50-
"do": { "after": true }
50+
"do": { "after": true },
51+
"of": { "after": true }
5152
}
5253
}],
5354
"no-console": "off",

lib/AmdMainTemplatePlugin.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,12 @@ class AmdMainTemplatePlugin {
1414
}
1515

1616
apply(compilation) {
17-
const { mainTemplate, chunkTemplate } = compilation;
17+
const {
18+
mainTemplate,
19+
chunkTemplate
20+
} = compilation;
1821

19-
for(const template of[mainTemplate, chunkTemplate]) {
22+
for(const template of [mainTemplate, chunkTemplate]) {
2023
template.hooks.renderWithEntry("AmdMainTemplatePlugin", onRenderWithEntry);
2124
}
2225

lib/ExportPropertyMainTemplatePlugin.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,12 @@ class ExportPropertyMainTemplatePlugin {
1616
}
1717

1818
apply(compilation) {
19-
const { mainTemplate, chunkTemplate } = compilation;
19+
const {
20+
mainTemplate,
21+
chunkTemplate
22+
} = compilation;
2023

21-
for(const template of[mainTemplate, chunkTemplate]) {
24+
for(const template of [mainTemplate, chunkTemplate]) {
2225
template.hooks.renderWithEntry("AmdMainTemplatePlugin", onRenderWithEntry);
2326
}
2427

lib/RuleSet.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ module.exports = class RuleSet {
427427

428428
if(rule.oneOf) {
429429
for(let i = 0; i < rule.oneOf.length; i++) {
430-
if(this._run(data, rule.oneOf[i], result))
430+
if(this._run(data, rule.oneof[i], result))
431431
break;
432432
}
433433
}

lib/SetVarMainTemplatePlugin.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,12 @@ class SetVarMainTemplatePlugin {
1313
}
1414

1515
apply(compilation) {
16-
const { mainTemplate, chunkTemplate } = compilation;
16+
const {
17+
mainTemplate,
18+
chunkTemplate
19+
} = compilation;
1720

18-
for(const template of[mainTemplate, chunkTemplate]) {
21+
for(const template of [mainTemplate, chunkTemplate]) {
1922
template.hooks.renderWithEntry("AmdMainTemplatePlugin", onRenderWithEntry);
2023
}
2124

lib/UmdMainTemplatePlugin.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,12 @@ class UmdMainTemplatePlugin {
4040
}
4141

4242
apply(compilation) {
43-
const { mainTemplate, chunkTemplate } = compilation;
43+
const {
44+
mainTemplate,
45+
chunkTemplate
46+
} = compilation;
4447

45-
for(const template of[mainTemplate, chunkTemplate]) {
48+
for(const template of [mainTemplate, chunkTemplate]) {
4649
template.hooks.renderWithEntry("AmdMainTemplatePlugin", onRenderWithEntry);
4750
}
4851

lib/web/JsonpExportMainTemplatePlugin.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,12 @@ class JsonpExportMainTemplatePlugin {
1212
}
1313

1414
apply(compilation) {
15-
const { mainTemplate, chunkTemplate } = compilation;
15+
const {
16+
mainTemplate,
17+
chunkTemplate
18+
} = compilation;
1619

17-
for(const template of[mainTemplate, chunkTemplate]) {
20+
for(const template of [mainTemplate, chunkTemplate]) {
1821
template.hooks.renderWithEntry("AmdMainTemplatePlugin", onRenderWithEntry);
1922
}
2023

0 commit comments

Comments
 (0)