-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
wenxuan.feng
committed
Sep 11, 2024
0 parents
commit 1834859
Showing
116 changed files
with
21,404 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }}" | ||
} | ||
}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} |
Oops, something went wrong.