Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 11 additions & 4 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
},
"plugins": [
"@typescript-eslint",
"eslint-plugin-import",
"eslint-plugin-eslint-comments",
"eslint-plugin-jsdoc"
"import",
"eslint-comments",
"jsdoc"
],
"env": {
"node": true,
Expand Down Expand Up @@ -76,6 +76,13 @@
],

// 允许 import 文件时缺失后缀
"import/extensions": "off"
"import/extensions": "off",

// 允许混用 import 和 module.exports(测试 fixtures 中存在此模式)
"import/no-import-module-exports": "off",

// TS enum 会被 no-shadow 误报
"no-shadow": "off",
"@typescript-eslint/no-shadow": "error"
}
}
10 changes: 6 additions & 4 deletions .github/workflows/lint-and-test-code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,17 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Pull Code
uses: actions/checkout@v1
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Node.js
uses: actions/setup-node@master
uses: actions/setup-node@v4
with:
node-version: '22.x'
- name: Install Dependencies
run: yarn
- name: Commit Linter
uses: wagoid/commitlint-github-action@v1.2.2
uses: wagoid/commitlint-github-action@v6
with:
configFile: '.commitlintrc.yml'
env:
Expand All @@ -30,4 +32,4 @@ jobs:
- name: Run Tests
run: yarn test
- name: codecov
uses: codecov/codecov-action@v1
uses: codecov/codecov-action@v5
2 changes: 1 addition & 1 deletion .github/workflows/publish-to-npm-alpha.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,4 @@ jobs:
- name: Run Tests
run: yarn test
- name: codecov
uses: codecov/codecov-action@v4
uses: codecov/codecov-action@v5
1 change: 1 addition & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npx --no -- commitlint --edit $1
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npx lint-staged
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
22
625 changes: 285 additions & 340 deletions examples/https/yarn.lock

Large diffs are not rendered by default.

Loading
Loading