Skip to content

Commit ecfb0b9

Browse files
committed
chore: Get rid of lint errors
1 parent f08c561 commit ecfb0b9

File tree

6 files changed

+9
-11
lines changed

6 files changed

+9
-11
lines changed

src/environments.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@ export default class Environments extends MatreshkaArray {
3535
}
3636

3737
update(env) {
38-
if(!env) return this;
38+
if (!env) return this;
3939

4040
for (const item of this) {
4141
const { environment } = item;
42-
if(environment in env) {
43-
item.checked = env[environment]
42+
if (environment in env) {
43+
item.checked = env[environment];
4444
}
4545
}
4646

src/index.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,6 @@ module.exports = new class Application extends MatreshkaObject {
105105
calc(this.parserOptions, 'sourceType', {
106106
object: this,
107107
key: 'modulesFeature'
108-
}, modulesFeature => modulesFeature ? 'module' : 'script');
109-
110-
108+
}, modulesFeature => (modulesFeature ? 'module' : 'script'));
111109
}
112110
}();

src/results/item.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export default class extends MatreshkaObject {
1515
href: {
1616
source: 'ruleId',
1717
handler: (ruleId) => {
18-
if(!ruleId) {
18+
if (!ruleId) {
1919
return '';
2020
}
2121

@@ -39,6 +39,6 @@ export default class extends MatreshkaObject {
3939
}
4040

4141
onRender() {
42-
this.bindNode('href', ':sandbox .rule-clarification-container', display())
42+
this.bindNode('href', ':sandbox .rule-clarification-container', display());
4343
}
4444
}

src/rules/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export default class Rules extends MatreshkaArray {
2323
}
2424

2525
update(rules) {
26-
if(!rules) return this;
26+
if (!rules) return this;
2727

2828
for (const group of this) {
2929
for (const rule of group) {

test/spec/lint_spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ describe('Lint', () => {
1818
}
1919
});
2020

21-
xit('all rules include valid clarification URL', () => {})
21+
xit('all rules include valid clarification URL', () => {});
2222
});

tools/webpackify-eslint.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ function generateRulesIndex(basedir) {
2222

2323
output += '\n return rules;\n};';
2424

25-
fs.writeFileSync(`${basedir}load-rules.js`, output)
25+
fs.writeFileSync(`${basedir}load-rules.js`, output);
2626
}
2727

2828
function webpackify() {

0 commit comments

Comments
 (0)