-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Align tooling with team standards (#278)
* Align pre-commit with team norms defined in devx-ts-starter repo * Remove babel Using tsc for compilation * Cleanup unnecessary @typescript-eslint/* deps Included in typescript-eslint package * Update to eslint@9 * Align jest config with team norms in devx-ts-starter * Actually run pre-commit hook * Update deprecated ts-eslint rule to newer name * Configure coverage src for jest properly Coverage stats are currently useless, however. * Don't init husky in ci * Downgrade python for compat with gsutil * Revert overzealous prettifying * apply pretty-quick to the same set of files we do for fmt * Revert overzelous prettifying
- Loading branch information
Showing
9 changed files
with
731 additions
and
1,917 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,2 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
npx pretty-quick --staged --pattern "**/*.{js,ts,mjs,cjs}" | ||
npm run lint |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
/** @type {import('jest').Config} */ | ||
const config = { | ||
testMatch: ['**/tests/unit/**/*.[jt]s?(x)'], | ||
collectCoverageFrom: ['src/**/*.js'], | ||
collectCoverageFrom: ['src/**/*.ts'], | ||
collectCoverage: true, | ||
transformIgnorePatterns: [ | ||
'/node_modules/(?!(axios)/)', // Uses module import statements, which aren't supported by jest, so it has to be transformed by babel. | ||
], | ||
clearMocks: true, | ||
coverageProvider: 'v8', | ||
transform: { '^.+\\.ts?$': 'ts-jest' }, | ||
}; | ||
|
||
module.exports = config; |
Oops, something went wrong.