Skip to content

Commit

Permalink
feat: add vite and some new packages
Browse files Browse the repository at this point in the history
  • Loading branch information
Silent-Watcher committed Sep 26, 2023
1 parent bc2c40a commit b16ff5c
Show file tree
Hide file tree
Showing 61 changed files with 10,545 additions and 1,355 deletions.
5 changes: 5 additions & 0 deletions .alexignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
docs/code-of-conduct.md
node_modules
.git
dist

2 changes: 2 additions & 0 deletions .alexrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
noBinary: true
profanitySureness: 1
9 changes: 9 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
root = true

[*]
charset = utf-8
indent_style = tab
indent_size = 4
end_of_line = crlf
trim_trailing_whitespace = true
insert_final_newline = false
5 changes: 5 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
node_modules
*.html
*.css
.git
dist
30 changes: 30 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"env": {
"browser": true,
"node": true,
"commonjs": true,
"es2021": true
},
"extends": [
"plugin:@cspell/recommended",
"eslint:recommended",
"plugin:node/recommended",
"prettier"
],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module",
"allowImportExportEverywhere": true
},
"plugins": ["prettier"],
"rules": {
"semi": ["error", "always"],
"eqeqeq": "warn",
"camelcase": "error",
"strict": "off",
"prefer-const": "warn",
"no-console": "warn",
"prettier/prettier": "warn",
"sort-vars": "off"
}
}
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @Silent-Watcher
24 changes: 24 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
9 changes: 9 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/sh
if ! head -1 "$1" | grep -qE "^(feat|fix|chore|docs|test|style|refactor|perf|build|ci|revert)(\(.+?\))?: .{1,}$"; then
echo "Aborting commit. Your commit message is invalid." >&2
exit 1
fi
if ! head -1 "$1" | grep -qE "^.{1,88}$"; then
echo "Aborting commit. Your commit message is too long." >&2
exit 1
fi
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-staged
9 changes: 9 additions & 0 deletions .lintstagedrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"*.(js|ts)": [
"pnpm lint",
"pnpm lint:fix",
"pnpm prettier",
"pnpm lint:language"
],
"*.(html|css|md)": ["pnpm prettier", "pnpm lint:language"]
}
3 changes: 3 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules
.git
dist
4 changes: 4 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"semi": true,
"singleQuote": true
}
4 changes: 3 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
{
"cSpell.words": ["Btns"]
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
"cSpell.words": ["Swal", "sweetalert"]
}
Loading

0 comments on commit b16ff5c

Please sign in to comment.