Skip to content

Commit ec55aec

Browse files
committed
[lint] Remove semicolons
1 parent cea1e43 commit ec55aec

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

src/base.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,14 +86,14 @@ export class Checkable {
8686
}
8787

8888
getChecks(): Check[] {
89-
return [...this[CHECKS]];
89+
return [...this[CHECKS]]
9090
}
9191
}
9292

9393
export function args(...types: Checkable[]) {
9494
return function(_proto:Function, name:string, descriptor: PropertyDescriptor) {
9595
if (typeof descriptor.value !== 'function') {
96-
throw new TypeError(`Decorated property "${name}" is not a function`);
96+
throw new TypeError(`Decorated property "${name}" is not a function`)
9797
}
9898

9999
const origin = descriptor.value
@@ -113,7 +113,7 @@ export function args(...types: Checkable[]) {
113113
export function result(type: Checkable) {
114114
return function(_proto:Function, name:string, descriptor: PropertyDescriptor) {
115115
if (typeof descriptor.value !== 'function') {
116-
throw new TypeError(`Decorated property "${name}" is not a function`);
116+
throw new TypeError(`Decorated property "${name}" is not a function`)
117117
}
118118

119119
const origin = descriptor.value

src/index.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ class IsOptional extends UniqRule {
135135
static ruleName = 'isRequired'
136136

137137
static create(checks: Check[]): Check[] {
138-
return filterByRuleName(checks, this.ruleName);
138+
return filterByRuleName(checks, this.ruleName)
139139
}
140140
}
141141

@@ -532,15 +532,15 @@ class Select extends UniqRule {
532532
class Custom extends UniqRule {
533533
static config(check: Function, ...args: any[]): object {
534534
if (typeof check !== 'function') {
535-
throw new TypeError('Argument #1 is not a function');
535+
throw new TypeError('Argument #1 is not a function')
536536
}
537537

538-
return {check, args};
538+
return {check, args}
539539
}
540540

541541
static check(it: any, {check, args}): Issue[] {
542542
if (check(it, ...args) === true) {
543-
return [];
543+
return []
544544
}
545545

546546
return [{
@@ -549,7 +549,7 @@ class Custom extends UniqRule {
549549
details: {
550550
reason: 'mismatch',
551551
},
552-
}];
552+
}]
553553
}
554554
}
555555

@@ -774,12 +774,12 @@ class TypedProps extends Checkable {
774774

775775
@toStatic(Custom)
776776
static custom(_check: Function, ..._args: any[]): TypedProps {
777-
return new this();
777+
return new this()
778778
}
779779

780780
@toInstance(Custom)
781781
custom() {
782-
return this;
782+
return this
783783
}
784784
}
785785

@@ -961,12 +961,12 @@ class StrictTypedProps extends TypedProps {
961961

962962
@toStatic(Custom, strictOptions)
963963
static custom(_check: Function, ..._args: any[]): TypedProps {
964-
return new this();
964+
return new this()
965965
}
966966

967967
@toInstance(Custom)
968968
custom() {
969-
return this;
969+
return this
970970
}
971971
}
972972

0 commit comments

Comments
 (0)