Skip to content

Commit 45b4875

Browse files
committed
Add eslint config
1 parent 5efcc32 commit 45b4875

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

eslint.config.mjs

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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+
{
8+
files: [
9+
"**/*.{js,mjs,cjs,ts}",
10+
],
11+
},
12+
{
13+
files: [
14+
"**/*.js",
15+
],
16+
languageOptions: {
17+
sourceType: "commonjs",
18+
},
19+
},
20+
{
21+
languageOptions: {
22+
globals: globals.browser,
23+
},
24+
},
25+
pluginJs.configs.recommended,
26+
...tseslint.configs.recommended,
27+
];

0 commit comments

Comments
 (0)