Skip to content

Commit 57b11d7

Browse files
committed
style: add trailing newline
1 parent 8e3fafb commit 57b11d7

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

src/pipeNamingRule.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,4 +126,4 @@ export class ClassMetadataWalker extends NgWalker {
126126
}
127127
return [Rule.FAILURE_WITHOUT_PREFIX, className, pipeName];
128128
}
129-
}
129+
}

test/pipeNamingRule.spec.ts

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ describe('pipe-naming', () => {
1111
class Test {}`;
1212
assertAnnotated({
1313
ruleName: 'pipe-naming',
14-
message: 'The name of the Pipe decorator of class Test should be named ' +
14+
message:
15+
'The name of the Pipe decorator of class Test should be named ' +
1516
'camelCase with prefix ng, however its value is "foo-bar".',
1617
source,
1718
options: ['camelCase', 'ng']
@@ -27,7 +28,8 @@ describe('pipe-naming', () => {
2728
class Test {}`;
2829
assertAnnotated({
2930
ruleName: 'pipe-naming',
30-
message: 'The name of the Pipe decorator of class Test should be named camelCase' +
31+
message:
32+
'The name of the Pipe decorator of class Test should be named camelCase' +
3133
' with prefix ng,mg,sg, however its value is "foo-bar".',
3234
source,
3335
options: ['camelCase', 'ng', 'mg', 'sg']
@@ -43,7 +45,8 @@ describe('pipe-naming', () => {
4345
class Test {}`;
4446
assertAnnotated({
4547
ruleName: 'pipe-naming',
46-
message: 'The name of the Pipe decorator of class Test should be named camelCase ' +
48+
message:
49+
'The name of the Pipe decorator of class Test should be named camelCase ' +
4750
'with prefix fo,mg,sg, however its value is "fooBar".',
4851
source,
4952
options: ['camelCase', 'fo', 'mg', 'sg']
@@ -59,7 +62,8 @@ describe('pipe-naming', () => {
5962
class Test {}`;
6063
assertAnnotated({
6164
ruleName: 'pipe-naming',
62-
message: 'The name of the Pipe decorator of class Test should be named camelCase,' +
65+
message:
66+
'The name of the Pipe decorator of class Test should be named camelCase,' +
6367
' however its value is "foo-bar".',
6468
source,
6569
options: 'camelCase'
@@ -136,4 +140,4 @@ describe('pipe-naming', () => {
136140
assertSuccess('pipe-naming', source, ['camelCase']);
137141
});
138142
});
139-
});
143+
});

0 commit comments

Comments
 (0)