Skip to content

Commit 7bb5e87

Browse files
committed
init projects
0 parents  commit 7bb5e87

21 files changed

+5271
-0
lines changed

.env

Whitespace-only changes.

.eslintignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.history
2+
.husky
3+
.vscode
4+
coverage
5+
dist
6+
node_modules
7+
vite.config.ts

.eslintrc

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"root": true,
3+
"parser": "@typescript-eslint/parser",
4+
"plugins": ["@typescript-eslint", "prettier"],
5+
"extends": [
6+
"eslint:recommended",
7+
"plugin:@typescript-eslint/eslint-recommended",
8+
"plugin:@typescript-eslint/recommended",
9+
"prettier"
10+
],
11+
"env": {
12+
"browser": true,
13+
"node": true
14+
},
15+
"rules": {
16+
"prettier/prettier": "error",
17+
"@typescript-eslint/explicit-function-return-type": "off",
18+
"@typescript-eslint/no-non-null-assertion": "off",
19+
"@typescript-eslint/strict-boolean-expressions": "off",
20+
"@typescript-eslint/restrict-template-expressions": "off"
21+
}
22+
}

.gitignore

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
dist
12+
dist-ssr
13+
*.local
14+
coverage
15+
16+
# Editor directories and files
17+
.vscode/*
18+
.history/*
19+
!.vscode/extensions.json
20+
.idea
21+
.DS_Store
22+
*.suo
23+
*.ntvs*
24+
*.njsproj
25+
*.sln
26+
*.sw?
27+
dist/
28+
coverage/

.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

.lintstagedrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"./**/*.{ts,html,json}": "npm run format:scripts",
3+
"./**/*.{css,scss}": "npm run format:styles"
4+
}

.prettierignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.history
2+
.husky
3+
.vscode
4+
coverage
5+
dist
6+
node_modules
7+
vite.config.ts

.prettierrc

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"printWidth": 80,
3+
"tabWidth": 2,
4+
"singleQuote": false,
5+
"trailingComma": "es5",
6+
"arrowParens": "avoid",
7+
"bracketSpacing": true,
8+
"useTabs": false,
9+
"endOfLine": "auto",
10+
"singleAttributePerLine": false,
11+
"bracketSameLine": false,
12+
"jsxBracketSameLine": false,
13+
"jsxSingleQuote": false,
14+
"quoteProps": "as-needed",
15+
"semi": true
16+
}

CHANGELOG.md

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

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# README
2+
3+
Typescript lib template based on:
4+
5+
- vite
6+
- vitetest
7+
8+
## commands
9+
10+
```shell
11+
npm run test:coverage
12+
npm run format
13+
npm run lint
14+
npm run build
15+
```

0 commit comments

Comments
 (0)