Skip to content

Commit d812e11

Browse files
chore(deps-dev): bump eslint-plugin-react-refresh from 0.4.26 to 0.5.2 (#5)
* chore(deps-dev): bump eslint-plugin-react-refresh from 0.4.26 to 0.5.2 Bumps [eslint-plugin-react-refresh](https://github.com/ArnaudBarre/eslint-plugin-react-refresh) from 0.4.26 to 0.5.2. - [Release notes](https://github.com/ArnaudBarre/eslint-plugin-react-refresh/releases) - [Changelog](https://github.com/ArnaudBarre/eslint-plugin-react-refresh/blob/main/CHANGELOG.md) - [Commits](ArnaudBarre/eslint-plugin-react-refresh@v0.4.26...v0.5.2) --- updated-dependencies: - dependency-name: eslint-plugin-react-refresh dependency-version: 0.5.2 dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Migrate lint config for react refresh update --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Ruben Glez. <ruben.daren@gmail.com>
1 parent 574f108 commit d812e11

5 files changed

Lines changed: 276 additions & 271 deletions

File tree

.eslintrc.cjs

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

eslint.config.js

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
import js from "@eslint/js";
2+
import tsPlugin from "@typescript-eslint/eslint-plugin";
3+
import tsParser from "@typescript-eslint/parser";
4+
import reactHooks from "eslint-plugin-react-hooks";
5+
import { reactRefresh } from "eslint-plugin-react-refresh";
6+
import globals from "globals";
7+
8+
export default [
9+
{
10+
ignores: [
11+
"build/**",
12+
"dist/**",
13+
"dist-electron/**",
14+
"node_modules/**",
15+
"release/**",
16+
],
17+
},
18+
js.configs.recommended,
19+
{
20+
languageOptions: {
21+
globals: {
22+
...globals.browser,
23+
...globals.es2020,
24+
...globals.node,
25+
},
26+
},
27+
},
28+
{
29+
files: ["**/*.{ts,tsx}"],
30+
languageOptions: {
31+
parser: tsParser,
32+
parserOptions: {
33+
ecmaFeatures: { jsx: true },
34+
ecmaVersion: "latest",
35+
sourceType: "module",
36+
},
37+
globals: {
38+
...globals.browser,
39+
...globals.es2020,
40+
...globals.node,
41+
},
42+
},
43+
plugins: {
44+
"@typescript-eslint": tsPlugin,
45+
"react-hooks": reactHooks,
46+
},
47+
rules: {
48+
...tsPlugin.configs.recommended.rules,
49+
"no-undef": "off",
50+
"react-hooks/exhaustive-deps": "warn",
51+
"react-hooks/rules-of-hooks": "error",
52+
},
53+
},
54+
reactRefresh.configs.vite(),
55+
];

package.json

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
"release": "tsc && vite build && electron-builder --publish always",
2020
"postinstall": "electron-rebuild -f -w better-sqlite3",
2121
"preview": "vite preview",
22-
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
23-
"lint:fix": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0 --fix",
22+
"lint": "eslint . --report-unused-disable-directives --max-warnings 0",
23+
"lint:fix": "eslint . --report-unused-disable-directives --max-warnings 0 --fix",
2424
"tsc": "tsc --noEmit",
2525
"prettier:fix": "prettier --write ./src",
2626
"prettier:check": "prettier --check ./src",
@@ -50,15 +50,17 @@
5050
"@types/fluent-ffmpeg": "^2.1.24",
5151
"@types/react": "^19.2.14",
5252
"@types/react-dom": "^19.2.3",
53+
"@eslint/js": "^10.0.1",
5354
"@typescript-eslint/eslint-plugin": "^8.59.4",
5455
"@typescript-eslint/parser": "^8.59.4",
5556
"@vitejs/plugin-react": "^4.0.4",
5657
"autoprefixer": "^10.4.16",
5758
"electron": "41.6.1",
5859
"electron-builder": "^26.8.1",
59-
"eslint": "^8.56.0",
60-
"eslint-plugin-react-hooks": "^4.6.0",
61-
"eslint-plugin-react-refresh": "^0.4.5",
60+
"eslint": "^10.4.0",
61+
"eslint-plugin-react-hooks": "^7.0.1",
62+
"eslint-plugin-react-refresh": "^0.5.2",
63+
"globals": "^17.6.0",
6264
"postcss": "^8.4.31",
6365
"prettier": "^3.2.2",
6466
"react": "^19.2.6",

0 commit comments

Comments
 (0)