-
Notifications
You must be signed in to change notification settings - Fork 74
Expand file tree
/
Copy patheslint.config.js
More file actions
57 lines (53 loc) · 943 Bytes
/
eslint.config.js
File metadata and controls
57 lines (53 loc) · 943 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
import globals from "globals";
import js from "@eslint/js";
export default [
js.configs.recommended,
{
languageOptions: {
globals: {
...globals.node,
},
ecmaVersion: 2023,
sourceType: "module",
},
rules: {
"block-scoped-var": 1,
"keyword-spacing": 2,
"space-unary-ops": 2,
camelcase: 1,
"no-warning-comments": 1,
"no-debugger": 2,
"default-case": 1,
"no-unused-vars": 2,
"no-trailing-spaces": 2,
semi: [1, "always"],
quotes: [1, "double"],
"key-spacing": [
1,
{
beforeColon: false,
},
],
"comma-spacing": [
1,
{
before: false,
after: true,
},
],
"no-shadow": 2,
"no-irregular-whitespace": 2,
},
},
{
ignores: [
"eslint.config.js",
// Ignore node_files
"node_modules/",
// Ignore plugin generators (which are copies of the generators)
"plugin-generators/",
// Ignore test files
"test/",
],
},
];