Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
// eslint.config.mjs
import js from "@eslint/js";
import globals from "globals";
import tseslint from "typescript-eslint";
import json from "@eslint/json";
import markdown from "@eslint/markdown";
import css from "@eslint/css";

export default [
js.configs.recommended,
{
files: ["**/*.{js,mjs,cjs,ts,tsx}"],
languageOptions: {
globals: {
...globals.browser,
...globals.node,
},
},
},
...tseslint.configs.recommended,
{
files: ["**/*.json"],
plugins: { json },
rules: { ...json.configs.recommended.rules }, // Spread the rules object
},
{
files: ["**/*.jsonc"],
plugins: { json },
rules: { ...json.configs.recommended.rules }, // Spread the rules object
},
{
files: ["**/*.json5"],
plugins: { json },
rules: { ...json.configs.recommended.rules }, // Spread the rules object
},
{
files: ["**/*.md"],
plugins: { markdown },
rules: { ...markdown.configs.recommended.rules }, // Spread the rules object
},
{
files: ["**/*.css"],
plugins: { css },
rules: { ...css.configs.recommended.rules }, // Spread the rules object
},
];
12 changes: 10 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
"scripts": {
"clean": "rimraf dist dist-electron",
"dev": "cross-env NODE_ENV=development npm run clean && concurrently \"tsc -w -p tsconfig.electron.json\" \"vite\" \"wait-on -t 30000 http://localhost:54321 && electron ./dist-electron/main.js\"",
"test": "echo \"No tests defined. Please contribute if you like\" && exit 0",
"lint": "npx eslint .",
"start": "cross-env NODE_ENV=development concurrently \"tsc -p tsconfig.electron.json\" \"vite\" \"wait-on -t 30000 http://localhost:54321 && electron ./dist-electron/main.js\"",
"build": "cross-env NODE_ENV=production rimraf dist dist-electron && vite build && tsc -p tsconfig.electron.json",
"run-prod": "cross-env NODE_ENV=production electron ./dist-electron/main.js",
Expand Down Expand Up @@ -151,6 +153,10 @@
},
"devDependencies": {
"@electron/typescript-definitions": "^8.14.0",
"@eslint/css": "^0.6.0",
"@eslint/js": "^9.24.0",
"@eslint/json": "^0.11.0",
"@eslint/markdown": "^6.3.0",
"@types/color": "^4.2.0",
"@types/diff": "^6.0.0",
"@types/electron-store": "^1.3.1",
Expand All @@ -169,9 +175,11 @@
"electron": "^29.1.4",
"electron-builder": "^24.13.3",
"electron-is-dev": "^3.0.1",
"eslint": "^8.57.0",
"eslint": "^8.57.1",
"eslint-flat-config-utils": "^2.0.1",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.4.6",
"globals": "^16.0.0",
"postcss": "^8.4.49",
"rimraf": "^6.0.1",
"tailwindcss": "^3.4.15",
Expand All @@ -193,4 +201,4 @@
"last 1 safari version"
]
}
}
}