Skip to content

Commit 094bfc0

Browse files
authored
Configure auto formatting system (#53)
1 parent 9b7a138 commit 094bfc0

File tree

3 files changed

+545
-36
lines changed

3 files changed

+545
-36
lines changed

.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

package.json

Lines changed: 48 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,51 @@
11
{
2-
"name": "next-superjson-plugin",
3-
"version": "0.4.9",
4-
"description": "Automatically transform your Next.js Pages to use SuperJSON with SWC",
5-
"author": "JH.Lee <[email protected]>",
6-
"homepage": "https://github.com/blitz-js/next-superjson-plugin#readme",
7-
"repository": {
8-
"type": "git",
9-
"url": "https://github.com/blitz-js/next-superjson-plugin.git"
10-
},
11-
"bugs": {
12-
"url": "https://github.com/blitz-js/next-superjson-plugin/issues",
13-
"email": "[email protected]"
14-
},
15-
"license": "MIT",
16-
"keywords": [
17-
"swc-plugin"
2+
"name": "next-superjson-plugin",
3+
"version": "0.4.9",
4+
"description": "Automatically transform your Next.js Pages to use SuperJSON with SWC",
5+
"author": "JH.Lee <[email protected]>",
6+
"homepage": "https://github.com/blitz-js/next-superjson-plugin#readme",
7+
"repository": {
8+
"type": "git",
9+
"url": "https://github.com/blitz-js/next-superjson-plugin.git"
10+
},
11+
"bugs": {
12+
"url": "https://github.com/blitz-js/next-superjson-plugin/issues",
13+
"email": "[email protected]"
14+
},
15+
"license": "MIT",
16+
"keywords": [
17+
"swc-plugin"
18+
],
19+
"main": "next_superjson.wasm",
20+
"scripts": {
21+
"prepack": "tsc && cp target/wasm32-wasi/release/next_superjson.wasm .",
22+
"prepare": "husky install"
23+
},
24+
"files": [
25+
"tools.*"
26+
],
27+
"peerDependencies": {
28+
"next": "^13",
29+
"superjson": "^1"
30+
},
31+
"dependencies": {
32+
"hoist-non-react-statics": "^3.3.2"
33+
},
34+
"devDependencies": {
35+
"@types/hoist-non-react-statics": "^3.3.1",
36+
"husky": "^8.0.2",
37+
"lint-staged": "^13.0.3",
38+
"next": "^13",
39+
"prettier": "^2.7.1",
40+
"superjson": "^1",
41+
"typescript": "^4.7.4"
42+
},
43+
"lint-staged": {
44+
"*.rs": [
45+
"rustfmt --"
1846
],
19-
"main": "next_superjson.wasm",
20-
"scripts": {
21-
"prepack": "tsc && cp target/wasm32-wasi/release/next_superjson.wasm ."
22-
},
23-
"files": [
24-
"tools.*"
25-
],
26-
"peerDependencies": {
27-
"next": "^13",
28-
"superjson": "^1"
29-
},
30-
"dependencies": {
31-
"hoist-non-react-statics": "^3.3.2"
32-
},
33-
"devDependencies": {
34-
"@types/hoist-non-react-statics": "^3.3.1",
35-
"next": "^13",
36-
"superjson": "^1",
37-
"typescript": "^4.7.4"
38-
}
47+
"*.{ts,json}": [
48+
"prettier --write"
49+
]
50+
}
3951
}

0 commit comments

Comments
 (0)