Skip to content

Commit

Permalink
Replace tslint with eslint; fix linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
dchest committed Jun 29, 2024
1 parent 8c0ee34 commit cdc498f
Show file tree
Hide file tree
Showing 49 changed files with 1,084 additions and 428 deletions.
17 changes: 17 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import globals from "globals";
import pluginJs from "@eslint/js";
import tseslint from "typescript-eslint";


export default [
{files: ["**/*.{js,mjs,cjs,ts}"]},
{languageOptions: { globals: {...globals.browser, ...globals.node} }},
pluginJs.configs.recommended,
...tseslint.configs.recommended,
{rules: {
"prefer-const": "off",
"prefer-spread": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/consistent-type-imports": "error",
}},
];
Loading

0 comments on commit cdc498f

Please sign in to comment.