Skip to content

Commit 765ff26

Browse files
author
Michael Hladky
committed
refactor: wip
1 parent df9cdd2 commit 765ff26

File tree

6 files changed

+27
-26
lines changed

6 files changed

+27
-26
lines changed

nx.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"options": {
4747
"command": "eslint",
4848
"args": [
49-
"'{projectRoot}/**/*.ts'",
49+
"'{projectRoot}/**/*.{ts,cjs,mjs,js}'",
5050
"{projectRoot}/package.json",
5151
"--config={projectRoot}/eslint.config.js",
5252
"--max-warnings=0",

packages/models/eslint.config.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,4 @@ export default tseslint.config(
1818
'@nx/dependency-checks': 'error',
1919
},
2020
},
21-
{
22-
ignores: ['packages/models/transformers/**/*.ts'],
23-
},
2421
);

tools/zod2md-jsdocs/eslint.config.cjs

Lines changed: 0 additions & 11 deletions
This file was deleted.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
const baseConfig = require('../../eslint.config.js').default;
2+
3+
module.exports = [
4+
...baseConfig,
5+
{
6+
files: ['**/*.json'],
7+
rules: {
8+
'@nx/dependency-checks': 'error',
9+
},
10+
},
11+
{
12+
files: ['**/*.ts', '**/*.cjs', '**/*.js'],
13+
rules: {
14+
'import/no-commonjs': 'off',
15+
'@typescript-eslint/no-require-imports': 'off',
16+
'@typescript-eslint/no-unused-vars': 'off',
17+
'unicorn/prefer-module': 'off',
18+
'functional/immutable-data': 'off',
19+
'arrow-body-style': 'off',
20+
},
21+
},
22+
];

tools/zod2md-jsdocs/project.json

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,9 @@
44
"sourceRoot": "tools/zod2md-jsdocs/src",
55
"projectType": "library",
66
"targets": {
7+
"lint": {},
78
"build": {
8-
"executor": "@nx/js:tsc",
9-
"outputs": ["{options.outputPath}"],
10-
"dependsOn": ["pre-build"],
11-
"options": {
12-
"outputPath": "tools/zod2md-jsdocs/dist",
13-
"main": "tools/zod2md-jsdocs/src/index.ts",
14-
"tsConfig": "tools/zod2md-jsdocs/tsconfig.lib.json"
15-
}
9+
"dependsOn": ["pre-build"]
1610
},
1711
"pre-build": {
1812
"command": "ts-patch install",

tools/zod2md-jsdocs/src/lib/transformers.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,8 @@ function annotateTypeDefinitions(
4646
}
4747
return tsLib.visitEachChild(node, visitor, context);
4848
};
49-
return (sourceFile: ts.SourceFile) => {
50-
return tsLib.visitNode(sourceFile, visitor, tsLib.isSourceFile);
51-
};
49+
return (sourceFile: ts.SourceFile) =>
50+
tsLib.visitNode(sourceFile, visitor, tsLib.isSourceFile);
5251
};
5352
}
5453

0 commit comments

Comments
 (0)