Skip to content

Commit

Permalink
build: update dev dependencies and build configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Ffloriel committed Sep 29, 2024
1 parent 11b8f3b commit 025aa03
Show file tree
Hide file tree
Showing 14 changed files with 9,092 additions and 10,545 deletions.
3 changes: 2 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
module.exports = {
files: ["**/*.ts"],
env: {
jest: true,
node: true,
Expand All @@ -13,5 +14,5 @@ module.exports = {
],
rules: {
"tsdoc/syntax": "warn",
}
},
};
2 changes: 1 addition & 1 deletion docs/.vuepress/client.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { defineClientConfig } from "@vuepress/client";

export default defineClientConfig({
enhance({ app, router, siteData }) {},
enhance() {},
setup() {},
rootComponents: [],
});
45 changes: 45 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
import typescriptEslint from "@typescript-eslint/eslint-plugin";
import tsdoc from "eslint-plugin-tsdoc";
import globals from "globals";
import tsParser from "@typescript-eslint/parser";
import path from "node:path";
import { fileURLToPath } from "node:url";
import js from "@eslint/js";
import { FlatCompat } from "@eslint/eslintrc";

const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all
});

export default [...compat.extends(
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
).map(config => ({
...config,
files: ["**/*.ts"],
})), {
files: ["**/*.ts"],

plugins: {
"@typescript-eslint": typescriptEslint,
tsdoc,
},

languageOptions: {
globals: {
...globals.jest,
...globals.node,
},

parser: tsParser,
},

rules: {
"tsdoc/syntax": "warn",
},
}];
Loading

0 comments on commit 025aa03

Please sign in to comment.