-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.mjs
More file actions
43 lines (42 loc) · 1 KB
/
Copy patheslint.config.mjs
File metadata and controls
43 lines (42 loc) · 1 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
import config from "eslint-config-xo";
import { defineConfig } from "eslint/config";
export default defineConfig([
{
ignores: ["package-lock.json", "ext_script.js"],
},
config,
{
languageOptions: {
globals: {
github: "readonly",
context: "readonly",
core: "readonly",
glob: "readonly",
io: "readonly",
exec: "readonly",
require: "readonly",
},
parserOptions: {
ecmaVersion: "latest",
sourceType: "module",
},
},
rules: {
"@stylistic/eol-last": "off",
"@stylistic/indent": "off",
"@stylistic/indent-binary-ops": "off",
"@stylistic/object-curly-spacing": "off",
"@stylistic/quotes": "off",
camelcase: [
"warn",
{ allow: ["issue_number"] },
],
"no-new-func": "off",
"object-shorthand": "off",
"no-unused-vars": [
"warn",
{ varsIgnorePattern: "^(github|context|core|glob|io|exec|require)$" },
],
},
},
]);