@jterrazz/typescript 5.2.0 → 6.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +123 -27
- package/bin/commands/check.sh +164 -0
- package/bin/commands/docs.sh +89 -0
- package/bin/merge-knip-config.js +240 -0
- package/bin/typescript.sh +20 -2
- package/package.json +48 -33
- package/presets/knip/base.json +5 -0
- package/presets/oxfmt/index.js +12 -0
- package/presets/oxlint/architectures/hexagonal-rules.js +39 -0
- package/presets/oxlint/architectures/hexagonal.js +13 -0
- package/presets/oxlint/base.js +128 -0
- package/presets/oxlint/expo.js +33 -0
- package/presets/oxlint/next.js +23 -0
- package/presets/oxlint/node.js +14 -0
- package/presets/oxlint/plugins/codestyle.js +194 -0
- package/presets/tsconfig/expo.json +18 -18
- package/presets/tsconfig/next.json +22 -22
- package/presets/tsconfig/node.json +14 -14
- package/presets/tsdown/build.js +10 -10
- package/presets/tsdown/bundle.js +10 -10
- package/src/index.js +16 -0
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ES2017",
|
|
4
|
+
"lib": ["dom", "dom.iterable", "esnext"],
|
|
5
|
+
"allowJs": true,
|
|
6
|
+
"skipLibCheck": true,
|
|
7
|
+
"strict": false,
|
|
8
|
+
"noEmit": true,
|
|
9
|
+
"incremental": true,
|
|
10
|
+
"module": "esnext",
|
|
11
|
+
"esModuleInterop": true,
|
|
12
|
+
"moduleResolution": "node",
|
|
13
|
+
"resolveJsonModule": true,
|
|
14
|
+
"isolatedModules": true,
|
|
15
|
+
"jsx": "preserve",
|
|
16
|
+
"plugins": [
|
|
17
|
+
{
|
|
18
|
+
"name": "next"
|
|
19
|
+
}
|
|
20
|
+
]
|
|
21
|
+
},
|
|
22
|
+
"include": ["next-env.d.ts", ".next/types/**/*.ts", "**/*.ts", "**/*.tsx"],
|
|
23
|
+
"exclude": ["node_modules"]
|
|
24
24
|
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
"display": "Node ESM",
|
|
3
|
+
"include": ["../../../../**/*.ts"],
|
|
4
|
+
"exclude": ["../../../../node_modules"],
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
6
|
+
"compilerOptions": {
|
|
7
|
+
"moduleResolution": "Bundler",
|
|
8
|
+
"module": "ESNext",
|
|
9
|
+
"target": "ESNext",
|
|
10
|
+
"types": ["node"],
|
|
11
|
+
"strict": true,
|
|
12
|
+
"experimentalDecorators": true,
|
|
13
|
+
"esModuleInterop": true,
|
|
14
|
+
"resolveJsonModule": true,
|
|
15
|
+
"skipLibCheck": true
|
|
16
|
+
}
|
|
17
17
|
}
|
package/presets/tsdown/build.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineConfig } from
|
|
1
|
+
import { defineConfig } from 'tsdown';
|
|
2
2
|
|
|
3
3
|
export default defineConfig({
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
4
|
+
entry: ['src/index.ts'],
|
|
5
|
+
format: ['esm'],
|
|
6
|
+
dts: true,
|
|
7
|
+
sourcemap: true,
|
|
8
|
+
clean: true,
|
|
9
|
+
hash: false,
|
|
10
|
+
outExtensions: () => ({
|
|
11
|
+
js: '.js',
|
|
12
|
+
}),
|
|
13
13
|
});
|
package/presets/tsdown/bundle.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineConfig } from
|
|
1
|
+
import { defineConfig } from 'tsdown';
|
|
2
2
|
|
|
3
3
|
export default defineConfig({
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
4
|
+
entry: ['src/index.ts'],
|
|
5
|
+
format: ['esm', 'cjs'],
|
|
6
|
+
dts: true,
|
|
7
|
+
sourcemap: true,
|
|
8
|
+
clean: true,
|
|
9
|
+
hash: false,
|
|
10
|
+
outExtensions: ({ format }) => ({
|
|
11
|
+
js: format === 'cjs' ? '.cjs' : '.js',
|
|
12
|
+
}),
|
|
13
13
|
});
|
package/src/index.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import oxfmtConfig from '../presets/oxfmt/index.js';
|
|
2
|
+
import hexagonalConfig from '../presets/oxlint/architectures/hexagonal.js';
|
|
3
|
+
import expoConfig from '../presets/oxlint/expo.js';
|
|
4
|
+
import nextConfig from '../presets/oxlint/next.js';
|
|
5
|
+
import nodeConfig from '../presets/oxlint/node.js';
|
|
6
|
+
|
|
7
|
+
export const oxfmt = oxfmtConfig;
|
|
8
|
+
|
|
9
|
+
export const oxlint = {
|
|
10
|
+
expo: expoConfig,
|
|
11
|
+
hexagonal: hexagonalConfig,
|
|
12
|
+
next: nextConfig,
|
|
13
|
+
node: nodeConfig,
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export default { oxfmt, oxlint };
|