Skip to content

Commit

Permalink
[api] implement verbatimModuleSyntax option in tsconfig, move ts-node…
Browse files Browse the repository at this point in the history
… to devDependencies

[api] add consistent-type-imports eslint rule as linting proxy for verbatimModuleSyntax rule
  • Loading branch information
freemvmt committed Sep 12, 2024
1 parent de64cf4 commit 4d1eca8
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 100 deletions.
1 change: 1 addition & 0 deletions api.planx.uk/.eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
}
],
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/consistent-type-imports": "error",
"no-nested-ternary": "error",
"@vitest/expect-expect": [
"error",
Expand Down
1 change: 0 additions & 1 deletion api.planx.uk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@
"string-to-stream": "^3.0.1",
"swagger-jsdoc": "^6.2.8",
"swagger-ui-express": "^5.0.0",
"ts-node": "^10.9.2",
"type-fest": "^4.18.1",
"zod": "^3.23.5"
},
Expand Down
98 changes: 1 addition & 97 deletions api.planx.uk/pnpm-lock.yaml

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

3 changes: 1 addition & 2 deletions api.planx.uk/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
"target": "esnext",
"types": ["vitest/globals"],
// ensure the code is ready for per-file transpilation by tsx (used in dev mode)
"isolatedModules": true,
// TODO: implement "verbatimModuleSyntax" option (laborious)
"verbatimModuleSyntax": true,
},
"exclude": ["node_modules", "dist"],
}

0 comments on commit 4d1eca8

Please sign in to comment.