Skip to content

Commit e62592b

Browse files
authored
ci: fix auto update rule-manifest.json (#392)
1 parent ef8ec85 commit e62592b

File tree

5 files changed

+156
-42
lines changed

5 files changed

+156
-42
lines changed

β€Ž.github/workflows/update-rule-manifest.ymlβ€Ž

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ jobs:
1717
- name: Set up Node.js
1818
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
1919
with:
20-
node-version: 20.19.5
20+
node-version: '24'
2121

2222
- name: Check for rule changes
2323
id: diff
2424
run: |
2525
git fetch origin main
26-
git diff --name-only HEAD~10 HEAD | grep '^internal/rules/' || echo '' > changed_rules.txt
27-
git diff --name-status HEAD~10 HEAD | grep '^internal/rules/' || echo '' > changed_rules_status.txt
26+
git diff --name-only HEAD~10 HEAD | grep '^internal/plugins/' || echo '' > changed_rules.txt
27+
git diff --name-status HEAD~10 HEAD | grep '^internal/plugins/' || echo '' > changed_rules_status.txt
2828
2929
- name: Generate rule-manifest.json if rules changed
3030
if: ${{ hashFiles('changed_rules.txt') != '' }}

β€Žinternal/config/config.goβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ import (
2424
"github.com/web-infra-dev/rslint/internal/plugins/typescript/rules/consistent_type_exports"
2525
"github.com/web-infra-dev/rslint/internal/plugins/typescript/rules/consistent_type_imports"
2626
"github.com/web-infra-dev/rslint/internal/plugins/typescript/rules/default_param_last"
27+
"github.com/web-infra-dev/rslint/internal/plugins/typescript/rules/dot_notation"
2728
"github.com/web-infra-dev/rslint/internal/plugins/typescript/rules/no_array_delete"
2829
"github.com/web-infra-dev/rslint/internal/plugins/typescript/rules/no_base_to_string"
2930
"github.com/web-infra-dev/rslint/internal/plugins/typescript/rules/no_confusing_void_expression"
@@ -82,7 +83,6 @@ import (
8283
"github.com/web-infra-dev/rslint/internal/rule"
8384
"github.com/web-infra-dev/rslint/internal/rules/array_callback_return"
8485
"github.com/web-infra-dev/rslint/internal/rules/constructor_super"
85-
"github.com/web-infra-dev/rslint/internal/rules/dot_notation"
8686
"github.com/web-infra-dev/rslint/internal/rules/for_direction"
8787
"github.com/web-infra-dev/rslint/internal/rules/getter_return"
8888
"github.com/web-infra-dev/rslint/internal/rules/no_async_promise_executor"

0 commit comments

Comments
Β (0)