-
Notifications
You must be signed in to change notification settings - Fork 0
/
oxlint.patch
112 lines (110 loc) · 4.46 KB
/
oxlint.patch
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
diff --git a/.eslintignore b/.eslintignore
new file mode 100644
index 0000000..ecb420a
--- /dev/null
+++ b/.eslintignore
@@ -0,0 +1 @@
+front-and-old
diff --git a/package.json b/package.json
index e353a2f..0b8a094 100644
--- a/package.json
+++ b/package.json
@@ -3,7 +3,8 @@
"scripts": {
"build": "tsc && tsc-alias",
"start": "node -r dotenv/config ./dist/server.js",
- "dev": "yarn build && yarn start"
+ "dev": "yarn build && yarn start",
+ "lint": "oxlint -D all"
},
"engines": {
"node": "20"
@@ -22,8 +23,8 @@
"node-telegram-bot-api": "0",
"simple-node-logger": "21",
"sqlite3": "5",
- "yeelight-platform": "1",
- "typescript": "5"
+ "typescript": "5",
+ "yeelight-platform": "1"
},
"devDependencies": {
"@types/chai": "4",
@@ -40,6 +41,7 @@
"@types/sqlite3": "3",
"chai": "5",
"mocha": "10",
+ "oxlint": "^0.3.1",
"sinon": "17",
"tsc-alias": "1",
"why-is-node-running": "2"
diff --git a/yarn.lock b/yarn.lock
index 33c45ae..7770168 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -175,6 +175,46 @@
mkdirp "^1.0.4"
rimraf "^3.0.2"
+"@oxlint/[email protected]":
+ version "0.3.1"
+ resolved "https://registry.yarnpkg.com/@oxlint/darwin-arm64/-/darwin-arm64-0.3.1.tgz#343485988cfcaae622f281b57dde24a5f81f4929"
+ integrity sha512-Us0pinFVI72zMaz48BlApBzASRZAyIU0YCl3frbZ6PiMLu4oen/mvAloZMZ0X9rFCQQDBVCf2k8kkdIfUBrd1A==
+
+"@oxlint/[email protected]":
+ version "0.3.1"
+ resolved "https://registry.yarnpkg.com/@oxlint/darwin-x64/-/darwin-x64-0.3.1.tgz#a827e1ee38b94830c7c94abb505582a83db6f19e"
+ integrity sha512-Na+9F7+UYrIhlTX8wblG/dl1G5BNWtpv2Lyp5Hj7ynaghkUXdCP+riT9xpmGYjUXCiMU1fbY08RQQLupgL7URA==
+
+"@oxlint/[email protected]":
+ version "0.3.1"
+ resolved "https://registry.yarnpkg.com/@oxlint/linux-arm64-gnu/-/linux-arm64-gnu-0.3.1.tgz#f3ee082205806222d8a530fbcff5854a24ff186f"
+ integrity sha512-0bsZ0RkuHbzAjj7Am5ePkGmPZjtVhFkbYXw5HkJIBAscWTAR2m3+QxjzBQhEyEbLvkJSig7PFGDwLIwW7+MptQ==
+
+"@oxlint/[email protected]":
+ version "0.3.1"
+ resolved "https://registry.yarnpkg.com/@oxlint/linux-arm64-musl/-/linux-arm64-musl-0.3.1.tgz#67910b19be34a251c9d64ce5a9838bd97cfbbeeb"
+ integrity sha512-d7thD4X15XqQqNCLOVVAq9SJF2unalLGn3oEu760AeonExvFJCJf274GIE2ODKGuLX8V/1rKGt6Kv3rpbRFQcw==
+
+"@oxlint/[email protected]":
+ version "0.3.1"
+ resolved "https://registry.yarnpkg.com/@oxlint/linux-x64-gnu/-/linux-x64-gnu-0.3.1.tgz#86e444c5fb7df064a821ab94cc254832f2c90bf2"
+ integrity sha512-5stWYdso6PaDrbENlrxdjUeyQlOjzCgScBFL+91fdFBCXZFu9diDIsHf88/efO3HQej5xZopUF0kr51GBTXVVQ==
+
+"@oxlint/[email protected]":
+ version "0.3.1"
+ resolved "https://registry.yarnpkg.com/@oxlint/linux-x64-musl/-/linux-x64-musl-0.3.1.tgz#f049318d2336272ffb843e48dd33e01329b3dcdb"
+ integrity sha512-4Z0/iPUnhWFrc3kV7ADiSzx8Bq8hPQonhvtsEvgXS/2LXaS8hCXSSpTybVC+Wa9AhEF0J2/KMyFM2VhxjKJqDg==
+
+"@oxlint/[email protected]":
+ version "0.3.1"
+ resolved "https://registry.yarnpkg.com/@oxlint/win32-arm64/-/win32-arm64-0.3.1.tgz#df6133c08b5fb5f9341900cd8db76b7cfab46e5f"
+ integrity sha512-wT5y+7ob9kd1TpVLSfhq5EIZEwE6N1OYV+KzL/ywEgLg/sB6tXjUoC03/MEkF10Xj+v7HKLBonnXIX3S//Pfqw==
+
+"@oxlint/[email protected]":
+ version "0.3.1"
+ resolved "https://registry.yarnpkg.com/@oxlint/win32-x64/-/win32-x64-0.3.1.tgz#33f36d75ac88784d061ac452c03aa1a1b33e5bb3"
+ integrity sha512-dJWU8YqYPARYTjpjQ4tuzqtpumuCCwSggxkja9N7whqGBCH1IswEyt5JQIbynI+vERxugz3iJtWk59kSHojHgg==
+
"@sinonjs/commons@^2.0.0":
version "2.0.0"
resolved "https://registry.yarnpkg.com/@sinonjs/commons/-/commons-2.0.0.tgz#fd4ca5b063554307e8327b4564bd56d3b73924a3"
@@ -2560,6 +2600,20 @@ once@^1.3.0, once@^1.3.1, once@^1.4.0:
dependencies:
wrappy "1"
+oxlint@^0.3.1:
+ version "0.3.1"
+ resolved "https://registry.yarnpkg.com/oxlint/-/oxlint-0.3.1.tgz#9ebcb155cdd1c8df693240c72f13a69629bbd8b2"
+ integrity sha512-+bj07l2R2V0xNogo+Wr9+IsdlkBa2i7brOioOyzV6I8kwMBEEuJmt7oOmZYs/HZVAOQI19x7aBGKqw71itaNSA==
+ optionalDependencies:
+ "@oxlint/darwin-arm64" "0.3.1"
+ "@oxlint/darwin-x64" "0.3.1"
+ "@oxlint/linux-arm64-gnu" "0.3.1"
+ "@oxlint/linux-arm64-musl" "0.3.1"
+ "@oxlint/linux-x64-gnu" "0.3.1"
+ "@oxlint/linux-x64-musl" "0.3.1"
+ "@oxlint/win32-arm64" "0.3.1"
+ "@oxlint/win32-x64" "0.3.1"
+
p-limit@^3.0.2:
version "3.1.0"
resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-3.1.0.tgz#e1daccbe78d0d1388ca18c64fea38e3e57e3706b"