Skip to content

Commit 949328a

Browse files
authored
Merge pull request #163 from zhensherlock/dev
v1.1.1
2 parents 9c5d470 + ffd658d commit 949328a

25 files changed

+721
-623
lines changed

.gitattributes

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
*.js text eol=lf
2+
*.ts text eol=lf
3+
*.html text eol=lf

.prettierrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,6 @@
77
"arrowParens": "always",
88
"htmlWhitespaceSensitivity": "css",
99
"insertPragma": false,
10+
"endOfLine": "lf",
1011
"semi": true
1112
}

biome.json

Lines changed: 255 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,255 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/2.3.8/schema.json",
3+
"vcs": { "enabled": true, "clientKind": "git", "useIgnoreFile": true },
4+
"files": { "ignoreUnknown": false },
5+
"formatter": {
6+
"enabled": true,
7+
"formatWithErrors": false,
8+
"indentStyle": "space",
9+
"indentWidth": 2,
10+
"lineEnding": "lf",
11+
"lineWidth": 120,
12+
"attributePosition": "auto",
13+
"bracketSameLine": false,
14+
"bracketSpacing": true,
15+
"expand": "auto",
16+
"useEditorconfig": true,
17+
"includes": ["**", "!**/build"]
18+
},
19+
"linter": {
20+
"enabled": true,
21+
"rules": {
22+
"recommended": false,
23+
"complexity": { "noUselessTypeConstraint": "error" },
24+
"correctness": { "noUnusedVariables": "error" },
25+
"style": {
26+
"noCommonJs": "error",
27+
"noNamespace": "error",
28+
"useArrayLiterals": "error",
29+
"useAsConstAssertion": "error"
30+
},
31+
"suspicious": {
32+
"noExplicitAny": "error",
33+
"noExtraNonNullAssertion": "error",
34+
"noMisleadingInstantiator": "error",
35+
"noNonNullAssertedOptionalChain": "error",
36+
"noUnsafeDeclarationMerging": "error",
37+
"useNamespaceKeyword": "error"
38+
}
39+
},
40+
"includes": [
41+
"**",
42+
"!node_modules/**",
43+
"!build/**",
44+
"!release/**",
45+
"!**/*.json",
46+
"!**/*.html",
47+
"!**/*.css",
48+
"!**/*.js"
49+
]
50+
},
51+
"javascript": {
52+
"formatter": {
53+
"jsxQuoteStyle": "double",
54+
"quoteProperties": "asNeeded",
55+
"trailingCommas": "es5",
56+
"semicolons": "always",
57+
"arrowParentheses": "always",
58+
"bracketSameLine": false,
59+
"quoteStyle": "single",
60+
"attributePosition": "auto",
61+
"bracketSpacing": true
62+
},
63+
"globals": []
64+
},
65+
"html": {
66+
"formatter": {
67+
"indentScriptAndStyle": false,
68+
"selfCloseVoidElements": "always"
69+
}
70+
},
71+
"overrides": [
72+
{
73+
"includes": ["**/*.ts", "**/*.tsx", "**/*.mts", "**/*.cts"],
74+
"linter": {
75+
"rules": {
76+
"complexity": { "noArguments": "error" },
77+
"correctness": {
78+
"noConstAssign": "off",
79+
"noGlobalObjectCalls": "off",
80+
"noInvalidBuiltinInstantiation": "off",
81+
"noInvalidConstructorSuper": "off",
82+
"noSetterReturn": "off",
83+
"noUndeclaredVariables": "off",
84+
"noUnreachable": "off",
85+
"noUnreachableSuper": "off"
86+
},
87+
"style": { "useConst": "error" },
88+
"suspicious": {
89+
"noClassAssign": "off",
90+
"noDuplicateClassMembers": "off",
91+
"noDuplicateObjectKeys": "off",
92+
"noDuplicateParameters": "off",
93+
"noFunctionAssign": "off",
94+
"noImportAssign": "off",
95+
"noRedeclare": "off",
96+
"noUnsafeNegation": "off",
97+
"noVar": "error",
98+
"noWith": "off",
99+
"useGetterReturn": "off"
100+
}
101+
}
102+
}
103+
},
104+
{ "includes": ["packages/shared/**/*.{js,ts}", "!config/**/*.{js,ts}"] },
105+
{
106+
"includes": ["packages/**/*.{js,ts}"],
107+
"javascript": {
108+
"globals": [
109+
"onanimationend",
110+
"exports",
111+
"ongamepadconnected",
112+
"onlostpointercapture",
113+
"onanimationiteration",
114+
"onkeyup",
115+
"onmousedown",
116+
"onanimationstart",
117+
"onslotchange",
118+
"onprogress",
119+
"ontransitionstart",
120+
"onpause",
121+
"onended",
122+
"onpointerover",
123+
"onscrollend",
124+
"onformdata",
125+
"ontransitionrun",
126+
"onanimationcancel",
127+
"ondrag",
128+
"onchange",
129+
"onbeforeinstallprompt",
130+
"onbeforexrselect",
131+
"onmessage",
132+
"ontransitioncancel",
133+
"onpointerdown",
134+
"onabort",
135+
"onpointerout",
136+
"oncuechange",
137+
"ongotpointercapture",
138+
"onscrollsnapchanging",
139+
"onsearch",
140+
"onsubmit",
141+
"onstalled",
142+
"onsuspend",
143+
"onreset",
144+
"onerror",
145+
"onresize",
146+
"onmouseenter",
147+
"ongamepaddisconnected",
148+
"ondragover",
149+
"onbeforetoggle",
150+
"onmouseover",
151+
"onpagehide",
152+
"onmousemove",
153+
"onratechange",
154+
"oncommand",
155+
"onmessageerror",
156+
"onwheel",
157+
"ondevicemotion",
158+
"onauxclick",
159+
"ontransitionend",
160+
"onpaste",
161+
"onpageswap",
162+
"ononline",
163+
"ondeviceorientationabsolute",
164+
"onkeydown",
165+
"onclose",
166+
"onselect",
167+
"onpageshow",
168+
"onpointercancel",
169+
"onbeforematch",
170+
"onpointerrawupdate",
171+
"ondragleave",
172+
"onscrollsnapchange",
173+
"onseeked",
174+
"onwaiting",
175+
"onbeforeunload",
176+
"onplaying",
177+
"onvolumechange",
178+
"ondragend",
179+
"onstorage",
180+
"onloadeddata",
181+
"onfocus",
182+
"onoffline",
183+
"onplay",
184+
"onafterprint",
185+
"onclick",
186+
"oncut",
187+
"onmouseout",
188+
"ondblclick",
189+
"oncanplay",
190+
"onloadstart",
191+
"onappinstalled",
192+
"onpointermove",
193+
"ontoggle",
194+
"oncontextmenu",
195+
"onblur",
196+
"oncancel",
197+
"onbeforeprint",
198+
"oncontextrestored",
199+
"onloadedmetadata",
200+
"onpointerup",
201+
"onlanguagechange",
202+
"oncopy",
203+
"onselectstart",
204+
"onscroll",
205+
"onload",
206+
"ondragstart",
207+
"onbeforeinput",
208+
"oncanplaythrough",
209+
"oninput",
210+
"oninvalid",
211+
"ontimeupdate",
212+
"ondurationchange",
213+
"onselectionchange",
214+
"onmouseup",
215+
"location",
216+
"onkeypress",
217+
"onpointerleave",
218+
"oncontextlost",
219+
"ondrop",
220+
"onsecuritypolicyviolation",
221+
"oncontentvisibilityautostatechange",
222+
"ondeviceorientation",
223+
"onseeking",
224+
"onrejectionhandled",
225+
"onmouseleave",
226+
"onunload",
227+
"onhashchange",
228+
"onpointerenter",
229+
"onmousewheel",
230+
"onunhandledrejection",
231+
"ondragenter",
232+
"onpopstate",
233+
"onpagereveal",
234+
"onemptied"
235+
]
236+
},
237+
"linter": {
238+
"rules": {
239+
"correctness": { "noUnusedVariables": "warn" },
240+
"suspicious": {
241+
"noConsole": {
242+
"level": "warn",
243+
"options": { "allow": ["warn", "error"] }
244+
},
245+
"noExplicitAny": "warn"
246+
}
247+
}
248+
}
249+
}
250+
],
251+
"assist": {
252+
"enabled": true,
253+
"actions": { "source": { "organizeImports": "on" } }
254+
}
255+
}

commitlint.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ export default {
2222
],
2323
'subject-case': [0],
2424
},
25-
}
25+
};

eslint.config.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import tsParser from '@typescript-eslint/parser'
2-
import tseslint from 'typescript-eslint';
3-
import tsPlugin from '@typescript-eslint/eslint-plugin'
4-
import importPlugin from 'eslint-plugin-import'
1+
import tsPlugin from '@typescript-eslint/eslint-plugin';
2+
import tsParser from '@typescript-eslint/parser';
3+
import importPlugin from 'eslint-plugin-import';
54
import prettierPlugin from 'eslint-plugin-prettier';
6-
import globals from 'globals'
5+
import globals from 'globals';
6+
import tseslint from 'typescript-eslint';
77

88
export default [
99
...tseslint.configs.recommended,

lint-staged.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
export default {
2-
'packages/**/*.{ts,js}': ['npx eslint'],
3-
}
2+
'packages/**/*.{ts,js}': ['biome check --write'],
3+
};

package.json

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -27,30 +27,31 @@
2727
"url": "https://github.com/zhensherlock/vue-devtools-unlocker/issues"
2828
},
2929
"devDependencies": {
30+
"@biomejs/biome": "2.3.8",
3031
"@commitlint/cli": "^19.8.1",
3132
"@commitlint/config-conventional": "^19.8.1",
32-
"@types/chrome": "^0.1.4",
33-
"@typescript-eslint/eslint-plugin": "^8.42.0",
34-
"@typescript-eslint/parser": "^8.41.0",
33+
"@types/chrome": "^0.1.31",
34+
"@typescript-eslint/eslint-plugin": "^8.48.0",
35+
"@typescript-eslint/parser": "^8.48.0",
3536
"adm-zip": "^0.5.16",
3637
"copy-webpack-plugin": "^13.0.1",
3738
"css-loader": "^7.1.2",
38-
"eslint": "^9.34.0",
39+
"eslint": "^9.39.1",
3940
"eslint-plugin-import": "^2.32.0",
4041
"eslint-plugin-prettier": "^5.5.4",
4142
"file-loader": "^6.2.0",
42-
"globals": "^16.3.0",
43+
"globals": "^16.5.0",
4344
"husky": "^9.1.7",
4445
"mini-css-extract-plugin": "^2.9.4",
45-
"prettier": "^3.6.2",
46-
"rimraf": "^6.0.1",
47-
"sass": "^1.91.0",
48-
"sass-loader": "^16.0.5",
46+
"prettier": "^3.7.3",
47+
"rimraf": "^6.1.2",
48+
"sass": "^1.94.2",
49+
"sass-loader": "^16.0.6",
4950
"terser-webpack-plugin": "^5.3.14",
5051
"ts-loader": "^9.5.4",
51-
"typescript": "^5.9.2",
52-
"typescript-eslint": "^8.41.0",
53-
"webpack": "^5.101.3",
52+
"typescript": "^5.9.3",
53+
"typescript-eslint": "^8.48.0",
54+
"webpack": "^5.103.0",
5455
"webpack-cli": "^6.0.1",
5556
"webpack-merge": "^6.0.1"
5657
},

packages/chrome-extension/config/pack.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { readFileSync, existsSync, mkdirSync } from 'fs';
2-
import { dirname, resolve } from 'path';
31
import AdmZip from 'adm-zip';
2+
import { existsSync, mkdirSync, readFileSync } from 'fs';
3+
import { dirname, resolve } from 'path';
44
import { fileURLToPath } from 'url';
55

66
const __filename = fileURLToPath(import.meta.url);

packages/chrome-extension/config/paths.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
import path from 'path';
1+
import path, { dirname } from 'path';
22
import { fileURLToPath } from 'url';
3-
import { dirname } from 'path';
43

54
const __filename = fileURLToPath(import.meta.url);
65
const __dirname = dirname(__filename);

packages/chrome-extension/config/webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import TerserPlugin from 'terser-webpack-plugin';
22
import { merge } from 'webpack-merge';
3-
import common from './webpack.common.js';
43
import PATHS from './paths.js';
4+
import common from './webpack.common.js';
55

66
// Merge webpack configuration files
77
const config = (env, argv) => {

0 commit comments

Comments
 (0)