Skip to content

Commit 745566a

Browse files
committed
chore: clean structure
1 parent d4beab6 commit 745566a

29 files changed

+647
-711
lines changed

.commitlintrc

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"extends": [
3+
"@commitlint/config-conventional"
4+
],
5+
"rules": {
6+
"body-max-line-length": [
7+
0,
8+
"always",
9+
"Infinity"
10+
],
11+
"footer-max-line-length": [
12+
0,
13+
"always",
14+
"Infinity"
15+
]
16+
}
17+
}

.eslintignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
dist
2+
node_modules
3+
coverage
4+
build
5+
.next

.eslintrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": ["plugin:@qhlab/react"]
3+
}

.eslintrc.json

Lines changed: 0 additions & 8 deletions
This file was deleted.

.lintstagedrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"*.ts?(x)": [
3+
"yarn lint --fix"
4+
]
5+
}

.lintstagedrc.yml

Lines changed: 0 additions & 2 deletions
This file was deleted.

.prettierrc

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,3 @@
11
{
2-
"semi": true,
3-
"endOfLine": "lf",
4-
"useTabs": false,
5-
"tabWidth": 2,
6-
"arrowParens": "always",
7-
"bracketSpacing": false,
8-
"bracketSameLine": false,
9-
"singleQuote": true,
10-
"jsxSingleQuote": true,
11-
"printWidth": 80,
12-
"trailingComma": "es5"
2+
"write your own prettier rules to override eslint": ""
133
}

.vscode/extensions.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"recommendations": [
3+
"styled-components.vscode-styled-components",
4+
"dbaeumer.vscode-eslint"
5+
],
6+
"unwantedRecommendations": ["HookyQR.beautify"]
7+
}

.vscode/settings.json

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
{
2-
"editor.defaultFormatter": "dbaeumer.vscode-eslint",
3-
"[jsonc]": {
4-
"editor.defaultFormatter": "esbenp.prettier-vscode"
2+
"editor.defaultFormatter": "esbenp.prettier-vscode",
3+
"[javascript]": {
4+
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
55
},
6-
"[json]": {
7-
"editor.defaultFormatter": "esbenp.prettier-vscode"
6+
"[javascriptreact]": {
7+
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
88
},
99
"[typescript]": {
1010
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
1111
},
12-
"editor.formatOnSave": true
12+
"[typescriptreact]": {
13+
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
14+
},
15+
"editor.formatOnSave": true,
16+
"eslint.format.enable": true
1317
}

CHANGELOG.md

Lines changed: 0 additions & 162 deletions
This file was deleted.

README.md

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
<h1 align="center">☄️ transition-hook</h1>
1+
<p align="center">
2+
<img src="logo.png" alt="logo" width="550px" />
3+
</p>
4+
5+
<br />
6+
<h1 align="center">📦 qhlab-library-template</h1>
27

38
<p align="center">
49
<a href="https://github.com/iamyoki/transition-hook/actions/workflows/test.yml"><img src="https://github.com/iamyoki/transition-hook/actions/workflows/test.yml/badge.svg" alt="🧪 Run Tests"></a>
@@ -13,15 +18,7 @@
1318

1419
<p align="center">An extremely light-weight<strong>(1kb)</strong> react transition animation hook which is simpler and easier to use than <a href="https://github.com/reactjs/react-transition-group" target="_blank">react-transition-group</a></p>
1520
<br>
16-
17-
<p align="center">
18-
<a href="https://tqgdj.csb.app/">
19-
<img src="./example.gif" width="300" alt="example">
20-
</a>
21-
<br>
22-
<a href="https://tqgdj.csb.app/">See Example</a> |
23-
<a href="https://codesandbox.io/s/transition-hook-example-tqgdj">See Example in Codesandbox</a>
24-
</p>
21+
<p align="center">!!!(This template is forked from transition-hook, edit your own content later on)</p>
2522

2623
<p align="center">
2724
<a href="https://o3f41.csb.app/ripple-effect">

commitlint.config.js

Lines changed: 0 additions & 7 deletions
This file was deleted.

example.gif

-1.24 MB
Binary file not shown.

logo.png

27.5 KB
Loading

package.json

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "transition-hook",
3-
"version": "1.5.0",
2+
"name": "qhlab-library-template",
3+
"version": "0.0.1",
44
"main": "dist/cjs/index.js",
55
"module": "dist/esm/index.js",
66
"types": "dist/types/index.d.ts",
@@ -9,17 +9,14 @@
99
"dist"
1010
],
1111
"author": "Yoki Yu <[email protected]>",
12-
"description": "☄️ An extremely light-weight react transition animation hook which is simpler and easier to use than react-transition-group",
12+
"description": "A template make make open-source library never been so easy.",
1313
"keywords": [
14-
"react",
15-
"transition",
16-
"hooks",
17-
"css",
18-
"animation",
19-
"transition-hook",
20-
"use-transition",
21-
"react-transition-group"
14+
"react"
2215
],
16+
"repository": {
17+
"type": "git",
18+
"url": "https://github.com/QhlabTeam/qhlab-library-template.git"
19+
},
2320
"license": "MIT",
2421
"scripts": {
2522
"prepare": "husky install",
@@ -31,7 +28,7 @@
3128
"clean": "rimraf dist",
3229
"build": "yarn clean && run-p build:*",
3330
"watch": "yarn clean && run-p 'build:* -- --watch'",
34-
"lint": "eslint src --fix",
31+
"lint": "eslint \"src/**/*.{ts,tsx}\" --fix",
3532
"semantic-release": "semantic-release"
3633
},
3734
"peerDependencies": {
@@ -41,6 +38,7 @@
4138
"devDependencies": {
4239
"@commitlint/cli": "^15.0.0",
4340
"@commitlint/config-conventional": "^15.0.0",
41+
"@qhlab/eslint-plugin": "^1.10.0",
4442
"@semantic-release/changelog": "^6.0.1",
4543
"@semantic-release/git": "^10.0.1",
4644
"@types/react": "^17.0.37",
@@ -57,9 +55,5 @@
5755
"semantic-release": "^18.0.1",
5856
"semantic-release-cli": "^5.4.4",
5957
"typescript": "^4.5.4"
60-
},
61-
"repository": {
62-
"type": "git",
63-
"url": "https://github.com/iamyoki/transition-hook.git"
6458
}
6559
}

src/ListTransition/index.tsx

Lines changed: 0 additions & 18 deletions
This file was deleted.

src/SwitchTransition/index.tsx

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)