Skip to content

Commit da24335

Browse files
committed
tooling: add eslint and configure husky to lint
1 parent dd25158 commit da24335

File tree

5 files changed

+1245
-22
lines changed

5 files changed

+1245
-22
lines changed

.husky/pre-commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
npm run lint
12
npm run test
23
npm run build
34
git add dist/

eslint.config.mjs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// @ts-check
2+
3+
import eslint from "@eslint/js";
4+
import tseslint from "typescript-eslint";
5+
6+
export default tseslint.config(
7+
eslint.configs.recommended,
8+
tseslint.configs.recommended,
9+
{
10+
ignores: [".husky/", "coverage/", "dist/", "docs/", "eslint.config.mjs"],
11+
//files: ["src/**/*.ts"],
12+
},
13+
);

0 commit comments

Comments
 (0)