-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy patheslint.config.js
More file actions
45 lines (44 loc) · 1.09 KB
/
Copy patheslint.config.js
File metadata and controls
45 lines (44 loc) · 1.09 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
const js = require("@eslint/js");
const globals = require("globals");
module.exports = [
{
ignores: [
"dist/**",
"node_modules/**",
"src/dist/**",
"src-tauri/target/**",
"src-tauri/gen/**",
"*.min.js",
"build/**",
"src/**", // src has its own config
],
},
// Main process files (CommonJS)
{
files: ["**/*.js"],
languageOptions: {
ecmaVersion: 2022,
sourceType: "commonjs",
globals: {
...globals.node,
...globals.commonjs,
},
},
rules: {
...js.configs.recommended.rules,
// Relaxed rules - catch syntax errors but don't be too strict
"no-unused-vars": [
"warn",
{ varsIgnorePattern: "^_", argsIgnorePattern: "^_|^event|^err|^error" },
],
"no-console": "off",
"no-empty": ["error", { allowEmptyCatch: true }],
"no-constant-condition": ["error", { checkLoops: false }],
"no-control-regex": "off",
"no-useless-catch": "off",
"no-async-promise-executor": "off",
"prefer-const": "off",
"no-var": "off",
},
},
];