@baseplate-dev/tools 0.4.4 → 0.5.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/eslint-configs/react.js
CHANGED
|
@@ -65,8 +65,6 @@ export const reactEslintConfig = tsEslint.config(
|
|
|
65
65
|
// Unicorn
|
|
66
66
|
{
|
|
67
67
|
rules: {
|
|
68
|
-
// We use replace since it is not supported by ES2020
|
|
69
|
-
'unicorn/prefer-string-replace-all': 'off',
|
|
70
68
|
// Support kebab case with - prefix to support ignored files in routes and $ prefix for Tanstack camelCase files
|
|
71
69
|
'unicorn/filename-case': [
|
|
72
70
|
'error',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@baseplate-dev/tools",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "Shared dev configurations for linting, formatting, and testing Baseplate projects",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"development-tools",
|
|
@@ -27,7 +27,6 @@
|
|
|
27
27
|
"./eslint-configs/prettier": "./eslint-configs/prettier.js",
|
|
28
28
|
"./eslint-configs/react": "./eslint-configs/react.js",
|
|
29
29
|
"./eslint-configs/storybook": "./eslint-configs/storybook.js",
|
|
30
|
-
"./eslint-configs/tailwind": "./eslint-configs/tailwind.js",
|
|
31
30
|
"./eslint-node": "./eslint.config.node.js",
|
|
32
31
|
"./eslint-react": "./eslint.config.react.js",
|
|
33
32
|
"./prettier-node": "./prettier.config.node.js",
|
|
@@ -51,8 +50,8 @@
|
|
|
51
50
|
],
|
|
52
51
|
"dependencies": {
|
|
53
52
|
"@eslint/js": "9.32.0",
|
|
54
|
-
"@tsconfig/node22": "22.0.
|
|
55
|
-
"@tsconfig/vite-react": "7.0.
|
|
53
|
+
"@tsconfig/node22": "22.0.5",
|
|
54
|
+
"@tsconfig/vite-react": "7.0.2",
|
|
56
55
|
"@vitest/eslint-plugin": "1.3.4",
|
|
57
56
|
"eslint-config-prettier": "10.1.8",
|
|
58
57
|
"eslint-import-resolver-typescript": "4.4.4",
|
|
@@ -80,7 +79,7 @@
|
|
|
80
79
|
"eslint": "9.32.0",
|
|
81
80
|
"react": "19.1.0",
|
|
82
81
|
"typescript": "5.8.3",
|
|
83
|
-
"vitest": "
|
|
82
|
+
"vitest": "4.0.16"
|
|
84
83
|
},
|
|
85
84
|
"engines": {
|
|
86
85
|
"node": "^22.0.0"
|
package/tsconfig.vite.base.json
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/tsconfig",
|
|
3
3
|
"display": "Vite React Base Config",
|
|
4
|
-
"extends": "@tsconfig/vite-react/tsconfig.json"
|
|
4
|
+
"extends": "@tsconfig/vite-react/tsconfig.json",
|
|
5
|
+
"compilerOptions": {
|
|
6
|
+
"lib": ["ES2023", "DOM", "DOM.Iterable"]
|
|
7
|
+
}
|
|
5
8
|
}
|
package/vitest.config.node.js
CHANGED
|
@@ -8,7 +8,7 @@ import { srcSubpathImportPlugin } from './src-subpath-import-plugin.js';
|
|
|
8
8
|
* Create a vitest config for a Node.js project
|
|
9
9
|
*
|
|
10
10
|
* @param {string} dirname - The directory name of the project
|
|
11
|
-
* @returns {import('vitest/config').
|
|
11
|
+
* @returns {import('vitest/config').ViteUserConfig} - The vitest config
|
|
12
12
|
*/
|
|
13
13
|
export function createNodeVitestConfig(dirname) {
|
|
14
14
|
return defineConfig({
|
|
@@ -21,11 +21,8 @@ export function createNodeVitestConfig(dirname) {
|
|
|
21
21
|
},
|
|
22
22
|
},
|
|
23
23
|
mockReset: true,
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
'**/e2e/**',
|
|
27
|
-
'**/generators/*/*/templates/**',
|
|
28
|
-
],
|
|
24
|
+
dir: 'src',
|
|
25
|
+
exclude: [...defaultExclude, '**/generators/*/*/templates/**'],
|
|
29
26
|
},
|
|
30
27
|
});
|
|
31
28
|
}
|
package/vitest.config.react.js
CHANGED
|
@@ -22,7 +22,7 @@ afterEach(() => {
|
|
|
22
22
|
* Create a vitest config for a React project
|
|
23
23
|
*
|
|
24
24
|
* @param {string} dirname - The directory name of the project
|
|
25
|
-
* @returns {import('vitest/config').
|
|
25
|
+
* @returns {import('vitest/config').ViteUserConfig} - The vitest config
|
|
26
26
|
*/
|
|
27
27
|
export function createReactVitestConfig(dirname) {
|
|
28
28
|
return defineConfig({
|