Skip to content

Commit 7429902

Browse files
committed
chore: update ESLint configuration and dependencies; remove .eslintrc.json
1 parent d516fd6 commit 7429902

4 files changed

Lines changed: 74 additions & 20 deletions

File tree

.eslintrc.json

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

eslint.config.js

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
import eslint from "@eslint/js";
2+
import tseslint from "typescript-eslint";
3+
4+
export default tseslint.config(
5+
eslint.configs.recommended,
6+
...tseslint.configs.recommended,
7+
{
8+
ignores: [
9+
"dist/",
10+
"node_modules/"
11+
],
12+
languageOptions: {
13+
ecmaVersion: 2021,
14+
globals: {
15+
// Node.js globals
16+
process: "readonly",
17+
__dirname: "readonly",
18+
__filename: "readonly",
19+
require: "readonly",
20+
module: "readonly",
21+
exports: "writable",
22+
},
23+
},
24+
}
25+
);

package-lock.json

Lines changed: 48 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"dev": "node --watch index.js",
99
"build": "tsc",
1010
"type-check": "tsc --noEmit",
11-
"lint": "eslint . --ext .ts",
11+
"lint": "eslint .",
1212
"format:check": "prettier --check .",
1313
"test": "jest"
1414
},

0 commit comments

Comments
 (0)