Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
wenxuan.feng committed Sep 11, 2024
0 parents commit 1834859
Show file tree
Hide file tree
Showing 116 changed files with 21,404 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.eslintrc.js

*.d.ts
etherscan.js
index.js

/build-test
/internal

vite.config.ts
api/
78 changes: 78 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
{
"extends": [
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended"
],
"plugins": [
"prettier",
"import"
],
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module"
},
"rules": {
"@typescript-eslint/explicit-member-accessibility": 0,
"@typescript-eslint/explicit-function-return-type": 0,
"@typescript-eslint/no-parameter-properties": 0,
"@typescript-eslint/interface-name-prefix": 0,
"@typescript-eslint/explicit-module-boundary-types": 0,
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/ban-types": "off",
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/no-empty-function": 0,
"prefer-rest-params": "off",
"prettier/prettier": "off",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-non-null-asserted-optional-chain": "off",
"@typescript-eslint/no-duplicate-enum-values": "warn",
"@typescript-eslint/no-unsafe-assignment": "off",
"@typescript-eslint/no-unsafe-call": "off",
"@typescript-eslint/no-unsafe-member-access": "off",
"@typescript-eslint/no-unsafe-return": "off",
"@typescript-eslint/no-unsafe-argument": "off",
"import/order": [
"error",
{
"groups": [
"builtin",
"external",
"internal",
"parent",
"sibling",
"index"
],
"newlines-between": "always",
},
],
"@typescript-eslint/no-unused-vars": [
"error",
{
"varsIgnorePattern": "^_",
"argsIgnorePattern": "^_",
"ignoreRestSiblings": true,
},
],
},
"ignorePatterns": [
"node_modules/",
"dist/",
"build/",
"**/*.spec.ts"
],
"overrides": [
{
"files": [
"packages/**/*.ts",
"packages/**/*.tsx",
"packages/**/*.js"
],
"parser": "@typescript-eslint/parser",
},
],
"root": true,
"env": {
"node": true,
"es6": true,
}
}
26 changes: 26 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Notify Lark After Vercel Deployment

on:
push:
branches:
- main
- develop

jobs:
notify-lark:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Send success notification to Lark
run: |
curl -X POST ${{ secrets.LARK_WEBHOOK_URL }} \
-H 'Content-Type: application/json' \
-d '{
"msg_type": "text",
"content": {
"text": "Vercel 发布中... ${{ env.PROJECT_NAME }} 项目已成功发布,等待3-5分钟,部署后访问地址: ${{ secrets.VERCEL_DEPLOYMENT_URL }}"
}
}'
20 changes: 20 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
.vscode
.idea

dist
lib
node_modules
yarn-error.log
yarn.lock

.DS_Store
.env

.eslintcache
.prettiercache

.yalc
yalc.lock
.npmrc

.env*
14 changes: 14 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/node_modules
/dist
/internal
/*.d.ts
/*.d.ts.map
/*.js
/*.js.map
/build-test
/test/fixture-projects/**/artifacts
/test/fixture-projects/**/artifacts-dir
/test/fixture-projects/**/cache
CHANGELOG.md
.nyc_output
vite.config.ts
24 changes: 24 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"useTabs": false,
"tabWidth": 4,
"printWidth": 100,
"bracketSpacing": true,
"semi": true,
"quoteProps": "preserve",
"bracketSameLine": true,
"arrowParens": "avoid",
"proseWrap": "always",
"overrides": [
{
"files": "*.md",
"options": {
"tabWidth": 2,
"printWidth": 2000
}
}
],
"singleQuote": true,
"jsxSingleQuote": true,
"trailingComma": "all",
"embeddedLanguageFormatting": "auto"
}
Loading

0 comments on commit 1834859

Please sign in to comment.