Skip to content

Commit 1568020

Browse files
committed
feat(release): ✨ add new release pipeline
- Update Husky - Add recommeded extension - Update babel configs - Update ignore files - Update eslint, prettier, tsconfig & jest configs - Add Release It as release tool - Move some configs to package json
1 parent 0d56943 commit 1568020

25 files changed

+4988
-3745
lines changed

.commitlintrc.json

Lines changed: 0 additions & 1 deletion
This file was deleted.

.eslintignore

Lines changed: 53 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,56 @@
1+
# dotenv environment variable files
2+
.env*
3+
4+
# Testing
5+
/coverage
6+
7+
# Storybook Build
8+
storybook-static
9+
10+
# Next JS
11+
/.next/
12+
/out/
13+
14+
# Vercel folder
15+
.vercel
16+
17+
# Local Netlify
18+
.netlify
19+
.idea
20+
*.env
21+
22+
# Optional eslint cache
23+
.eslintcache
24+
25+
# Logs
26+
*.log*
27+
28+
# Dependency directories
129
node_modules
2-
.next
3-
.cache
4-
build
5-
public
6-
dist
7-
coverage
8-
package.json
30+
jspm_packages
31+
32+
# Mac files
33+
.DS_Store
34+
35+
# Optional npm cache directory
36+
.npm
37+
38+
# Yarn 2
39+
.pnp/
40+
.pnp.*
41+
.yarn/*
42+
!.yarn/cache
43+
!.yarn/patches
44+
!.yarn/plugins
45+
!.yarn/releases
46+
!.yarn/sdks
47+
!.yarn/versions
48+
.yarn-integrity # Yarn Integrity file
49+
50+
# Lock files
951
package-lock.json
1052
yarn.lock
11-
storybook-static
53+
54+
## library folder
55+
dist
56+
CHANGELOG.md

.eslintrc.json

Lines changed: 33 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,39 @@
11
{
2-
"plugins": ["prettier"],
3-
"extends": [
4-
"react-app",
5-
"react-app/jest",
6-
"plugin:prettier/recommended",
7-
"prettier/react",
8-
"prettier/flowtype",
9-
"prettier/@typescript-eslint"
10-
],
2+
"parserOptions": {
3+
"sourceType": "module"
4+
},
5+
"env": { "es6": true },
6+
"parser": "@typescript-eslint/parser",
7+
"extends": ["react-app", "react-app/jest", "plugin:prettier/recommended"],
8+
"plugins": ["@typescript-eslint", "simple-import-sort"],
119
"rules": {
1210
"no-console": "off",
11+
"simple-import-sort/imports": [
12+
"error",
13+
{
14+
// https://github.com/lydell/eslint-plugin-simple-import-sort#custom-grouping
15+
"groups": [
16+
// Packages. `react` related packages come first.
17+
[
18+
"^react",
19+
"^reakit-system",
20+
"^reakit",
21+
"^@renderlesskit/react",
22+
"^@?\\w"
23+
],
24+
// Parent imports. Put `..` last.
25+
["^\\.\\.(?!/?$)", "^\\.\\./?$"],
26+
// Other relative imports. Put same-folder imports and `.` last.
27+
["^\\./(?=.*/)(?!/?$)", "^\\.(?!/?$)", "^\\./?$"],
28+
// Style imports.
29+
["^.+\\.s?css$"]
30+
]
31+
}
32+
],
33+
"simple-import-sort/exports": "error",
34+
"import/first": "error",
35+
"import/newline-after-import": "error",
36+
"import/no-duplicates": "error",
1337
"testing-library/prefer-explicit-assert": ["error"],
1438
"testing-library/consistent-data-testid": [
1539
2,

.gacprc.json

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

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
- "*"
77
pull_request:
88
branches:
9-
- master
9+
- main
1010

1111
jobs:
1212
build:

.gitignore

Lines changed: 33 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -1,72 +1,51 @@
1-
# Dependency directories
2-
node_modules/
3-
jspm_packages/
4-
/node_modules
5-
/.pnp
6-
.pnp.js
7-
8-
# next.js
9-
/.next/
10-
/out/
11-
12-
# production
13-
/build
14-
15-
# testing
16-
/coverage
17-
181
# dotenv environment variable files
192
.env*
203

21-
# Mac files
22-
.DS_Store
23-
24-
# Optional npm cache directory
25-
.npm
4+
# Testing
5+
/coverage
266

27-
# Yarn
28-
yarn-error.log
29-
.pnp/
30-
.pnp.js
7+
# Storybook Build
8+
storybook-static
319

32-
# Yarn Integrity file
33-
.yarn-integrity
10+
# Next JS
11+
/.next/
12+
/out/
3413

35-
# Storybook build
36-
storybook-static
14+
# Vercel folder
15+
.vercel
3716

3817
# Local Netlify
3918
.netlify
4019
.idea
4120
*.env
4221

43-
# Vercel folder
44-
.vercel
45-
46-
# library folder
47-
.lib
48-
dist
49-
50-
# Compiled binary addons (http://nodejs.org/api/addons.html)
51-
build/Release
52-
53-
# Typescript v1 declaration files
54-
typings/
55-
5622
# Optional eslint cache
5723
.eslintcache
5824

5925
# Logs
60-
logs
61-
*.log
62-
lerna-debug.log
26+
*.log*
6327

64-
# debug
65-
npm-debug.log*
66-
yarn-debug.log*
67-
yarn-error.log*
28+
# Dependency directories
29+
node_modules
30+
jspm_packages
6831

69-
#buildsize
70-
size-plugin.json
71-
stats-react.json
72-
stats.html
32+
# Mac files
33+
.DS_Store
34+
35+
# Optional npm cache directory
36+
.npm
37+
38+
# Yarn 2
39+
.pnp/
40+
.pnp.*
41+
.yarn/*
42+
!.yarn/cache
43+
!.yarn/patches
44+
!.yarn/plugins
45+
!.yarn/releases
46+
!.yarn/sdks
47+
!.yarn/versions
48+
.yarn-integrity # Yarn Integrity file
49+
50+
## library folder
51+
dist

.husky/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_

.husky/commit-msg

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

.husky/pre-commit

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

.huskyrc.json

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

0 commit comments

Comments
 (0)