Skip to content

Commit 4b24679

Browse files
authored
feat: enable publint and attw (#454)
enables the linting options documented here https://tsdown.dev/options/lint
1 parent 66e9be5 commit 4b24679

42 files changed

Lines changed: 204 additions & 89 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

e2e/jest.config.cjs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
const base = require("../jest.base")
2+
const {name: displayName} = require("./package.json")
3+
4+
/**
5+
* @type { import('@jest/types').Config.ProjectConfig }
6+
*/
7+
const config = {
8+
...base,
9+
displayName,
10+
}
11+
12+
module.exports = config

e2e/jest.config.js

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

jest.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const inspector = require("node:inspector")
44
* @type { import('@jest/types').Config.GlobalConfig }
55
*/
66
const config = {
7-
projects: ["packages/*/jest.config.js"],
7+
projects: ["packages/*/jest.config.cjs"],
88
testTimeout: inspector.url() ? 5 * 60 * 1000 : 5 * 1000,
99
reporters: ["./jest/reporter.js"],
1010
}

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"homepage": "https://openapi-code-generator.nahkies.co.nz/",
1212
"repository": {
1313
"type": "git",
14-
"url": "https://github.com/mnahkies/openapi-code-generator.git"
14+
"url": "git+https://github.com/mnahkies/openapi-code-generator.git"
1515
},
1616
"bugs": {
1717
"url": "https://github.com/mnahkies/openapi-code-generator/issues"
@@ -39,6 +39,7 @@
3939
"prepare": "husky"
4040
},
4141
"devDependencies": {
42+
"@arethetypeswrong/core": "^0.18.2",
4243
"@biomejs/biome": "2.4.13",
4344
"@biomejs/js-api": "4.0.0",
4445
"@biomejs/wasm-nodejs": "2.4.13",
@@ -59,6 +60,7 @@
5960
"lerna": "^9.0.7",
6061
"lint-staged": "^16.4.0",
6162
"prettier": "^3.8.3",
63+
"publint": "^0.3.18",
6264
"remark": "^15.0.1",
6365
"remark-toc": "^9.0.0",
6466
"typescript": "^6.0.3"
@@ -69,7 +71,7 @@
6971
"e2e"
7072
],
7173
"lint-staged": {
72-
"*.{ts,js,tsx,jsx}": [
74+
"*.{ts,js,tsx,jsx,mts,mjs,cts,cjs}": [
7375
"pnpm biome lint --write --no-errors-on-unmatched",
7476
"pnpm biome check --write --no-errors-on-unmatched"
7577
],

packages/documentation/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"type": "module",
1111
"repository": {
1212
"type": "git",
13-
"url": "https://github.com/mnahkies/openapi-code-generator.git",
13+
"url": "git+https://github.com/mnahkies/openapi-code-generator.git",
1414
"directory": "packages/documentation"
1515
},
1616
"bugs": {
File renamed without changes.

packages/openapi-code-generator/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"homepage": "https://openapi-code-generator.nahkies.co.nz/",
1111
"repository": {
1212
"type": "git",
13-
"url": "https://github.com/mnahkies/openapi-code-generator.git",
13+
"url": "git+https://github.com/mnahkies/openapi-code-generator.git",
1414
"directory": "packages/openapi-code-generator"
1515
},
1616
"bugs": {
File renamed without changes.

packages/typescript-axios-runtime/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "@nahkies/typescript-axios-runtime",
33
"version": "0.22.0",
4+
"type": "module",
45
"description": "Runtime package for code generated by @nahkies/openapi-code-generator using the typescript-axios template",
56
"license": "MIT",
67
"author": {
@@ -10,7 +11,7 @@
1011
"homepage": "https://openapi-code-generator.nahkies.co.nz/",
1112
"repository": {
1213
"type": "git",
13-
"url": "https://github.com/mnahkies/openapi-code-generator.git",
14+
"url": "git+https://github.com/mnahkies/openapi-code-generator.git",
1415
"directory": "packages/typescript-axios-runtime"
1516
},
1617
"bugs": {

packages/typescript-axios-runtime/src/main.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
type AbstractAxiosConfig,
1010
type HeaderParams,
1111
type QueryParams,
12-
} from "./main"
12+
} from "./main.ts"
1313

1414
class ConcreteAxiosClient extends AbstractAxiosClient {
1515
// biome-ignore lint/complexity/noUselessConstructor: make public

0 commit comments

Comments
 (0)