Skip to content

Commit 9c978ea

Browse files
committed
🔧 add eslint and unique relatesTo
1 parent 74da386 commit 9c978ea

14 files changed

+4286
-214
lines changed

.eslintrc.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"env": {
3+
"browser": true,
4+
"es2021": true
5+
},
6+
"extends": [
7+
"eslint:recommended",
8+
"plugin:@typescript-eslint/recommended",
9+
"plugin:import/warnings"
10+
],
11+
"parser": "@typescript-eslint/parser",
12+
"parserOptions": {
13+
"ecmaVersion": "latest",
14+
"sourceType": "module"
15+
},
16+
"plugins": [
17+
"@typescript-eslint",
18+
"import"
19+
],
20+
"rules": {
21+
"import/no-cycle": "error",
22+
"@typescript-eslint/no-explicit-any": "off"
23+
},
24+
"ignorePatterns": ["*.test.ts"]
25+
}

.husky/pre-commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/bin/sh
22
. "$(dirname "$0")/_/husky.sh"
33

4+
npm run lint
45
npm run precommit

0 commit comments

Comments
 (0)