-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.mjs
More file actions
34 lines (32 loc) · 920 Bytes
/
eslint.config.mjs
File metadata and controls
34 lines (32 loc) · 920 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
import { defineConfig } from "/opt/NodeJS/npm-global/lib/node_modules/eslint/lib/config-api.js";
import globals from '/opt/NodeJS/npm-global/lib/node_modules/globals/index.js';
import js from "/opt/NodeJS/npm-global/lib/node_modules/@eslint/js/src/index.js";
export default defineConfig([
{
files: ["**/*.mjs"],
plugins: {
js,
},
extends: ["js/recommended"],
rules: {
// The values are "error", "warn", and "off"
"semi": "warn",
"no-undef": "warn",
"no-fallthrough": "off",
"no-unused-vars": "off",
"no-unused-labels": "off",
"no-case-declarations": "off",
},
},
{
files: ["**/*.mjs"],
languageOptions: {
globals: {
...globals.browser,
}
}
},
{
ignores: ["lib/"]
},
]);