-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.js
More file actions
33 lines (30 loc) · 1022 Bytes
/
eslint.config.js
File metadata and controls
33 lines (30 loc) · 1022 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import globals from "globals";
import pluginJs from "@eslint/js";
import prettierConfig from "eslint-config-prettier";
/**
* ESLint v9 "Flat Config".
* This file is the single source of truth for all linting rules.
* @see https://eslint.org/docs/latest/use/configure/configuration-files
*/
export default [
// 1. Provides ESLint's recommended default rules.
pluginJs.configs.recommended,
// 2. Disables any ESLint styling rules that would conflict with Prettier.
// This must be the last "extends" in the configuration.
prettierConfig,
// 3. Custom configuration for this specific project.
{
languageOptions: {
ecmaVersion: "latest",
sourceType: "module",
globals: {
...globals.browser, // Standard browser globals (for preload scripts)
...globals.node, // Standard Node.js globals (for main.js)
},
},
rules: {
// Reduces noise from unused 'event' parameters in IPC handlers.
"no-unused-vars": ["warn", { args: "none" }],
},
},
];