Skip to content

Commit e59e4d8

Browse files
committed
feat: install, init, configure code tools
- eslint - prettier - typescript - lint-staged - husky - commitlint - jest
1 parent 68bcff0 commit e59e4d8

File tree

793 files changed

+16565
-98
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

793 files changed

+16565
-98
lines changed

.eslintignore

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.yarn/*
2+
.pnp.js
3+
.next
4+
public
5+
generated
6+
dist

.eslintrc.yml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
env:
2+
browser: true
3+
es2021: true
4+
node: true
5+
extends:
6+
- 'eslint:recommended'
7+
- 'plugin:react/recommended'
8+
- 'plugin:@typescript-eslint/recommended'
9+
- 'prettier'
10+
parser: '@typescript-eslint/parser'
11+
parserOptions:
12+
ecmaFeatures:
13+
jsx: true
14+
ecmaVersion: 12
15+
sourceType: module
16+
plugins:
17+
- react
18+
- '@typescript-eslint'
19+
rules: {}

.gitignore

+4-66
Original file line numberDiff line numberDiff line change
@@ -22,28 +22,6 @@ lib-cov
2222
coverage
2323
*.lcov
2424

25-
# nyc test coverage
26-
.nyc_output
27-
28-
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
29-
.grunt
30-
31-
# Bower dependency directory (https://bower.io/)
32-
bower_components
33-
34-
# node-waf configuration
35-
.lock-wscript
36-
37-
# Compiled binary addons (https://nodejs.org/api/addons.html)
38-
build/Release
39-
40-
# Dependency directories
41-
node_modules/
42-
jspm_packages/
43-
44-
# TypeScript v1 declaration files
45-
typings/
46-
4725
# TypeScript cache
4826
*.tsbuildinfo
4927

@@ -53,61 +31,21 @@ typings/
5331
# Optional eslint cache
5432
.eslintcache
5533

56-
# Microbundle cache
57-
.rpt2_cache/
58-
.rts2_cache_cjs/
59-
.rts2_cache_es/
60-
.rts2_cache_umd/
61-
62-
# Optional REPL history
63-
.node_repl_history
64-
65-
# Output of 'npm pack'
66-
*.tgz
67-
6834
# Yarn Integrity file
6935
.yarn-integrity
7036

71-
# dotenv environment variables file
72-
.env
73-
.env.test
74-
75-
# parcel-bundler cache (https://parceljs.org/)
76-
.cache
77-
7837
# Next.js build output
7938
.next
80-
81-
# Nuxt.js build / generate output
82-
.nuxt
8339
dist
8440

85-
# Gatsby files
86-
.cache/
87-
# Comment in the public line in if your project uses Gatsby and *not* Next.js
88-
# https://nextjs.org/blog/next-9-1#public-directory-support
89-
# public
90-
91-
# vuepress build output
92-
.vuepress/dist
93-
94-
# Serverless directories
95-
.serverless/
96-
97-
# FuseBox cache
98-
.fusebox/
99-
100-
# DynamoDB Local files
101-
.dynamodb/
102-
103-
# TernJS port file
104-
.tern-port
105-
10641
# Yarn
10742
.yarn/*
10843
!.yarn/cache
10944
!.yarn/patches
11045
!.yarn/plugins
11146
!.yarn/releases
11247
!.yarn/sdks
113-
!.yarn/versions
48+
!.yarn/versions
49+
50+
# IDEs
51+
.idea/

.husky/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_

.husky/commit-msg

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
yarn commitlint --edit $1

.husky/pre-commit

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
yarn lint-staged

.lintstagedrc.yml

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
packages/**/*.{js,jsx,ts,tsx}:
2+
- 'eslint --fix --max-warnings=0'
3+
- 'prettier --write'

0 commit comments

Comments
 (0)