Skip to content

Commit f9fc1fc

Browse files
feat: activate eslint during lint staged
1 parent bc90d53 commit f9fc1fc

4 files changed

Lines changed: 17 additions & 20 deletions

File tree

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ coverage
77
.idea
88
dist
99
compiled
10-
.awcache
10+
.awcache
11+
/.eslintcache

jest.config.cjs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/** @type {import('ts-jest').JestConfigWithTsJest} */
2+
module.exports = {
3+
preset: "ts-jest",
4+
testEnvironment: "node",
5+
transform: {
6+
"^.+\\.tsx?$": [
7+
"ts-jest",
8+
{
9+
tsconfig: "./tsconfig.jest.json",
10+
},
11+
],
12+
},
13+
setupFiles: ["reflect-metadata", "./test/jest-setup.ts"],
14+
};

jest.config.js

Lines changed: 0 additions & 18 deletions
This file was deleted.

lint-staged.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*/
55
const config = {
66
"package.json": ["npx sort-package-json"],
7-
"*": [/* "eslint --fix --cache", */ "npx prettier --write --ignore-unknown"],
7+
"*": ["eslint --fix --cache", "npx prettier --write --ignore-unknown"],
88
};
99

1010
export default config;

0 commit comments

Comments
 (0)