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
|
const js = require("/usr/lib/node_modules/eslint/node_modules/@eslint/js/src/index.js");
const globals = require("/usr/lib/node_modules/eslint/node_modules/@eslint/eslintrc/node_modules/globals/index.js");
const parser = require("/usr/lib/node_modules/@babel/eslint-parser/lib/index.cjs");
module.exports = [
js.configs.recommended,
{
files: ["**/*.js"],
languageOptions: {
globals: globals.browser,
ecmaVersion: 2015,
parser: parser,
parserOptions: {
ecmaVersion: 2025,
sourceType: "module",
allowImportExportEverywhere: true,
requireConfigFile: false,
},
},
},
{
rules: {
indent: [
"error",
"tab",
{SwitchCase: 1},
],
"linebreak-style": [
"error",
"unix",
],
quotes: [
"error",
"double",
],
"quote-props": [
"error",
"always",
],
"semi": [
"error",
"always",
],
"comma-dangle": [
"error",
"always-multiline",
],
"no-unused-vars": [
"error",
{vars: "local", args: "after-used"},
],
},
},
];
|