Skip to content

Commit

Permalink
v 3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
lc-cn committed Feb 20, 2024
1 parent 77359b2 commit 90d762a
Show file tree
Hide file tree
Showing 149 changed files with 6,278 additions and 9,545 deletions.
24 changes: 24 additions & 0 deletions .commitlintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"extends": [
"@commitlint/config-conventional"
],
"rules": {
"type-enum": [
2,
"always",
[
"build",
"chore",
"ci",
"docs",
"feat",
"fix",
"perf",
"refactor",
"revert",
"style",
"test"
]
]
}
}
2 changes: 2 additions & 0 deletions .eslingignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
lib/
node_modules/
20 changes: 20 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"root": true,
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended", "prettier"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2022,
"sourceType": "module"
},
"plugins": ["@typescript-eslint", "prettier"],
"rules": {
"prettier/prettier": "error",
"arrow-body-style": "off",
"prefer-arrow-callback": "off",
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": "warn",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-namespace": "off",
"@typescript-eslint/no-var-requires": "warn"
}
}
20 changes: 10 additions & 10 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/zhin.yaml
lib/
/docs/.vitepress/dist/
/docs/.vitepress/cache/
/.idea/
/.vscode/
/.git/
/src/test/*
/node_modules/
/package-lock.json
/**/*/lib
/node_modules
/.idea
/**/*/node_modules
package-lock.json
/test/.*.env
/test/*.yaml
test/*.config.js
test/*.config.ts
/test/data
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx --no -- commitlint --edit ${1}
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

pnpm lint
1 change: 0 additions & 1 deletion .npmrc

This file was deleted.

3 changes: 0 additions & 3 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
lib/
node_modules/
.idea/
CHANGELOG.md
docs
34 changes: 16 additions & 18 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,20 +1,18 @@
{
"useTabs": false,
"tabWidth": 4,
"bracketSpacing": true,
"semi": true,
"quoteProps": "preserve",
"bracketSameLine": true,
"arrowParens": "avoid",
"proseWrap": "always",
"printWidth": 100,
"overrides": [
{
"files": "*.md",
"options": {
"tabWidth": 2,
"printWidth": 2000
}
}
]
"printWidth": 120,
"tabWidth": 2,
"useTabs": false,
"semi": true,
"singleQuote": true,
"quoteProps": "consistent",
"jsxSingleQuote": false,
"trailingComma": "all",
"bracketSpacing": true,
"bracketSameLine": false,
"arrowParens": "avoid",
"htmlWhitespaceSensitivity": "css",
"vueIndentScriptAndStyle": false,
"endOfLine": "lf",
"embeddedLanguageFormatting": "auto",
"singleAttributePerLine": false
}
Loading

0 comments on commit 90d762a

Please sign in to comment.