tangled
alpha
login
or
join now
notnite.com
/
moonlight
3
fork
atom
this repo has no description
3
fork
atom
overview
issues
pulls
pipelines
add husky precommit hook
adryd
2 years ago
1687a059
c075b590
+25
-4
5 changed files
expand all
collapse all
unified
split
.eslintrc.json
.husky
pre-commit
.prettierignore
package.json
pnpm-lock.yaml
+7
-3
.eslintrc.json
···
20
20
},
21
21
"rules": {
22
22
"indent": "off",
23
23
-
"eqeqeq": ["error", "always", {
24
24
-
"null": "ignore"
25
25
-
}],
23
23
+
"eqeqeq": [
24
24
+
"error",
25
25
+
"always",
26
26
+
{
27
27
+
"null": "ignore"
28
28
+
}
29
29
+
],
26
30
"quotes": [
27
31
"error",
28
32
"double",
+4
.husky/pre-commit
···
1
1
+
#!/usr/bin/env sh
2
2
+
. "$(dirname -- "$0")/_/husky.sh"
3
3
+
4
4
+
pnpm run check
+1
.prettierignore
···
1
1
+
pnpm-lock.yml
+4
-1
package.json
···
16
16
"lint": "eslint packages",
17
17
"lint:fix": "eslint packages",
18
18
"lint:report": "eslint --output-file eslint_report.json --format json packages",
19
19
-
"typecheck": "tsc --noEmit"
19
19
+
"typecheck": "tsc --noEmit",
20
20
+
"check": "pnpm run lint && pnpm run typecheck",
21
21
+
"prepare": "husky install"
20
22
},
21
23
"devDependencies": {
22
24
"@typescript-eslint/eslint-plugin": "^6.13.2",
···
27
29
"eslint-config-prettier": "^9.1.0",
28
30
"eslint-plugin-prettier": "^5.0.1",
29
31
"eslint-plugin-react": "^7.33.2",
32
32
+
"husky": "^8.0.3",
30
33
"prettier": "^3.1.0",
31
34
"typescript": "^5.3.2"
32
35
}
+9
pnpm-lock.yaml
···
32
32
eslint-plugin-react:
33
33
specifier: ^7.33.2
34
34
version: 7.33.2(eslint@8.55.0)
35
35
+
husky:
36
36
+
specifier: ^8.0.3
37
37
+
version: 8.0.3
35
38
prettier:
36
39
specifier: ^3.1.0
37
40
version: 3.1.0
···
1390
1393
/human-signals@4.3.1:
1391
1394
resolution: {integrity: sha512-nZXjEF2nbo7lIw3mgYjItAfgQXog3OjJogSbKa2CQIIvSGWcKgeJnQlNXip6NglNzYH45nSRiEVimMvYL8DDqQ==}
1392
1395
engines: {node: '>=14.18.0'}
1396
1396
+
dev: true
1397
1397
+
1398
1398
+
/husky@8.0.3:
1399
1399
+
resolution: {integrity: sha512-+dQSyqPh4x1hlO1swXBiNb2HzTDN1I2IGLQx1GrBuiqFJfoMrnZWwVmatvSiO+Iz8fBUnf+lekwNo4c2LlXItg==}
1400
1400
+
engines: {node: '>=14'}
1401
1401
+
hasBin: true
1393
1402
dev: true
1394
1403
1395
1404
/ignore@5.3.0: