Skip to content

Commit 25ef853

Browse files
author
Josh Goldberg
authored
1 parent 2486043 commit 25ef853

File tree

3 files changed

+32
-0
lines changed

3 files changed

+32
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import { RuleConverter } from "../../converter";
2+
3+
export const convertNoOutputOnPrefix: RuleConverter = () => {
4+
return {
5+
rules: [
6+
{
7+
ruleName: "@angular-eslint/no-output-on-prefix",
8+
},
9+
],
10+
plugins: ["@angular-eslint/eslint-plugin"],
11+
};
12+
};
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import { convertNoOutputOnPrefix } from "../no-output-on-prefix";
2+
3+
describe(convertNoOutputOnPrefix, () => {
4+
test("conversion without arguments", () => {
5+
const result = convertNoOutputOnPrefix({
6+
ruleArguments: [],
7+
});
8+
9+
expect(result).toEqual({
10+
rules: [
11+
{
12+
ruleName: "@angular-eslint/no-output-on-prefix",
13+
},
14+
],
15+
plugins: ["@angular-eslint/eslint-plugin"],
16+
});
17+
});
18+
});

src/rules/rulesConverters.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ import { convertNoInputRename } from "./converters/codelyzer/no-input-rename";
153153
import { convertNoInputsMetadataProperty } from "./converters/codelyzer/no-inputs-metadata-property";
154154
import { convertNoOutputNative } from "./converters/codelyzer/no-output-native";
155155
import { convertNoLifecycleCall } from "./converters/codelyzer/no-lifecycle-call";
156+
import { convertNoOutputOnPrefix } from "./converters/codelyzer/no-output-on-prefix";
156157
import { convertUseInjectableProvidedIn } from "./converters/codelyzer/use-injectable-provided-in";
157158
import { convertUseLifecycleInterface } from "./converters/codelyzer/use-lifecycle-interface";
158159
import { convertUsePipeDecorator } from "./converters/codelyzer/use-pipe-decorator";
@@ -254,6 +255,7 @@ export const rulesConverters = new Map([
254255
["no-object-literal-type-assertion", convertNoObjectLiteralTypeAssertion],
255256
["no-output-native", convertNoOutputNative],
256257
["no-octal-literal", convertNoOctalLiteral],
258+
["no-output-on-prefix", convertNoOutputOnPrefix],
257259
["no-parameter-properties", convertNoParameterProperties],
258260
["no-parameter-reassignment", convertNoParameterReassignment],
259261
["no-redundant-jsdoc", convertNoRedundantJsdoc],

0 commit comments

Comments
 (0)