Skip to content

Commit

Permalink
update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
wtto00 committed Apr 14, 2024
1 parent d9aedae commit 64dbc18
Show file tree
Hide file tree
Showing 11 changed files with 2,848 additions and 515 deletions.
21 changes: 0 additions & 21 deletions .eslintrc.json

This file was deleted.

27 changes: 27 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import globals from "globals";
import tseslint from "typescript-eslint";

import path from "path";
import { fileURLToPath } from "url";
import { FlatCompat } from "@eslint/eslintrc";
import pluginJs from "@eslint/js";

// mimic CommonJS variables -- not needed if using CommonJS
const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const compat = new FlatCompat({ baseDirectory: __dirname, recommendedConfig: pluginJs.configs.recommended });

const tslintConfig = tseslint.config({
files: ["src/**/*.ts"],
extends: [tseslint.configs.eslintRecommended, ...tseslint.configs.stylisticTypeChecked],
languageOptions: {
parserOptions: {
project: "tsconfig.json",
},
},
rules: {
"no-void": "off",
},
});

export default [{ languageOptions: { globals: globals.node } }, ...compat.extends("standard"), ...tslintConfig];
Loading

0 comments on commit 64dbc18

Please sign in to comment.