Skip to content

Commit

Permalink
dev: stricter eslint rules
Browse files Browse the repository at this point in the history
  • Loading branch information
senyai committed Sep 8, 2023
1 parent 092f1d6 commit 038c86b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
7 changes: 0 additions & 7 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,6 @@
],
"rules": {
"prettier/prettier": "error",
"@typescript-eslint/explicit-module-boundary-types": [
"error",
{
"allowArgumentsExplicitlyTypedAsAny": true
}
],
"@typescript-eslint/no-unused-vars": [
"error",
{
Expand All @@ -32,7 +26,6 @@
"no-inner-declarations": 2,
"no-prototype-builtins": 0,
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/no-namespace": 0,
"@typescript-eslint/no-non-null-assertion": 0,
"@typescript-eslint/ban-types": 0
},
Expand Down
4 changes: 3 additions & 1 deletion src/resourceGroups.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,5 +178,7 @@ export function groupStatuses({
untracked.updateResources(untrackedResources);
}

export const isResourceGroup = (obj: any): obj is SourceControlResourceGroup =>
export const isResourceGroup = (
obj: FossilResource | SourceControlResourceGroup
): obj is SourceControlResourceGroup =>
(<SourceControlResourceGroup>obj).resourceStates !== undefined;

0 comments on commit 038c86b

Please sign in to comment.