Skip to content

Commit fc418a7

Browse files
committed
feat: update packages
1 parent cf97fb0 commit fc418a7

7 files changed

Lines changed: 479 additions & 834 deletions

File tree

Lines changed: 14 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,45 @@
11
import eslint from '@eslint/js';
22
import configPrettier from 'eslint-config-prettier';
33
import pluginPrettierRecommended from 'eslint-plugin-prettier/recommended';
4-
import pluginReact from 'eslint-plugin-react';
5-
import reactPlugin from 'eslint-plugin-react-hooks';
4+
import reactPlugin from 'eslint-plugin-react';
5+
import reactHooks from 'eslint-plugin-react-hooks';
6+
import { defineConfig } from 'eslint/config';
67
import tseslint from 'typescript-eslint';
78

8-
export default tseslint.config(
9+
export default defineConfig(
910
eslint.configs.recommended,
1011
tseslint.configs.strictTypeChecked,
1112
tseslint.configs.stylisticTypeChecked,
1213

1314
{
14-
ignores: ['dist/**/*', 'eslint.config.mjs', 'prettier.config.js', 'tailwind.config.js', 'vite.config.mjs'],
15+
ignores: ['dist/**/*', 'tailwind.config.js'],
1516
},
17+
18+
// configuration for rules that require type information
1619
{
1720
languageOptions: {
18-
...pluginReact.configs.flat.recommended.languageOptions,
21+
...reactPlugin.configs.flat.recommended.languageOptions,
1922
parserOptions: {
2023
projectService: true,
21-
tsconfigRootDir: import.meta.dirname,
2224
},
2325
},
2426
},
2527

2628
// eslint-rules
2729
{
2830
rules: {
29-
'linebreak-style': ['error', 'unix'],
30-
'no-unused-vars': 'off',
31+
'no-unused-vars': 'off', // Note: you must disable the base rule as it can report incorrect errors
3132
'no-warning-comments': 'warn',
3233
eqeqeq: 'error',
33-
indent: ['error', 2, { SwitchCase: 1 }],
34-
quotes: ['error', 'single'],
35-
semi: ['error', 'always'],
3634
},
3735
},
3836

3937
// typescript-eslint rules
4038
{
4139
rules: {
40+
'@typescript-eslint/consistent-type-definitions': 'off',
4241
'@typescript-eslint/explicit-member-accessibility': ['error', { accessibility: 'explicit' }],
43-
'@typescript-eslint/interface-name-prefix': 'off',
44-
'@typescript-eslint/no-floating-promises': 'error',
45-
'@typescript-eslint/no-parameter-properties': ['off'],
46-
'@typescript-eslint/no-require-imports': 'warn',
42+
'@typescript-eslint/no-shadow': 'error',
4743
'@typescript-eslint/no-unused-vars': [
4844
'warn',
4945
{
@@ -61,12 +57,10 @@ export default tseslint.config(
6157
},
6258

6359
// plugin-react and plugin-react-hooks
64-
pluginReact.configs.flat.recommended,
60+
reactPlugin.configs.flat.recommended,
61+
reactPlugin.configs.flat['jsx-runtime'],
62+
reactHooks.configs.flat.recommended,
6563
{
66-
plugins: {
67-
react: pluginReact,
68-
'react-hooks': reactPlugin,
69-
},
7064
rules: {
7165
'react/self-closing-comp': ['error', { component: true, html: true }],
7266
'react-hooks/rules-of-hooks': 'error',

package.json

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,34 +19,35 @@
1919
},
2020
"keywords": [],
2121
"author": "",
22-
"license": "ISC",
22+
"license": "MIT",
23+
"type": "module",
2324
"bugs": {
2425
"url": "https://github.com/hsimpson/webgpu-particles/issues"
2526
},
2627
"homepage": "https://github.com/hsimpson/webgpu-particles#readme",
2728
"devDependencies": {
28-
"@eslint/js": "^9.34.0",
29-
"@tailwindcss/vite": "^4.2.1",
30-
"@types/node": "^25.3.3",
29+
"@eslint/js": "^9.39.4",
30+
"@tailwindcss/vite": "^4.2.2",
31+
"@types/node": "^25.5.0",
3132
"@types/react": "^19.2.14",
3233
"@types/react-color": "^3.0.13",
3334
"@types/react-dom": "^19.2.3",
34-
"@vitejs/plugin-react": "^5.1.4",
35+
"@vitejs/plugin-react": "^6.0.1",
3536
"@webgpu/types": "^0.1.69",
36-
"eslint": "^9.34.0",
37+
"eslint": "^9.39.4",
3738
"eslint-config-prettier": "^10.1.8",
3839
"eslint-plugin-prettier": "^5.5.5",
3940
"eslint-plugin-react": "^7.37.5",
4041
"eslint-plugin-react-hooks": "^7.0.1",
4142
"prettier": "^3.8.1",
4243
"prettier-plugin-tailwindcss": "^0.7.2",
43-
"tailwindcss": "^4.2.1",
44+
"tailwindcss": "^4.2.2",
4445
"typescript": "^5.9.3",
45-
"typescript-eslint": "^8.56.1",
46-
"vite": "^7.3.1"
46+
"typescript-eslint": "^8.57.1",
47+
"vite": "^8.0.1"
4748
},
4849
"dependencies": {
49-
"jotai": "^2.18.0",
50+
"jotai": "^2.18.1",
5051
"react": "^19.2.4",
5152
"react-color": "^2.19.3",
5253
"react-dom": "^19.2.4",
Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
module.exports = {
1+
import { type Config } from 'prettier';
2+
3+
const config: Config = {
24
arrowParens: 'always',
35
bracketSameLine: true,
46
bracketSpacing: true,
@@ -18,5 +20,6 @@ module.exports = {
1820

1921
plugins: ['prettier-plugin-tailwindcss'],
2022
tailwindStylesheet: './src/index.css',
21-
tailwindConfig: './tailwind.config.js',
2223
};
24+
25+
export default config;

tailwind.config.js

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

tsconfig.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
"forceConsistentCasingInFileNames": true,
66
"isolatedModules": true,
77
"jsx": "react",
8-
"lib": ["DOM", "ES2022"],
9-
"module": "CommonJS",
10-
"moduleResolution": "node",
8+
"lib": ["DOM", "ESNext"],
9+
"module": "esnext",
10+
"moduleResolution": "bundler",
1111
"resolveJsonModule": true,
1212
"skipLibCheck": true,
1313
"sourceMap": true,
1414
"strict": true,
15-
"target": "ES2022",
15+
"target": "ES2024",
1616
"typeRoots": ["./src/@types", "./node_modules/@webgpu/types", "node_modules/@types"]
1717
}
1818
}
File renamed without changes.

0 commit comments

Comments
 (0)