Skip to content

Commit 116caf9

Browse files
authored
feat: added ESlint config in modern format
1 parent c22c718 commit 116caf9

2 files changed

Lines changed: 28 additions & 17 deletions

File tree

config/linters/.eslintrc.yml

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

config/linters/eslint.config.mjs

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
// eslint.config.mjs
2+
import js from "@eslint/js";
3+
import tseslint from "@typescript-eslint/eslint-plugin";
4+
import tsParser from "@typescript-eslint/parser";
5+
6+
export default [
7+
{
8+
ignores: [
9+
"dist/**",
10+
]
11+
},
12+
13+
js.configs.recommended,
14+
15+
{
16+
files: ["**/*.ts", "**/*.tsx"],
17+
languageOptions: {
18+
parser: tsParser,
19+
},
20+
plugins: {
21+
"@typescript-eslint": tseslint,
22+
},
23+
rules: {
24+
"no-undef": "warn",
25+
"n/no-missing-import": "warn",
26+
},
27+
},
28+
];

0 commit comments

Comments
 (0)