-
-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy patheslint.config.js
More file actions
56 lines (54 loc) · 1.23 KB
/
Copy patheslint.config.js
File metadata and controls
56 lines (54 loc) · 1.23 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
44
45
46
47
48
49
50
51
52
53
54
55
56
import js from "@eslint/js";
import globals from "globals";
const browserGlobals = {
...globals.browser,
...globals.es2021,
ResizeObserver: "readonly",
SpeechRecognition: "readonly",
webkitSpeechRecognition: "readonly",
EmblaCarousel: "readonly",
};
export default [
{
ignores: [
"BACKUP/**",
"backups/**",
"mobile/**",
"vendor/**",
"_editor_research/**",
"dist/**",
"homeii-browser-card*.js",
"homeii-music-mobile*.js",
"homeii-music-flow-full-v*.js",
"homeii-music-flow-v*.js",
"homeii-music-flow-clean.js",
"homeii-music-flow.js",
],
},
js.configs.recommended,
{
files: ["src/**/*.js"],
languageOptions: {
ecmaVersion: "latest",
sourceType: "module",
globals: browserGlobals,
},
rules: {
"no-empty": ["error", { allowEmptyCatch: true }],
"no-unused-vars": ["warn", { args: "none", caughtErrors: "none", ignoreRestSiblings: true }],
},
},
{
files: ["scripts/**/*.mjs", "*.config.js", "tests/**/*.js"],
languageOptions: {
ecmaVersion: "latest",
sourceType: "module",
globals: {
...globals.node,
},
},
rules: {
"no-console": "off",
},
},
];