Skip to content

Commit c1ee12a

Browse files
cy6erskunkJosh Goldberg
authored and
Josh Goldberg
committed
Fix Circle CI test step (#155)
* Fix circle ci test step * Remove unnecessary arrow functions * Sync test with implementation * Fix converter
1 parent 605b57b commit c1ee12a

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ jobs:
9191
- attach_workspace:
9292
at: "."
9393

94-
- run: npm run test --coverage
94+
- run: npm run test:unit
9595

9696
tsc:
9797
docker:

src/errors/conversionError.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ describe(ConversionError, () => {
3333

3434
// Assert
3535
expect(summary).toEqual(
36-
`Error: multiple output eslint-rule ESLint rule options were generated, but tslint-to-eslint-config doesn't have "merger" logic to deal with this.${EOL}Please file an issue at https://github.com/typescript-eslint/tslint-to-eslint-config/issues/new?template=bug_report.md!`,
36+
`Error: multiple output eslint-rule ESLint rule options were generated, but tslint-to-eslint-config doesn't have "merger" logic to deal with this.${EOL}Please file an issue at https://github.com/typescript-eslint/tslint-to-eslint-config/issues/new?template=missing_merger.md 🙏`,
3737
);
3838
});
3939
});

src/errors/conversionError.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,22 @@ import { ErrorSummary } from "./errorSummary";
66
export class ConversionError implements ErrorSummary {
77
private constructor(private readonly summary: string) {}
88

9-
public static forMerger = (eslintRule: string) => {
9+
public static forMerger(eslintRule: string) {
1010
return new ConversionError(
1111
[
1212
`Error: multiple output ${eslintRule} ESLint rule options were generated, but tslint-to-eslint-config doesn't have "merger" logic to deal with this.`,
1313
`Please file an issue at https://github.com/typescript-eslint/tslint-to-eslint-config/issues/new?template=missing_merger.md 🙏`,
1414
].join(EOL),
1515
);
16-
};
16+
}
1717

1818
public getSummary(): string {
1919
return this.summary;
2020
}
2121

22-
public static forRuleError = (error: Error, tslintRule: TSLintRuleOptions) => {
22+
public static forRuleError(error: Error, tslintRule: TSLintRuleOptions) {
2323
return new ConversionError(
2424
`${tslintRule.ruleName} threw an error during conversion: ${error.stack}${EOL}`,
2525
);
26-
};
26+
}
2727
}

src/rules/converters/member-ordering.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export const convertMemberOrdering: RuleConverter = () => {
44
return {
55
rules: [
66
{
7-
ruleName: "member-ordering",
7+
ruleName: "@typescript-eslint/member-ordering",
88
},
99
],
1010
};

0 commit comments

Comments
 (0)