Skip to content

Commit 4b059f1

Browse files
Replace lint config file
1 parent ca66bc7 commit 4b059f1

File tree

2 files changed

+18
-22
lines changed

2 files changed

+18
-22
lines changed

eslint.config.mjs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import globals from "globals";
2+
import pluginJs from "@eslint/js";
3+
import tseslint from "typescript-eslint";
4+
5+
/** @type {import('eslint').Linter.Config[]} */
6+
export default [
7+
{ ignores: ["docs", "coverage", "dist", "src/types"] },
8+
{ files: ["**/*.{js,mjs,cjs,ts}"] },
9+
{ languageOptions: { globals: { ...globals.browser, ...globals.node } } },
10+
pluginJs.configs.recommended,
11+
...tseslint.configs.recommended,
12+
{
13+
rules: {
14+
"@typescript-eslint/ban-ts-comment": "off",
15+
"no-prototype-builtins": "off",
16+
},
17+
},
18+
];

tslint.json

Lines changed: 0 additions & 22 deletions
This file was deleted.

0 commit comments

Comments
 (0)