diff --git a/.eslintrc.js b/.eslintrc.js index 9302c0318f..50c718fcb0 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -81,7 +81,7 @@ module.exports = { '@typescript-eslint/no-unsafe-enum-comparison': 'warn', '@typescript-eslint/no-unsafe-member-access': 'off', '@typescript-eslint/no-unsafe-return': 'off', - '@typescript-eslint/no-unused-vars': ['warn', {argsIgnorePattern: '^_'}], + '@typescript-eslint/no-unused-vars': ['error', {argsIgnorePattern: '^_'}], '@typescript-eslint/prefer-return-this-type': 'warn', '@typescript-eslint/require-await': 'warn', '@typescript-eslint/restrict-template-expressions': 'off', diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f75d17a689..a26c995ccb 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -20,7 +20,7 @@ # # Apply all pre-commit hooks to all files: # $ pre-commit run --all-files -default_stages: [pre-commit] +default_stages: [pre-push] repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.4.0 diff --git a/README.md b/README.md index 865ae8c665..1de74613e9 100644 --- a/README.md +++ b/README.md @@ -153,6 +153,10 @@ We use [cddlconv](https://github.com/google/cddlconv) to generate our WebDriverB Refer to the documentation at [.pre-commit-config.yaml](.pre-commit-config.yaml). +```sh +pre-commit install --hook-type pre-push +``` + ### Starting the Server This will run the server on port `8080`: diff --git a/tsconfig.base.json b/tsconfig.base.json index 29c6c210cf..feb9486f86 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -14,8 +14,8 @@ "noImplicitThis": true, "noPropertyAccessFromIndexSignature": true, "noUncheckedIndexedAccess": true, - "noUnusedLocals": true, - "noUnusedParameters": true, + "noUnusedLocals": false, + "noUnusedParameters": false, "resolveJsonModule": true, "sourceMap": true, "strict": true,