Skip to content

Commit 102246f

Browse files
committed
chore: add eslint
1 parent 9e32854 commit 102246f

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

eslint.config.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import globals from "globals";
2+
import pluginJs from "@eslint/js";
3+
import tseslint from "typescript-eslint";
4+
5+
export default [
6+
{
7+
ignores: ["**/*.min.js", "dist/**"],
8+
},
9+
{
10+
files: ["**/*.{js,mjs,cjs,ts}"],
11+
languageOptions: { globals: globals.browser },
12+
},
13+
pluginJs.configs.recommended,
14+
...tseslint.configs.recommended,
15+
{
16+
files: ["**/*.ts"],
17+
rules: {
18+
"@typescript-eslint/no-explicit-any": "off"
19+
}
20+
}
21+
];

0 commit comments

Comments
 (0)