Skip to content

Commit 7b087f1

Browse files
committed
chore(create-monorepo): update playground
1 parent 71616ee commit 7b087f1

File tree

15 files changed

+255
-180
lines changed

15 files changed

+255
-180
lines changed

packages/create-monorepo/playground/monorepo-test/.eslintignore

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

packages/create-monorepo/playground/monorepo-test/.eslintrc.js

Lines changed: 0 additions & 44 deletions
This file was deleted.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
node_modules
22
dist
3+
.eslintcache
4+
.env*
35
*.log*
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
// ts-check
2+
3+
import eslint from '@eslint/js'
4+
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended'
5+
import globals from 'globals'
6+
import tseslint from 'typescript-eslint'
7+
8+
export default tseslint.config(
9+
{ ignores: ['**/node_modules', '**/dist'] },
10+
eslint.configs.recommended,
11+
tseslint.configs.recommended,
12+
eslintPluginPrettierRecommended,
13+
{
14+
languageOptions: {
15+
parser: tseslint.parser,
16+
parserOptions: {
17+
sourceType: 'module',
18+
ecmaVersion: 2022
19+
},
20+
globals: {
21+
...globals.browser,
22+
...globals.node
23+
}
24+
},
25+
rules: {
26+
'prettier/prettier': 'warn',
27+
'@typescript-eslint/ban-ts-comment': [
28+
'error',
29+
{ 'ts-ignore': 'allow-with-description' }
30+
],
31+
'@typescript-eslint/explicit-function-return-type': [
32+
'error',
33+
{
34+
allowExpressions: true,
35+
allowTypedFunctionExpressions: true,
36+
allowHigherOrderFunctions: true,
37+
allowIIFEs: true
38+
}
39+
],
40+
'@typescript-eslint/explicit-module-boundary-types': 'off',
41+
'@typescript-eslint/no-empty-function': [
42+
'error',
43+
{ allow: ['arrowFunctions'] }
44+
],
45+
'@typescript-eslint/no-empty-object-type': [
46+
'error',
47+
{ allowInterfaces: 'always' }
48+
],
49+
'@typescript-eslint/no-explicit-any': 'error',
50+
'@typescript-eslint/no-non-null-assertion': 'off',
51+
'@typescript-eslint/no-require-imports': 'error',
52+
'@typescript-eslint/no-unused-expressions': [
53+
'error',
54+
{
55+
allowShortCircuit: true,
56+
allowTaggedTemplates: true,
57+
allowTernary: true
58+
}
59+
]
60+
}
61+
},
62+
{
63+
files: ['*.js', '*.mjs'],
64+
rules: {
65+
'@typescript-eslint/explicit-function-return-type': 'off'
66+
}
67+
}
68+
)

packages/create-monorepo/playground/monorepo-test/package.json

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,21 @@
1212
"test:foo": "pnpm run -C packages/foo test"
1313
},
1414
"devDependencies": {
15-
"@rollup/plugin-commonjs": "^26.0.1",
16-
"@rollup/plugin-node-resolve": "^15.2.3",
17-
"@rollup/plugin-typescript": "^11.1.6",
18-
"@types/node": "^18.19.39",
19-
"@typescript-eslint/eslint-plugin": "^7.14.1",
20-
"@typescript-eslint/parser": "^7.14.1",
21-
"eslint": "^8.57.0",
22-
"eslint-config-prettier": "^9.1.0",
23-
"eslint-plugin-prettier": "^5.1.3",
24-
"prettier": "^3.3.2",
25-
"rollup": "^4.18.0",
26-
"rollup-plugin-dts": "^6.1.1",
15+
"@eslint/js": "^9.24.0",
16+
"@rollup/plugin-commonjs": "^28.0.3",
17+
"@rollup/plugin-node-resolve": "^16.0.1",
18+
"@rollup/plugin-typescript": "^12.1.2",
19+
"@types/node": "^22.14.1",
20+
"eslint": "^9.24.0",
21+
"eslint-config-prettier": "^10.1.2",
22+
"eslint-plugin-prettier": "^5.2.6",
23+
"globals": "^16.0.0",
24+
"prettier": "^3.5.3",
25+
"rollup": "^4.40.0",
26+
"rollup-plugin-dts": "^6.2.1",
2727
"rollup-plugin-rm": "^1.0.2",
28-
"typescript": "^5.5.2",
29-
"vitest": "^1.6.0"
28+
"typescript": "^5.8.3",
29+
"typescript-eslint": "^8.29.1",
30+
"vitest": "^3.1.1"
3031
}
3132
}

packages/create-monorepo/playground/monorepo-tsx/.eslintignore

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

packages/create-monorepo/playground/monorepo-tsx/.eslintrc.js

Lines changed: 0 additions & 44 deletions
This file was deleted.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
node_modules
22
dist
3+
.eslintcache
4+
.env*
35
*.log*
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
// ts-check
2+
3+
import eslint from '@eslint/js'
4+
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended'
5+
import globals from 'globals'
6+
import tseslint from 'typescript-eslint'
7+
8+
export default tseslint.config(
9+
{ ignores: ['**/node_modules', '**/dist'] },
10+
eslint.configs.recommended,
11+
tseslint.configs.recommended,
12+
eslintPluginPrettierRecommended,
13+
{
14+
languageOptions: {
15+
parser: tseslint.parser,
16+
parserOptions: {
17+
sourceType: 'module',
18+
ecmaVersion: 2022
19+
},
20+
globals: {
21+
...globals.browser,
22+
...globals.node
23+
}
24+
},
25+
rules: {
26+
'prettier/prettier': 'warn',
27+
'@typescript-eslint/ban-ts-comment': [
28+
'error',
29+
{ 'ts-ignore': 'allow-with-description' }
30+
],
31+
'@typescript-eslint/explicit-function-return-type': [
32+
'error',
33+
{
34+
allowExpressions: true,
35+
allowTypedFunctionExpressions: true,
36+
allowHigherOrderFunctions: true,
37+
allowIIFEs: true
38+
}
39+
],
40+
'@typescript-eslint/explicit-module-boundary-types': 'off',
41+
'@typescript-eslint/no-empty-function': [
42+
'error',
43+
{ allow: ['arrowFunctions'] }
44+
],
45+
'@typescript-eslint/no-empty-object-type': [
46+
'error',
47+
{ allowInterfaces: 'always' }
48+
],
49+
'@typescript-eslint/no-explicit-any': 'error',
50+
'@typescript-eslint/no-non-null-assertion': 'off',
51+
'@typescript-eslint/no-require-imports': 'error',
52+
'@typescript-eslint/no-unused-expressions': [
53+
'error',
54+
{
55+
allowShortCircuit: true,
56+
allowTaggedTemplates: true,
57+
allowTernary: true
58+
}
59+
]
60+
}
61+
},
62+
{
63+
files: ['*.js', '*.mjs'],
64+
rules: {
65+
'@typescript-eslint/explicit-function-return-type': 'off'
66+
}
67+
}
68+
)

packages/create-monorepo/playground/monorepo-tsx/package.json

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,22 @@
1212
"build:foo": "pnpm run -C packages/foo build"
1313
},
1414
"devDependencies": {
15-
"@rollup/plugin-commonjs": "^26.0.1",
16-
"@rollup/plugin-node-resolve": "^15.2.3",
17-
"@rollup/plugin-typescript": "^11.1.6",
18-
"@types/node": "^18.19.39",
19-
"@typescript-eslint/eslint-plugin": "^7.14.1",
20-
"@typescript-eslint/parser": "^7.14.1",
21-
"dotenv": "^16.4.5",
22-
"eslint": "^8.57.0",
23-
"eslint-config-prettier": "^9.1.0",
24-
"eslint-plugin-prettier": "^5.1.3",
25-
"esno": "^4.7.0",
26-
"prettier": "^3.3.2",
27-
"rollup": "^4.18.0",
28-
"rollup-plugin-dts": "^6.1.1",
15+
"@eslint/js": "^9.24.0",
16+
"@rollup/plugin-commonjs": "^28.0.3",
17+
"@rollup/plugin-node-resolve": "^16.0.1",
18+
"@rollup/plugin-typescript": "^12.1.2",
19+
"@types/node": "^22.14.1",
20+
"dotenv": "^16.5.0",
21+
"eslint": "^9.24.0",
22+
"eslint-config-prettier": "^10.1.2",
23+
"eslint-plugin-prettier": "^5.2.6",
24+
"esno": "^4.8.0",
25+
"globals": "^16.0.0",
26+
"prettier": "^3.5.3",
27+
"rollup": "^4.40.0",
28+
"rollup-plugin-dts": "^6.2.1",
2929
"rollup-plugin-rm": "^1.0.2",
30-
"typescript": "^5.5.2"
30+
"typescript": "^5.8.3",
31+
"typescript-eslint": "^8.29.1"
3132
}
3233
}

0 commit comments

Comments
 (0)