Skip to content

Commit

Permalink
fix: temporarily fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Badisi committed Sep 3, 2024
1 parent 54c46a1 commit 54c1e14
Show file tree
Hide file tree
Showing 5 changed files with 189 additions and 3 deletions.
33 changes: 33 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,38 @@
"root": true,
"extends": [
"@hug/eslint-config/recommended"
],
"overrides": [
{
"files": [
"**/*.ts"
],
"excludedFiles": [
"e2e/**/*.ts"
],
"parser": "@typescript-eslint/parser",
"plugins": [
"deprecation"
],
"rules": {
"deprecation/deprecation": "warn",
"rxjs-angular/prefer-takeuntil": [
"error",
{
"alias": [
"takeUntilDestroyed"
],
"checkDecorators": [
"Component",
"Directive",
"Pipe",
"Service"
],
"checkComplete": false, // Until https://github.com/cartant/eslint-plugin-rxjs-angular/issues/16 is implemented
"checkDestroy": false
}
]
}
}
]
}
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
printf "> Validating commit message... "
npx --no -- commitlint --edit "$1"
printf "OK\n"

printf "> Linting staged files... "
npx --no -- lint-staged --quiet
printf "OK\n"
148 changes: 148 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
"@types/jasmine": "~5.1.4",
"@types/lodash-es": "^4.17.12",
"detect-indent": "^7.0.1",
"eslint-plugin-deprecation": "^3.0.0",
"husky": "~9.1.5",
"jasmine-core": "~5.2.0",
"karma": "~6.4.4",
Expand Down
6 changes: 3 additions & 3 deletions tsconfig.base.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
"noPropertyAccessFromIndexSignature": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"skipLibCheck": true,
"isolatedModules": true,
"esModuleInterop": true,
"skipLibCheck": true,
"isolatedModules": true,
"esModuleInterop": true,
"sourceMap": true,
"declaration": false,
"experimentalDecorators": true,
Expand Down

0 comments on commit 54c1e14

Please sign in to comment.