Skip to content

Commit fcaaeb8

Browse files
chore: fixup repot files
1 parent e64cf5f commit fcaaeb8

File tree

6 files changed

+24
-23
lines changed

6 files changed

+24
-23
lines changed

.eslintrc.json

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,24 @@
3737
}
3838
},
3939
{
40-
"files": ["./cz-adapter/"],
40+
"files": ["./cz-adapter/**/*"],
41+
"extends": ["@rebeccastevens/eslint-config/script"],
4142
"rules": {
4243
"@typescript-eslint/no-unsafe-argument": "off",
4344
"@typescript-eslint/no-unsafe-assignment": "off",
4445
"@typescript-eslint/no-unsafe-call": "off",
4546
"@typescript-eslint/no-unsafe-member-access": "off",
4647
"@typescript-eslint/no-unsafe-return": "off",
47-
"jsdoc/require-jsdoc": "off"
48+
"import/no-extraneous-dependencies": [
49+
"error",
50+
{
51+
"devDependencies": true,
52+
"peerDependencies": true
53+
}
54+
],
55+
"functional/immutable-data": "off",
56+
"jsdoc/require-jsdoc": "off",
57+
"unicorn/prefer-module": "off"
4858
}
4959
},
5060
{
@@ -61,7 +71,7 @@
6171
}
6272
},
6373
{
64-
"files": ["./typings/"],
74+
"files": ["./typings/**/*"],
6575
"extends": ["plugin:functional/off"],
6676
"rules": {
6777
"@typescript-eslint/no-unused-vars": "off",

.github/workflows/lint-docs.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@ on:
66
workflow_call:
77

88
jobs:
9-
lint_js:
9+
lint_docs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@v3
1313
- uses: ./.github/actions/prepare
14+
- run: pnpm run build:node
1415
- run: pnpm run lint:eslint-docs

cz-adapter/.eslintrc.json

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

cz-adapter/index.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
require("ts-node").register({
2-
transpileOnly: true,
3-
emit: true,
4-
compilerOptions: {
5-
module: "CommonJS",
6-
},
2+
cwd: __dirname,
3+
project: "./tsconfig.json",
74
});
85
require("tsconfig-paths").register();
96

7+
// @ts-ignore
108
module.exports = require("./index.ts");

cz-adapter/tsconfig.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,12 @@
22
"extends": "../tsconfig.base.json",
33
"compilerOptions": {
44
"module": "commonjs",
5+
"moduleResolution": "node",
56
"skipLibCheck": true,
67
"declaration": false
8+
},
9+
"ts-node": {
10+
"emit": true,
11+
"transpileOnly": true
712
}
813
}

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@
6262
"lint:prettier-fix": "prettier \"**/*\" --ignore-unknown --write",
6363
"lint:spelling": "cspell \"**\" \".github/**/*\"",
6464
"prepare": "husky install",
65+
"release": "semantic-release",
6566
"test": "pnpm run test:js",
6667
"test-compiled": "USE_COMPILED_TESTS=1 nyc ava",
6768
"test-work": "ONLY_TEST_WORK_FILE=1 ava",

0 commit comments

Comments
 (0)