generated from windingwind/zotero-plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 49
Expand file tree
/
Copy patheslint.config.mjs
More file actions
40 lines (38 loc) · 995 Bytes
/
eslint.config.mjs
File metadata and controls
40 lines (38 loc) · 995 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
34
35
36
37
38
39
40
// @ts-check Let TS check this config file
import zotero from "@zotero-plugin/eslint-config";
export default [
...zotero({
overrides: [
{
files: ["**/*.ts"],
rules: {
// We disable this rule here because the template
// contains some unused examples and variables
"@typescript-eslint/no-unused-vars": "off",
},
},
],
}),
// Disable linting for third-party bundled libraries and build scripts
{
files: [
"addon/lib/**/*.js",
"addon/content/**/*.js",
"scripts/**/*.mjs",
"scripts/**/*.ts",
],
rules: {
// Disable all rules for these files
"no-unused-vars": "off",
"no-undef": "off",
"no-empty": "off",
"no-control-regex": "off",
"no-prototype-builtins": "off",
"no-fallthrough": "off",
"no-constant-condition": "off",
"no-useless-escape": "off",
"no-cond-assign": "off",
"no-unreachable": "off",
},
},
];