Skip to content

Commit b8c70a6

Browse files
committed
Clean up the prettier calls
1 parent 4563a65 commit b8c70a6

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

.eslintignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ coverage
33
lib
44
node_modules
55
pnpm-lock.yaml
6-
src/tests/vendor
6+
src/tests/vendor
7+
src/formatDTS.ts

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"format": "prettier \"**/*\" --ignore-unknown",
2222
"format:write": "pnpm format --write",
2323
"jest": "vitest",
24-
"lint": "eslint . --max-warnings 0 --report-unused-disable-directives",
24+
"lint": "eslint . --report-unused-disable-directives",
2525
"lint:knip": "knip",
2626
"lint:md": "markdownlint \"**/*.md\" \".github/**/*.md\" --rules sentences-per-line",
2727
"lint:package": "npmPkgJsonLint .",
@@ -35,7 +35,7 @@
3535
},
3636
"lint-staged": {
3737
"*": "prettier --ignore-unknown --write",
38-
"*.ts": "eslint --fix --max-warnings 0"
38+
"*.ts": "eslint --fix"
3939
},
4040
"dependencies": {
4141
"@mrleebo/prisma-ast": "^0.12.0",

src/formatDTS.ts

-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* eslint-disable */
21
// https://prettier.io/docs/en/api.html
32

43
let prettier: any | null = null
@@ -25,5 +24,3 @@ export const formatDTS = (path: string, content: string, config: unknown): strin
2524
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-call
2625
return prettier.default.format(content, { ...(config as object), filepath: path }) as string
2726
}
28-
29-
/* eslint-enable */

0 commit comments

Comments
 (0)