Skip to content

Commit 3f287e2

Browse files
committedNov 6, 2024·
fix(deps): update dependencies
1 parent f0e9809 commit 3f287e2

9 files changed

+166
-171
lines changed
 

‎eslint.config.mjs

+3-12
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import eslintPluginTestingLibrary from 'eslint-plugin-testing-library';
99
import eslintPluginJestDom from 'eslint-plugin-jest-dom';
1010
import eslintPluginJsxA11y from 'eslint-plugin-jsx-a11y';
1111
import eslintPluginVitest from '@vitest/eslint-plugin';
12-
// eslint-disable-next-line import/no-unresolved
1312
import tseslint from 'typescript-eslint';
1413

1514
export default tseslint.config(
@@ -30,21 +29,13 @@ export default tseslint.config(
3029
eslintPluginJestDom.configs['flat/recommended'],
3130
eslintPluginPlaywright.configs['flat/recommended'],
3231
eslintPluginPrettierRecommended,
32+
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
3333
eslintConfigPrettier,
3434
// https://eslint.org/docs/latest/use/configure/configuration-files#excluding-files-with-ignores
3535
// When in their own config block without files, it tells ESLint to ignore those files.
3636
// When in a config block with files, it stops that specific config block from affecting those ignored files.
3737
{
38-
ignores: [
39-
'!.*',
40-
'**/*.css',
41-
'dist',
42-
'node_modules',
43-
'test-e2e-report',
44-
'test-e2e-results',
45-
'test-unit-report',
46-
'eslint.config.mjs',
47-
],
38+
ignores: ['!.*', '**/*.css', 'dist', 'node_modules', 'test-e2e-report', 'test-e2e-results', 'test-unit-report'],
4839
},
4940
{
5041
languageOptions: {
@@ -56,7 +47,7 @@ export default tseslint.config(
5647
},
5748
settings: {
5849
'import/resolver': {
59-
typescript: { project: './tsconfigs/tsconfig.dev.json' },
50+
typescript: { project: './tsconfig.json' },
6051
},
6152
react: { version: 'detect' },
6253
},

‎package-lock.json

+142-141
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"lint": "eslint --report-unused-disable-directives --max-warnings 0 .",
2929
"lint-fix": "eslint --fix .",
3030
"lint-staged-husky": "lint-staged",
31-
"tsc": "tsc -p tsconfigs/tsconfig.dev.json",
31+
"tsc": "tsc -p scripts/tsconfig.dev.json",
3232
"format-lint": "prettier --config .prettierrc --check --ignore-unknown .",
3333
"format-fix": "prettier --config .prettierrc --write --ignore-unknown -l .",
3434
"commit": "git-cz",
@@ -38,7 +38,7 @@
3838
"test-e2e": "playwright test",
3939
"test-e2e-ui": "playwright test --ui",
4040
"test-e2e-report": "playwright show-report test-e2e-report",
41-
"storybook": "TS_NODE_PROJECT=tsconfigs/tsconfig.dev.json storybook dev -p 9009 --quiet",
41+
"storybook": "TS_NODE_PROJECT=scripts/tsconfig.dev.json storybook dev -p 9009 --quiet",
4242
"storybook-build": "storybook build -o build-storybook-static",
4343
"release": "semantic-release --branches main",
4444
"demozap": "demozap generate --prefix=_ && npm run format-fix && npm run lint-fix",
@@ -69,15 +69,15 @@
6969
"@vitest/eslint-plugin": "1.1.7",
7070
"@vitest/ui": "2.1.4",
7171
"commitizen": "4.3.1",
72-
"demozap": "1.3.72",
72+
"demozap": "1.3.74",
7373
"eslint": "9.14.0",
7474
"eslint-config-prettier": "9.1.0",
7575
"eslint-import-resolver-typescript": "3.6.3",
7676
"eslint-plugin-import": "2.31.0",
7777
"eslint-plugin-jest-dom": "5.4.0",
7878
"eslint-plugin-jsx-a11y": "6.10.2",
7979
"eslint-plugin-no-array-reduce": "1.0.62",
80-
"eslint-plugin-playwright": "2.0.0",
80+
"eslint-plugin-playwright": "2.0.1",
8181
"eslint-plugin-prettier": "5.2.1",
8282
"eslint-plugin-react": "7.37.2",
8383
"eslint-plugin-react-hooks": "5.0.0",
@@ -87,7 +87,7 @@
8787
"lint-staged": "15.2.10",
8888
"prettier": "3.3.3",
8989
"react": "18.3.1",
90-
"react-demo-tab": "1.3.18",
90+
"react-demo-tab": "1.3.19",
9191
"react-dom": "18.3.1",
9292
"react-joystick-component": "6.2.1",
9393
"rollup": "4.24.4",

‎scripts/rollupConfigs.ts

+5-4
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,13 @@ import { GlobalsOption, RollupOptions } from 'rollup';
55
import { dts } from 'rollup-plugin-dts';
66

77
import packageJson from '../package.json' with { type: 'json' };
8-
import tsConfig from '../tsconfigs/tsconfig.base.json' with { type: 'json' };
8+
9+
import tsConfig from './tsconfig.base.json' with { type: 'json' };
910

1011
const IS_PRODUCTION = process.env.NODE_ENV === 'production';
1112

1213
const PATH_INPUT_FILE = 'src/index.ts';
13-
const PATH_TSCONFIG = './tsconfigs/tsconfig.prod.json';
14+
const PATH_TSCONFIG_BUILD = 'scripts/tsconfig.build.json';
1415

1516
const GLOBALS = {
1617
react: 'React',
@@ -37,7 +38,7 @@ export const LEGACY_CONFIG = [
3738
plugins: [
3839
commonjs(),
3940
typescript({
40-
tsconfig: PATH_TSCONFIG,
41+
tsconfig: PATH_TSCONFIG_BUILD,
4142
sourceMap: !IS_PRODUCTION,
4243
}),
4344
terser({
@@ -85,7 +86,7 @@ export const MODERN_CONFIG = [
8586
plugins: [
8687
commonjs(),
8788
typescript({
88-
tsconfig: PATH_TSCONFIG,
89+
tsconfig: PATH_TSCONFIG_BUILD,
8990
sourceMap: !IS_PRODUCTION,
9091
}),
9192
terser({

‎tsconfigs/tsconfig.base.json ‎scripts/tsconfig.base.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"skipLibCheck": true,
2424
"esModuleInterop": true,
2525
"target": "ES6",
26-
"types": ["vitest/globals"]
27-
},
28-
"exclude": ["dist", "node_modules"]
26+
"types": ["vitest/globals"],
27+
"allowJs": true
28+
}
2929
}
File renamed without changes.

‎scripts/tsconfig.dev.json

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"extends": "./tsconfig.base.json",
3+
// Type check and lint all files and folders.
4+
// Explicitly include those starting with a dot (.) as they are ignored by default in glob patterns.
5+
"include": ["../.", "../.storybook/**/*", "../.commitlintrc.ts"],
6+
"exclude": ["dist", "node_modules"]
7+
}

‎tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"extends": "./tsconfigs/tsconfig.dev.json"
2+
"extends": "./scripts/tsconfig.dev.json"
33
}

‎tsconfigs/tsconfig.dev.json

-5
This file was deleted.

0 commit comments

Comments
 (0)