Skip to content

Commit b86a926

Browse files
committed
🚧 walls
1 parent ce6b26a commit b86a926

File tree

2 files changed

+26
-1
lines changed

2 files changed

+26
-1
lines changed

.eslintrc.json

+15-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
11
{
2-
"extends": "next/core-web-vitals"
2+
"extends": ["next/core-web-vitals", "@blockmatic"],
3+
"plugins": ["react-hooks"],
4+
"rules": {
5+
"no-case-declarations": 0,
6+
"no-console": "off",
7+
"@typescript-eslint/no-unused-vars": 0,
8+
"@typescript-eslint/indent": 0,
9+
"no-use-before-define": "off",
10+
"no-shadow": "off",
11+
"react-hooks/rules-of-hooks": "warn", // Checks rules of Hooks
12+
"react-hooks/exhaustive-deps": "warn" // Checks effect dependencies
13+
},
14+
"env": {
15+
"es2020": true
16+
},
317
}

package.json

+11
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,16 @@
3434
"eslint-config-next": "12.0.10",
3535
"node-sass": "^7.0.1",
3636
"typescript": "4.5.5"
37+
},
38+
"lint-staged": {
39+
"*.{ts,tsx,js}": [
40+
"prettier --write",
41+
"eslint --fix"
42+
]
43+
},
44+
"husky": {
45+
"hooks": {
46+
"pre-commit": "lint-staged"
47+
}
3748
}
3849
}

0 commit comments

Comments
 (0)