create-rstack 0.0.1
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/LICENSE +21 -0
- package/README.md +49 -0
- package/dist/index.d.ts +20 -0
- package/dist/index.js +1577 -0
- package/package.json +55 -0
- package/template-biome/biome.json +25 -0
- package/template-biome/node_modules/.bin/biome +17 -0
- package/template-biome/package.json +12 -0
- package/template-eslint/react-js/eslint.config.mjs +29 -0
- package/template-eslint/react-js/node_modules/.bin/acorn +17 -0
- package/template-eslint/react-js/node_modules/.bin/eslint +17 -0
- package/template-eslint/react-js/node_modules/.bin/jiti +17 -0
- package/template-eslint/react-js/package.json +16 -0
- package/template-eslint/react-ts/eslint.config.mjs +31 -0
- package/template-eslint/react-ts/node_modules/.bin/acorn +17 -0
- package/template-eslint/react-ts/node_modules/.bin/eslint +17 -0
- package/template-eslint/react-ts/node_modules/.bin/jiti +17 -0
- package/template-eslint/react-ts/node_modules/.bin/tsc +17 -0
- package/template-eslint/react-ts/node_modules/.bin/tsserver +17 -0
- package/template-eslint/react-ts/package.json +17 -0
- package/template-eslint/svelte-js/eslint.config.mjs +20 -0
- package/template-eslint/svelte-js/node_modules/.bin/acorn +17 -0
- package/template-eslint/svelte-js/node_modules/.bin/eslint +17 -0
- package/template-eslint/svelte-js/node_modules/.bin/jiti +17 -0
- package/template-eslint/svelte-js/package.json +14 -0
- package/template-eslint/svelte-ts/eslint.config.mjs +28 -0
- package/template-eslint/svelte-ts/node_modules/.bin/acorn +17 -0
- package/template-eslint/svelte-ts/node_modules/.bin/eslint +17 -0
- package/template-eslint/svelte-ts/node_modules/.bin/jiti +17 -0
- package/template-eslint/svelte-ts/node_modules/.bin/tsc +17 -0
- package/template-eslint/svelte-ts/node_modules/.bin/tsserver +17 -0
- package/template-eslint/svelte-ts/package.json +16 -0
- package/template-eslint/vanilla-js/eslint.config.mjs +8 -0
- package/template-eslint/vanilla-js/node_modules/.bin/acorn +17 -0
- package/template-eslint/vanilla-js/node_modules/.bin/eslint +17 -0
- package/template-eslint/vanilla-js/node_modules/.bin/jiti +17 -0
- package/template-eslint/vanilla-js/package.json +13 -0
- package/template-eslint/vanilla-ts/eslint.config.mjs +10 -0
- package/template-eslint/vanilla-ts/node_modules/.bin/acorn +17 -0
- package/template-eslint/vanilla-ts/node_modules/.bin/eslint +17 -0
- package/template-eslint/vanilla-ts/node_modules/.bin/jiti +17 -0
- package/template-eslint/vanilla-ts/node_modules/.bin/tsc +17 -0
- package/template-eslint/vanilla-ts/node_modules/.bin/tsserver +17 -0
- package/template-eslint/vanilla-ts/package.json +14 -0
- package/template-eslint/vue-js/eslint.config.mjs +10 -0
- package/template-eslint/vue-js/node_modules/.bin/acorn +17 -0
- package/template-eslint/vue-js/node_modules/.bin/eslint +17 -0
- package/template-eslint/vue-js/node_modules/.bin/jiti +17 -0
- package/template-eslint/vue-js/package.json +14 -0
- package/template-eslint/vue-ts/eslint.config.mjs +12 -0
- package/template-eslint/vue-ts/node_modules/.bin/acorn +17 -0
- package/template-eslint/vue-ts/node_modules/.bin/eslint +17 -0
- package/template-eslint/vue-ts/node_modules/.bin/jiti +17 -0
- package/template-eslint/vue-ts/node_modules/.bin/tsc +17 -0
- package/template-eslint/vue-ts/node_modules/.bin/tsserver +17 -0
- package/template-eslint/vue-ts/package.json +15 -0
- package/template-prettier/.prettierignore +4 -0
- package/template-prettier/.prettierrc +3 -0
- package/template-prettier/node_modules/.bin/prettier +17 -0
- package/template-prettier/package.json +11 -0
package/package.json
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "create-rstack",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "Create a new Rstack project",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "https://github.com/rspack-contrib/create-rstack"
|
|
8
|
+
},
|
|
9
|
+
"license": "MIT",
|
|
10
|
+
"type": "module",
|
|
11
|
+
"exports": {
|
|
12
|
+
".": {
|
|
13
|
+
"types": "./dist/index.d.ts",
|
|
14
|
+
"default": "./dist/index.js"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"main": "./dist/index.js",
|
|
18
|
+
"types": "./dist/index.d.ts",
|
|
19
|
+
"files": [
|
|
20
|
+
"template-*",
|
|
21
|
+
"dist"
|
|
22
|
+
],
|
|
23
|
+
"simple-git-hooks": {
|
|
24
|
+
"pre-commit": "npx nano-staged"
|
|
25
|
+
},
|
|
26
|
+
"nano-staged": {
|
|
27
|
+
"*.{js,jsx,ts,tsx,mjs,cjs}": [
|
|
28
|
+
"biome check --write --no-errors-on-unmatched"
|
|
29
|
+
]
|
|
30
|
+
},
|
|
31
|
+
"devDependencies": {
|
|
32
|
+
"@biomejs/biome": "^1.8.3",
|
|
33
|
+
"@clack/prompts": "^0.7.0",
|
|
34
|
+
"@types/minimist": "^1.2.5",
|
|
35
|
+
"@types/node": "18.x",
|
|
36
|
+
"deepmerge": "^4.3.1",
|
|
37
|
+
"minimist": "^1.2.8",
|
|
38
|
+
"rslog": "^1.2.2",
|
|
39
|
+
"simple-git-hooks": "^2.11.1",
|
|
40
|
+
"tsup": "^8.2.3",
|
|
41
|
+
"typescript": "^5.5.2"
|
|
42
|
+
},
|
|
43
|
+
"publishConfig": {
|
|
44
|
+
"access": "public",
|
|
45
|
+
"provenance": true,
|
|
46
|
+
"registry": "https://registry.npmjs.org/"
|
|
47
|
+
},
|
|
48
|
+
"scripts": {
|
|
49
|
+
"build": "tsup",
|
|
50
|
+
"dev": "tsup --watch",
|
|
51
|
+
"lint": "biome check .",
|
|
52
|
+
"lint:write": "biome check . --write",
|
|
53
|
+
"test": "playwright test"
|
|
54
|
+
}
|
|
55
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://biomejs.dev/schemas/1.8.0/schema.json",
|
|
3
|
+
"organizeImports": {
|
|
4
|
+
"enabled": true
|
|
5
|
+
},
|
|
6
|
+
"vcs": {
|
|
7
|
+
"enabled": true,
|
|
8
|
+
"clientKind": "git",
|
|
9
|
+
"useIgnoreFile": true
|
|
10
|
+
},
|
|
11
|
+
"formatter": {
|
|
12
|
+
"indentStyle": "space"
|
|
13
|
+
},
|
|
14
|
+
"javascript": {
|
|
15
|
+
"formatter": {
|
|
16
|
+
"quoteStyle": "single"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"linter": {
|
|
20
|
+
"enabled": true,
|
|
21
|
+
"rules": {
|
|
22
|
+
"recommended": true
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
+
|
|
4
|
+
case `uname` in
|
|
5
|
+
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
|
|
6
|
+
esac
|
|
7
|
+
|
|
8
|
+
if [ -z "$NODE_PATH" ]; then
|
|
9
|
+
export NODE_PATH="/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/@biomejs+biome@1.8.3/node_modules/@biomejs/biome/bin/node_modules:/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/@biomejs+biome@1.8.3/node_modules/@biomejs/biome/node_modules:/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/@biomejs+biome@1.8.3/node_modules/@biomejs/node_modules:/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/@biomejs+biome@1.8.3/node_modules:/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/node_modules"
|
|
10
|
+
else
|
|
11
|
+
export NODE_PATH="/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/@biomejs+biome@1.8.3/node_modules/@biomejs/biome/bin/node_modules:/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/@biomejs+biome@1.8.3/node_modules/@biomejs/biome/node_modules:/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/@biomejs+biome@1.8.3/node_modules/@biomejs/node_modules:/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/@biomejs+biome@1.8.3/node_modules:/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
12
|
+
fi
|
|
13
|
+
if [ -x "$basedir/node" ]; then
|
|
14
|
+
exec "$basedir/node" "$basedir/../@biomejs/biome/bin/biome" "$@"
|
|
15
|
+
else
|
|
16
|
+
exec node "$basedir/../@biomejs/biome/bin/biome" "$@"
|
|
17
|
+
fi
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { fixupConfigRules, fixupPluginRules } from '@eslint/compat';
|
|
2
|
+
import js from '@eslint/js';
|
|
3
|
+
import reactHooks from 'eslint-plugin-react-hooks';
|
|
4
|
+
import reactJsx from 'eslint-plugin-react/configs/jsx-runtime.js';
|
|
5
|
+
import react from 'eslint-plugin-react/configs/recommended.js';
|
|
6
|
+
import globals from 'globals';
|
|
7
|
+
|
|
8
|
+
export default [
|
|
9
|
+
{ languageOptions: { globals: globals.browser } },
|
|
10
|
+
js.configs.recommended,
|
|
11
|
+
...fixupConfigRules([
|
|
12
|
+
{
|
|
13
|
+
...react,
|
|
14
|
+
settings: {
|
|
15
|
+
react: { version: 'detect' },
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
reactJsx,
|
|
19
|
+
]),
|
|
20
|
+
{
|
|
21
|
+
plugins: {
|
|
22
|
+
'react-hooks': fixupPluginRules(reactHooks),
|
|
23
|
+
},
|
|
24
|
+
rules: {
|
|
25
|
+
...reactHooks.configs.recommended.rules,
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
{ ignores: ['dist/'] },
|
|
29
|
+
];
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
+
|
|
4
|
+
case `uname` in
|
|
5
|
+
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
|
|
6
|
+
esac
|
|
7
|
+
|
|
8
|
+
if [ -z "$NODE_PATH" ]; then
|
|
9
|
+
export NODE_PATH="/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/acorn@8.12.1/node_modules/acorn/bin/node_modules:/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/acorn@8.12.1/node_modules/acorn/node_modules:/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/acorn@8.12.1/node_modules:/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/node_modules"
|
|
10
|
+
else
|
|
11
|
+
export NODE_PATH="/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/acorn@8.12.1/node_modules/acorn/bin/node_modules:/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/acorn@8.12.1/node_modules/acorn/node_modules:/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/acorn@8.12.1/node_modules:/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
12
|
+
fi
|
|
13
|
+
if [ -x "$basedir/node" ]; then
|
|
14
|
+
exec "$basedir/node" "$basedir/../../../../../../node_modules/.pnpm/acorn@8.12.1/node_modules/acorn/bin/acorn" "$@"
|
|
15
|
+
else
|
|
16
|
+
exec node "$basedir/../../../../../../node_modules/.pnpm/acorn@8.12.1/node_modules/acorn/bin/acorn" "$@"
|
|
17
|
+
fi
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
+
|
|
4
|
+
case `uname` in
|
|
5
|
+
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
|
|
6
|
+
esac
|
|
7
|
+
|
|
8
|
+
if [ -z "$NODE_PATH" ]; then
|
|
9
|
+
export NODE_PATH="/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/eslint@9.9.1_jiti@1.21.6/node_modules/eslint/bin/node_modules:/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/eslint@9.9.1_jiti@1.21.6/node_modules/eslint/node_modules:/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/eslint@9.9.1_jiti@1.21.6/node_modules:/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/node_modules"
|
|
10
|
+
else
|
|
11
|
+
export NODE_PATH="/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/eslint@9.9.1_jiti@1.21.6/node_modules/eslint/bin/node_modules:/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/eslint@9.9.1_jiti@1.21.6/node_modules/eslint/node_modules:/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/eslint@9.9.1_jiti@1.21.6/node_modules:/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
12
|
+
fi
|
|
13
|
+
if [ -x "$basedir/node" ]; then
|
|
14
|
+
exec "$basedir/node" "$basedir/../eslint/bin/eslint.js" "$@"
|
|
15
|
+
else
|
|
16
|
+
exec node "$basedir/../eslint/bin/eslint.js" "$@"
|
|
17
|
+
fi
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
+
|
|
4
|
+
case `uname` in
|
|
5
|
+
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
|
|
6
|
+
esac
|
|
7
|
+
|
|
8
|
+
if [ -z "$NODE_PATH" ]; then
|
|
9
|
+
export NODE_PATH="/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/jiti@1.21.6/node_modules/jiti/bin/node_modules:/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/jiti@1.21.6/node_modules/jiti/node_modules:/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/jiti@1.21.6/node_modules:/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/node_modules"
|
|
10
|
+
else
|
|
11
|
+
export NODE_PATH="/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/jiti@1.21.6/node_modules/jiti/bin/node_modules:/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/jiti@1.21.6/node_modules/jiti/node_modules:/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/jiti@1.21.6/node_modules:/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
12
|
+
fi
|
|
13
|
+
if [ -x "$basedir/node" ]; then
|
|
14
|
+
exec "$basedir/node" "$basedir/../../../../../../node_modules/.pnpm/jiti@1.21.6/node_modules/jiti/bin/jiti.js" "$@"
|
|
15
|
+
else
|
|
16
|
+
exec node "$basedir/../../../../../../node_modules/.pnpm/jiti@1.21.6/node_modules/jiti/bin/jiti.js" "$@"
|
|
17
|
+
fi
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "rsbuild-eslint-react-js",
|
|
3
|
+
"private": true,
|
|
4
|
+
"version": "1.0.0",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"lint": "eslint ."
|
|
7
|
+
},
|
|
8
|
+
"devDependencies": {
|
|
9
|
+
"@eslint/compat": "^1.1.1",
|
|
10
|
+
"@eslint/js": "^9.9.1",
|
|
11
|
+
"eslint": "^9.9.1",
|
|
12
|
+
"eslint-plugin-react": "^7.35.0",
|
|
13
|
+
"eslint-plugin-react-hooks": "^4.6.2",
|
|
14
|
+
"globals": "^15.9.0"
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { fixupConfigRules, fixupPluginRules } from '@eslint/compat';
|
|
2
|
+
import js from '@eslint/js';
|
|
3
|
+
import reactHooks from 'eslint-plugin-react-hooks';
|
|
4
|
+
import reactJsx from 'eslint-plugin-react/configs/jsx-runtime.js';
|
|
5
|
+
import react from 'eslint-plugin-react/configs/recommended.js';
|
|
6
|
+
import globals from 'globals';
|
|
7
|
+
import ts from 'typescript-eslint';
|
|
8
|
+
|
|
9
|
+
export default [
|
|
10
|
+
{ languageOptions: { globals: globals.browser } },
|
|
11
|
+
js.configs.recommended,
|
|
12
|
+
...ts.configs.recommended,
|
|
13
|
+
...fixupConfigRules([
|
|
14
|
+
{
|
|
15
|
+
...react,
|
|
16
|
+
settings: {
|
|
17
|
+
react: { version: 'detect' },
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
reactJsx,
|
|
21
|
+
]),
|
|
22
|
+
{
|
|
23
|
+
plugins: {
|
|
24
|
+
'react-hooks': fixupPluginRules(reactHooks),
|
|
25
|
+
},
|
|
26
|
+
rules: {
|
|
27
|
+
...reactHooks.configs.recommended.rules,
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
{ ignores: ['dist/'] },
|
|
31
|
+
];
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
+
|
|
4
|
+
case `uname` in
|
|
5
|
+
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
|
|
6
|
+
esac
|
|
7
|
+
|
|
8
|
+
if [ -z "$NODE_PATH" ]; then
|
|
9
|
+
export NODE_PATH="/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/acorn@8.12.1/node_modules/acorn/bin/node_modules:/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/acorn@8.12.1/node_modules/acorn/node_modules:/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/acorn@8.12.1/node_modules:/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/node_modules"
|
|
10
|
+
else
|
|
11
|
+
export NODE_PATH="/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/acorn@8.12.1/node_modules/acorn/bin/node_modules:/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/acorn@8.12.1/node_modules/acorn/node_modules:/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/acorn@8.12.1/node_modules:/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
12
|
+
fi
|
|
13
|
+
if [ -x "$basedir/node" ]; then
|
|
14
|
+
exec "$basedir/node" "$basedir/../../../../../../node_modules/.pnpm/acorn@8.12.1/node_modules/acorn/bin/acorn" "$@"
|
|
15
|
+
else
|
|
16
|
+
exec node "$basedir/../../../../../../node_modules/.pnpm/acorn@8.12.1/node_modules/acorn/bin/acorn" "$@"
|
|
17
|
+
fi
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
+
|
|
4
|
+
case `uname` in
|
|
5
|
+
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
|
|
6
|
+
esac
|
|
7
|
+
|
|
8
|
+
if [ -z "$NODE_PATH" ]; then
|
|
9
|
+
export NODE_PATH="/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/eslint@9.9.1_jiti@1.21.6/node_modules/eslint/bin/node_modules:/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/eslint@9.9.1_jiti@1.21.6/node_modules/eslint/node_modules:/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/eslint@9.9.1_jiti@1.21.6/node_modules:/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/node_modules"
|
|
10
|
+
else
|
|
11
|
+
export NODE_PATH="/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/eslint@9.9.1_jiti@1.21.6/node_modules/eslint/bin/node_modules:/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/eslint@9.9.1_jiti@1.21.6/node_modules/eslint/node_modules:/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/eslint@9.9.1_jiti@1.21.6/node_modules:/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
12
|
+
fi
|
|
13
|
+
if [ -x "$basedir/node" ]; then
|
|
14
|
+
exec "$basedir/node" "$basedir/../eslint/bin/eslint.js" "$@"
|
|
15
|
+
else
|
|
16
|
+
exec node "$basedir/../eslint/bin/eslint.js" "$@"
|
|
17
|
+
fi
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
+
|
|
4
|
+
case `uname` in
|
|
5
|
+
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
|
|
6
|
+
esac
|
|
7
|
+
|
|
8
|
+
if [ -z "$NODE_PATH" ]; then
|
|
9
|
+
export NODE_PATH="/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/jiti@1.21.6/node_modules/jiti/bin/node_modules:/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/jiti@1.21.6/node_modules/jiti/node_modules:/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/jiti@1.21.6/node_modules:/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/node_modules"
|
|
10
|
+
else
|
|
11
|
+
export NODE_PATH="/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/jiti@1.21.6/node_modules/jiti/bin/node_modules:/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/jiti@1.21.6/node_modules/jiti/node_modules:/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/jiti@1.21.6/node_modules:/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
12
|
+
fi
|
|
13
|
+
if [ -x "$basedir/node" ]; then
|
|
14
|
+
exec "$basedir/node" "$basedir/../../../../../../node_modules/.pnpm/jiti@1.21.6/node_modules/jiti/bin/jiti.js" "$@"
|
|
15
|
+
else
|
|
16
|
+
exec node "$basedir/../../../../../../node_modules/.pnpm/jiti@1.21.6/node_modules/jiti/bin/jiti.js" "$@"
|
|
17
|
+
fi
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
+
|
|
4
|
+
case `uname` in
|
|
5
|
+
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
|
|
6
|
+
esac
|
|
7
|
+
|
|
8
|
+
if [ -z "$NODE_PATH" ]; then
|
|
9
|
+
export NODE_PATH="/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/bin/node_modules:/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/node_modules:/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/typescript@5.5.2/node_modules:/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/node_modules"
|
|
10
|
+
else
|
|
11
|
+
export NODE_PATH="/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/bin/node_modules:/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/node_modules:/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/typescript@5.5.2/node_modules:/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
12
|
+
fi
|
|
13
|
+
if [ -x "$basedir/node" ]; then
|
|
14
|
+
exec "$basedir/node" "$basedir/../../../../../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/bin/tsc" "$@"
|
|
15
|
+
else
|
|
16
|
+
exec node "$basedir/../../../../../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/bin/tsc" "$@"
|
|
17
|
+
fi
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
+
|
|
4
|
+
case `uname` in
|
|
5
|
+
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
|
|
6
|
+
esac
|
|
7
|
+
|
|
8
|
+
if [ -z "$NODE_PATH" ]; then
|
|
9
|
+
export NODE_PATH="/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/bin/node_modules:/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/node_modules:/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/typescript@5.5.2/node_modules:/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/node_modules"
|
|
10
|
+
else
|
|
11
|
+
export NODE_PATH="/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/bin/node_modules:/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/node_modules:/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/typescript@5.5.2/node_modules:/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
12
|
+
fi
|
|
13
|
+
if [ -x "$basedir/node" ]; then
|
|
14
|
+
exec "$basedir/node" "$basedir/../../../../../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/bin/tsserver" "$@"
|
|
15
|
+
else
|
|
16
|
+
exec node "$basedir/../../../../../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/bin/tsserver" "$@"
|
|
17
|
+
fi
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "rsbuild-eslint-react-ts",
|
|
3
|
+
"private": true,
|
|
4
|
+
"version": "1.0.0",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"lint": "eslint ."
|
|
7
|
+
},
|
|
8
|
+
"devDependencies": {
|
|
9
|
+
"@eslint/compat": "^1.1.1",
|
|
10
|
+
"@eslint/js": "^9.9.1",
|
|
11
|
+
"eslint": "^9.9.1",
|
|
12
|
+
"eslint-plugin-react": "^7.35.0",
|
|
13
|
+
"eslint-plugin-react-hooks": "^4.6.2",
|
|
14
|
+
"globals": "^15.9.0",
|
|
15
|
+
"typescript-eslint": "^8.2.0"
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import js from '@eslint/js';
|
|
2
|
+
import svelte from 'eslint-plugin-svelte';
|
|
3
|
+
import globals from 'globals';
|
|
4
|
+
|
|
5
|
+
/** @type {import('eslint').Linter.FlatConfig[]} */
|
|
6
|
+
export default [
|
|
7
|
+
js.configs.recommended,
|
|
8
|
+
...svelte.configs['flat/recommended'],
|
|
9
|
+
{
|
|
10
|
+
languageOptions: {
|
|
11
|
+
globals: {
|
|
12
|
+
...globals.browser,
|
|
13
|
+
...globals.node,
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
ignores: ['dist/'],
|
|
19
|
+
},
|
|
20
|
+
];
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
+
|
|
4
|
+
case `uname` in
|
|
5
|
+
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
|
|
6
|
+
esac
|
|
7
|
+
|
|
8
|
+
if [ -z "$NODE_PATH" ]; then
|
|
9
|
+
export NODE_PATH="/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/acorn@8.12.1/node_modules/acorn/bin/node_modules:/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/acorn@8.12.1/node_modules/acorn/node_modules:/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/acorn@8.12.1/node_modules:/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/node_modules"
|
|
10
|
+
else
|
|
11
|
+
export NODE_PATH="/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/acorn@8.12.1/node_modules/acorn/bin/node_modules:/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/acorn@8.12.1/node_modules/acorn/node_modules:/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/acorn@8.12.1/node_modules:/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
12
|
+
fi
|
|
13
|
+
if [ -x "$basedir/node" ]; then
|
|
14
|
+
exec "$basedir/node" "$basedir/../../../../../../node_modules/.pnpm/acorn@8.12.1/node_modules/acorn/bin/acorn" "$@"
|
|
15
|
+
else
|
|
16
|
+
exec node "$basedir/../../../../../../node_modules/.pnpm/acorn@8.12.1/node_modules/acorn/bin/acorn" "$@"
|
|
17
|
+
fi
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
+
|
|
4
|
+
case `uname` in
|
|
5
|
+
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
|
|
6
|
+
esac
|
|
7
|
+
|
|
8
|
+
if [ -z "$NODE_PATH" ]; then
|
|
9
|
+
export NODE_PATH="/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/eslint@9.9.1_jiti@1.21.6/node_modules/eslint/bin/node_modules:/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/eslint@9.9.1_jiti@1.21.6/node_modules/eslint/node_modules:/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/eslint@9.9.1_jiti@1.21.6/node_modules:/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/node_modules"
|
|
10
|
+
else
|
|
11
|
+
export NODE_PATH="/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/eslint@9.9.1_jiti@1.21.6/node_modules/eslint/bin/node_modules:/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/eslint@9.9.1_jiti@1.21.6/node_modules/eslint/node_modules:/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/eslint@9.9.1_jiti@1.21.6/node_modules:/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
12
|
+
fi
|
|
13
|
+
if [ -x "$basedir/node" ]; then
|
|
14
|
+
exec "$basedir/node" "$basedir/../eslint/bin/eslint.js" "$@"
|
|
15
|
+
else
|
|
16
|
+
exec node "$basedir/../eslint/bin/eslint.js" "$@"
|
|
17
|
+
fi
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
+
|
|
4
|
+
case `uname` in
|
|
5
|
+
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
|
|
6
|
+
esac
|
|
7
|
+
|
|
8
|
+
if [ -z "$NODE_PATH" ]; then
|
|
9
|
+
export NODE_PATH="/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/jiti@1.21.6/node_modules/jiti/bin/node_modules:/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/jiti@1.21.6/node_modules/jiti/node_modules:/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/jiti@1.21.6/node_modules:/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/node_modules"
|
|
10
|
+
else
|
|
11
|
+
export NODE_PATH="/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/jiti@1.21.6/node_modules/jiti/bin/node_modules:/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/jiti@1.21.6/node_modules/jiti/node_modules:/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/jiti@1.21.6/node_modules:/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
12
|
+
fi
|
|
13
|
+
if [ -x "$basedir/node" ]; then
|
|
14
|
+
exec "$basedir/node" "$basedir/../../../../../../node_modules/.pnpm/jiti@1.21.6/node_modules/jiti/bin/jiti.js" "$@"
|
|
15
|
+
else
|
|
16
|
+
exec node "$basedir/../../../../../../node_modules/.pnpm/jiti@1.21.6/node_modules/jiti/bin/jiti.js" "$@"
|
|
17
|
+
fi
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "rsbuild-eslint-svelte-js",
|
|
3
|
+
"private": true,
|
|
4
|
+
"version": "1.0.0",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"lint": "eslint ."
|
|
7
|
+
},
|
|
8
|
+
"devDependencies": {
|
|
9
|
+
"@eslint/js": "^9.9.1",
|
|
10
|
+
"eslint": "^9.9.1",
|
|
11
|
+
"eslint-plugin-svelte": "^2.43.0",
|
|
12
|
+
"globals": "^15.9.0"
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import js from '@eslint/js';
|
|
2
|
+
import svelte from 'eslint-plugin-svelte';
|
|
3
|
+
import globals from 'globals';
|
|
4
|
+
import ts from 'typescript-eslint';
|
|
5
|
+
|
|
6
|
+
/** @type {import('eslint').Linter.FlatConfig[]} */
|
|
7
|
+
export default [
|
|
8
|
+
js.configs.recommended,
|
|
9
|
+
...ts.configs.recommended,
|
|
10
|
+
...svelte.configs['flat/recommended'],
|
|
11
|
+
{
|
|
12
|
+
languageOptions: {
|
|
13
|
+
globals: {
|
|
14
|
+
...globals.browser,
|
|
15
|
+
...globals.node,
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
files: ['**/*.svelte'],
|
|
21
|
+
languageOptions: {
|
|
22
|
+
parserOptions: {
|
|
23
|
+
parser: ts.parser,
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
{ ignores: ['dist/'] },
|
|
28
|
+
];
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
+
|
|
4
|
+
case `uname` in
|
|
5
|
+
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
|
|
6
|
+
esac
|
|
7
|
+
|
|
8
|
+
if [ -z "$NODE_PATH" ]; then
|
|
9
|
+
export NODE_PATH="/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/acorn@8.12.1/node_modules/acorn/bin/node_modules:/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/acorn@8.12.1/node_modules/acorn/node_modules:/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/acorn@8.12.1/node_modules:/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/node_modules"
|
|
10
|
+
else
|
|
11
|
+
export NODE_PATH="/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/acorn@8.12.1/node_modules/acorn/bin/node_modules:/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/acorn@8.12.1/node_modules/acorn/node_modules:/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/acorn@8.12.1/node_modules:/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
12
|
+
fi
|
|
13
|
+
if [ -x "$basedir/node" ]; then
|
|
14
|
+
exec "$basedir/node" "$basedir/../../../../../../node_modules/.pnpm/acorn@8.12.1/node_modules/acorn/bin/acorn" "$@"
|
|
15
|
+
else
|
|
16
|
+
exec node "$basedir/../../../../../../node_modules/.pnpm/acorn@8.12.1/node_modules/acorn/bin/acorn" "$@"
|
|
17
|
+
fi
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
+
|
|
4
|
+
case `uname` in
|
|
5
|
+
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
|
|
6
|
+
esac
|
|
7
|
+
|
|
8
|
+
if [ -z "$NODE_PATH" ]; then
|
|
9
|
+
export NODE_PATH="/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/eslint@9.9.1_jiti@1.21.6/node_modules/eslint/bin/node_modules:/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/eslint@9.9.1_jiti@1.21.6/node_modules/eslint/node_modules:/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/eslint@9.9.1_jiti@1.21.6/node_modules:/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/node_modules"
|
|
10
|
+
else
|
|
11
|
+
export NODE_PATH="/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/eslint@9.9.1_jiti@1.21.6/node_modules/eslint/bin/node_modules:/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/eslint@9.9.1_jiti@1.21.6/node_modules/eslint/node_modules:/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/eslint@9.9.1_jiti@1.21.6/node_modules:/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
12
|
+
fi
|
|
13
|
+
if [ -x "$basedir/node" ]; then
|
|
14
|
+
exec "$basedir/node" "$basedir/../eslint/bin/eslint.js" "$@"
|
|
15
|
+
else
|
|
16
|
+
exec node "$basedir/../eslint/bin/eslint.js" "$@"
|
|
17
|
+
fi
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
+
|
|
4
|
+
case `uname` in
|
|
5
|
+
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
|
|
6
|
+
esac
|
|
7
|
+
|
|
8
|
+
if [ -z "$NODE_PATH" ]; then
|
|
9
|
+
export NODE_PATH="/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/jiti@1.21.6/node_modules/jiti/bin/node_modules:/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/jiti@1.21.6/node_modules/jiti/node_modules:/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/jiti@1.21.6/node_modules:/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/node_modules"
|
|
10
|
+
else
|
|
11
|
+
export NODE_PATH="/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/jiti@1.21.6/node_modules/jiti/bin/node_modules:/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/jiti@1.21.6/node_modules/jiti/node_modules:/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/jiti@1.21.6/node_modules:/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
12
|
+
fi
|
|
13
|
+
if [ -x "$basedir/node" ]; then
|
|
14
|
+
exec "$basedir/node" "$basedir/../../../../../../node_modules/.pnpm/jiti@1.21.6/node_modules/jiti/bin/jiti.js" "$@"
|
|
15
|
+
else
|
|
16
|
+
exec node "$basedir/../../../../../../node_modules/.pnpm/jiti@1.21.6/node_modules/jiti/bin/jiti.js" "$@"
|
|
17
|
+
fi
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
+
|
|
4
|
+
case `uname` in
|
|
5
|
+
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
|
|
6
|
+
esac
|
|
7
|
+
|
|
8
|
+
if [ -z "$NODE_PATH" ]; then
|
|
9
|
+
export NODE_PATH="/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/bin/node_modules:/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/node_modules:/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/typescript@5.5.2/node_modules:/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/node_modules"
|
|
10
|
+
else
|
|
11
|
+
export NODE_PATH="/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/bin/node_modules:/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/node_modules:/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/typescript@5.5.2/node_modules:/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
12
|
+
fi
|
|
13
|
+
if [ -x "$basedir/node" ]; then
|
|
14
|
+
exec "$basedir/node" "$basedir/../../../../../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/bin/tsc" "$@"
|
|
15
|
+
else
|
|
16
|
+
exec node "$basedir/../../../../../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/bin/tsc" "$@"
|
|
17
|
+
fi
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
+
|
|
4
|
+
case `uname` in
|
|
5
|
+
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
|
|
6
|
+
esac
|
|
7
|
+
|
|
8
|
+
if [ -z "$NODE_PATH" ]; then
|
|
9
|
+
export NODE_PATH="/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/bin/node_modules:/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/node_modules:/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/typescript@5.5.2/node_modules:/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/node_modules"
|
|
10
|
+
else
|
|
11
|
+
export NODE_PATH="/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/bin/node_modules:/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/node_modules:/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/typescript@5.5.2/node_modules:/Users/chenjiahan/Project/rsbuild/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
12
|
+
fi
|
|
13
|
+
if [ -x "$basedir/node" ]; then
|
|
14
|
+
exec "$basedir/node" "$basedir/../../../../../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/bin/tsserver" "$@"
|
|
15
|
+
else
|
|
16
|
+
exec node "$basedir/../../../../../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/bin/tsserver" "$@"
|
|
17
|
+
fi
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "rsbuild-eslint-svelte-ts",
|
|
3
|
+
"private": true,
|
|
4
|
+
"version": "1.0.0",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"lint": "eslint ."
|
|
7
|
+
},
|
|
8
|
+
"devDependencies": {
|
|
9
|
+
"@eslint/js": "^9.9.1",
|
|
10
|
+
"eslint": "^9.9.1",
|
|
11
|
+
"eslint-plugin-svelte": "^2.43.0",
|
|
12
|
+
"globals": "^15.9.0",
|
|
13
|
+
"typescript-eslint": "^8.2.0"
|
|
14
|
+
},
|
|
15
|
+
"type": "module"
|
|
16
|
+
}
|