Skip to content

Commit 025aa03

Browse files
committed
build: update dev dependencies and build configuration
1 parent 11b8f3b commit 025aa03

File tree

14 files changed

+9092
-10545
lines changed

14 files changed

+9092
-10545
lines changed

.eslintrc.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
module.exports = {
2+
files: ["**/*.ts"],
23
env: {
34
jest: true,
45
node: true,
@@ -13,5 +14,5 @@ module.exports = {
1314
],
1415
rules: {
1516
"tsdoc/syntax": "warn",
16-
}
17+
},
1718
};

docs/.vuepress/client.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { defineClientConfig } from "@vuepress/client";
22

33
export default defineClientConfig({
4-
enhance({ app, router, siteData }) {},
4+
enhance() {},
55
setup() {},
66
rootComponents: [],
77
});

eslint.config.mjs

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
import typescriptEslint from "@typescript-eslint/eslint-plugin";
2+
import tsdoc from "eslint-plugin-tsdoc";
3+
import globals from "globals";
4+
import tsParser from "@typescript-eslint/parser";
5+
import path from "node:path";
6+
import { fileURLToPath } from "node:url";
7+
import js from "@eslint/js";
8+
import { FlatCompat } from "@eslint/eslintrc";
9+
10+
const __filename = fileURLToPath(import.meta.url);
11+
const __dirname = path.dirname(__filename);
12+
const compat = new FlatCompat({
13+
baseDirectory: __dirname,
14+
recommendedConfig: js.configs.recommended,
15+
allConfig: js.configs.all
16+
});
17+
18+
export default [...compat.extends(
19+
"eslint:recommended",
20+
"plugin:@typescript-eslint/eslint-recommended",
21+
"plugin:@typescript-eslint/recommended",
22+
).map(config => ({
23+
...config,
24+
files: ["**/*.ts"],
25+
})), {
26+
files: ["**/*.ts"],
27+
28+
plugins: {
29+
"@typescript-eslint": typescriptEslint,
30+
tsdoc,
31+
},
32+
33+
languageOptions: {
34+
globals: {
35+
...globals.jest,
36+
...globals.node,
37+
},
38+
39+
parser: tsParser,
40+
},
41+
42+
rules: {
43+
"tsdoc/syntax": "warn",
44+
},
45+
}];

0 commit comments

Comments
 (0)