Skip to content

Commit

Permalink
Update dependencies (#976)
Browse files Browse the repository at this point in the history
  • Loading branch information
Acylation authored Dec 1, 2024
1 parent a33ac1a commit 381f3f7
Show file tree
Hide file tree
Showing 33 changed files with 2,080 additions and 3,377 deletions.
2 changes: 0 additions & 2 deletions .eslintignore

This file was deleted.

27 changes: 0 additions & 27 deletions .eslintrc.json

This file was deleted.

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 [{
ignores: ["**/npm node_modules", "**/build"],
}, ...compat.extends("eslint:recommended", "plugin:@typescript-eslint/recommended"), {
plugins: {
"@typescript-eslint": typescriptEslint,
tsdoc,
},

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

parser: tsParser,
ecmaVersion: 5,
sourceType: "module",
},

rules: {
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-empty-interface": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-unused-vars": "off",
"no-useless-escape": "off",
"tsdoc/syntax": "warn",
},
}];
Loading

0 comments on commit 381f3f7

Please sign in to comment.