Skip to content

Commit d2f12a9

Browse files
committed
ref: fix some lint errors
1 parent 271bee7 commit d2f12a9

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

src/tools/post-build.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ async function exists(path: string) {
144144
await access(path, fsconstants.R_OK | fsconstants.W_OK);
145145
return true;
146146
}
147-
catch(err) {
147+
catch {
148148
return false;
149149
}
150150
}

tsconfig.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
{
2+
"extends": "../../tsconfig.json",
23
"compilerOptions": {
3-
"module": "ESNext",
4-
"moduleResolution": "node",
4+
"module": "NodeNext",
5+
"moduleResolution": "NodeNext",
56
"target": "ES2016",
67
"outDir": "dist/out",
78
"lib": [
9+
"ES2020",
810
"DOM",
911
"DOM.Iterable",
1012
],

webpack.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export default (env) => {
4949
// since sites like greasyfork don't allow minified userscripts:
5050
minimize: false,
5151
minimizer: [
52-
`...`,
52+
"...",
5353
new CssMinimizerPlugin(),
5454
],
5555
},
@@ -100,7 +100,7 @@ export default (env) => {
100100
},
101101
// enable sourcemaps if NODE_ENV === "development"
102102
...(mode === "development" ? { devtool: "source-map" } : {}),
103-
...(silent ? { stats: "errors-only", } : {}),
103+
...(silent ? { stats: "errors-only" } : {}),
104104
plugins: [
105105
new MiniCssExtractPlugin({
106106
// name of the emitted css bundle

0 commit comments

Comments
 (0)