Skip to content
Source
Sign inSign up
TanStack/db

feat: add react action-enforcement example with custom lint rule #1296

Mergedhugiex(GitHub profile, opens in a new tab)merged 13 commits intomain fromrefs/pull/1296/headmerged by KyleAMathews(GitHub profile, opens in a new tab)

Showing 26 changed files with 95 additions and 1 deletion (loading 22).

x
0 of 26 viewed, 26 left
5 additions and 0 deletions.github/workflows/pr.ymlModified
View file
@@ -179,6 +179,11 @@
uses: tanstack/config/.github/setup@e4b48f16568324f76f467aa4c2aac2f05db632c3
- name: Build Packages
run: pnpm run build
+ - name: Check action enforcement example
+ run: |
+ pnpm --filter @tanstack/db-example-react-action-enforcement test
+ pnpm --filter @tanstack/db-example-react-action-enforcement lint
+ pnpm --filter @tanstack/db-example-react-action-enforcement build
- name: Build Example Site
run: |
cd examples/react/todo
82 additions and 1 deletiondocs/contributing/oracle-coverage.mdModified
View file
@@ -775,6 +775,87 @@
nonzero process exit. Such a run is not green. Raising a test timeout alone
does not let the worker process its progress messages.
​
+## Action enforcement example
+​
+`examples/react/action-enforcement/eslint-rules/no-direct-collection-mutations-oracle.test.js`
+owns the example's file-local lint boundary. Its finite grammar covers 12 binding