Skip to content

Commit

Permalink
chore: make eslint a bit more strict with spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
ghiscoding committed Dec 23, 2023
1 parent 7867d49 commit 3add20a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@
"object-shorthand": "error",
"no-cond-assign": "off",
"no-prototype-builtins": [0],
"semi": "off"
"semi": "off",
"keyword-spacing": "error",
"space-before-blocks": "error"
}
}
4 changes: 2 additions & 2 deletions src/slick.dataview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1073,7 +1073,7 @@ export class SlickDataView<TData extends SlickDataItem = any> implements CustomD
}

protected compileFilter(stopRunningIfCSPSafeIsActive: boolean = false): FilterFn<TData> {
if(stopRunningIfCSPSafeIsActive) {
if (stopRunningIfCSPSafeIsActive) {
return null as any;
}
const filterInfo = this.getFunctionInfo(this.filter as FilterFn<TData>);
Expand Down Expand Up @@ -1114,7 +1114,7 @@ export class SlickDataView<TData extends SlickDataItem = any> implements CustomD
}

protected compileFilterWithCaching(stopRunningIfCSPSafeIsActive: boolean = false) {
if(stopRunningIfCSPSafeIsActive) {
if (stopRunningIfCSPSafeIsActive) {
return null as any;
}

Expand Down

0 comments on commit 3add20a

Please sign in to comment.