Skip to content

Commit cf48856

Browse files
authored
Automatically formatting and cleaning code on commit (#1695)
This PR adds automatically formatting and cleaning code on commit. Code style is standard for typescript. All files changed prior commit will be formatted. --------- Signed-off-by: georgi-l95 <[email protected]>
1 parent c139046 commit cf48856

File tree

4 files changed

+1626
-1016
lines changed

4 files changed

+1626
-1016
lines changed

.eslintrc.js

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
module.exports = {
2+
"env": {
3+
"browser": true,
4+
"es2021": true
5+
},
6+
"extends": "standard-with-typescript",
7+
"overrides": [
8+
{
9+
"env": {
10+
"node": true
11+
},
12+
"files": [
13+
".eslintrc.{js,cjs}"
14+
],
15+
"parserOptions": {
16+
"sourceType": "script"
17+
}
18+
}
19+
],
20+
"parserOptions": {
21+
"ecmaVersion": "latest",
22+
"sourceType": "module"
23+
},
24+
"rules": {
25+
}
26+
}

.husky/pre-commit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
npx lint-staged

0 commit comments

Comments
 (0)