forked from TanStack/form
-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
f3047f3
commit 9a18e45
Showing
97 changed files
with
36,202 additions
and
8,757 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,7 @@ | ||
# Browsers we support | ||
Chrome >= 73 | ||
Firefox >= 78 | ||
Edge >= 79 | ||
Safari >= 12.0 | ||
iOS >= 12.0 | ||
opera >= 53 |
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,6 @@ | ||
{ | ||
"installCommand": "install:csb", | ||
"sandboxes": ["/examples/react/basic-typescript", "/examples/solid/basic-typescript", "/examples/svelte/basic", "/examples/vue/basic"], | ||
"packages": ["packages/**"], | ||
"node": "16" | ||
} |
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,9 @@ | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
indent_style = space | ||
indent_size = 2 | ||
end_of_line = lf | ||
insert_final_newline = true | ||
trim_trailing_whitespace = 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 |
---|---|---|
@@ -1,3 +1,56 @@ | ||
{ | ||
"extends": ["react-app", "prettier"] | ||
"root": true, | ||
"parser": "@typescript-eslint/parser", | ||
"plugins": ["@typescript-eslint", "import"], | ||
"extends": [ | ||
"plugin:@typescript-eslint/eslint-recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"plugin:import/typescript", | ||
"react-app", | ||
"prettier" | ||
], | ||
"env": { | ||
"es6": true | ||
}, | ||
"parserOptions": { | ||
"project": "./tsconfig.base.json", | ||
"sourceType": "module" | ||
}, | ||
"settings": { | ||
"import/parsers": { | ||
"@typescript-eslint/parser": [".ts", ".tsx"] | ||
}, | ||
"import/resolver": { | ||
"node": true, | ||
"typescript": { | ||
"project": "packages/*/tsconfig.json" | ||
} | ||
}, | ||
"react": { | ||
"version": "detect" | ||
} | ||
}, | ||
"rules": { | ||
"react/jsx-key": ["error", { "checkFragmentShorthand": true }], | ||
"@typescript-eslint/ban-types": "off", | ||
"@typescript-eslint/ban-ts-comment": "off", | ||
"@typescript-eslint/consistent-type-imports": "error", | ||
"@typescript-eslint/explicit-module-boundary-types": "off", | ||
"@typescript-eslint/no-empty-interface": "off", | ||
"@typescript-eslint/no-explicit-any": "off", | ||
"@typescript-eslint/no-non-null-assertion": "off", | ||
"@typescript-eslint/no-unnecessary-condition": "error", | ||
"@typescript-eslint/no-inferrable-types": [ | ||
"error", | ||
{ | ||
"ignoreParameters": true | ||
} | ||
], | ||
"no-shadow": "error", | ||
"import/no-cycle": "error", | ||
"import/no-unresolved": ["error", { "ignore": ["^@tanstack\/"] }], | ||
"import/no-unused-modules": ["off", { "unusedExports": true }], | ||
"no-redeclare": "off", | ||
"react-hooks/exhaustive-deps": "error" | ||
} | ||
} |
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,2 @@ | ||
# Auto detect text files and perform LF normalization | ||
* text=auto eol=lf |
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 @@ | ||
github: [tannerlinsley, tkdodo] |
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,132 @@ | ||
name: '🐛 Bug report' | ||
description: Report a reproducible bug or regression | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: | | ||
Thank you for reporting an issue :pray:. | ||
This issue tracker is for reporting reproducible bugs or regression's found in [TanStack Form](https://github.com/TanStack/form) | ||
If you have a question about how to achieve something and are struggling, please post a question | ||
inside of TanStack Form's [Discussions tab](https://github.com/TanStack/form/discussions) | ||
Before submitting a new bug/issue, please check the links below to see if there is a solution or question posted there already: | ||
- TanStack Form's [Discussions tab](https://github.com/TanStack/form/discussions) | ||
- TanStack Form's [Open Issues](https://github.com/TanStack/form/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc) | ||
- TanStack Form's [Closed Issues](https://github.com/TanStack/form/issues?q=is%3Aissue+sort%3Aupdated-desc+is%3Aclosed) | ||
The more information you fill in, the better the community can help you. | ||
- type: textarea | ||
id: description | ||
attributes: | ||
label: Describe the bug | ||
description: Provide a clear and concise description of the challenge you are running into. | ||
validations: | ||
required: true | ||
- type: input | ||
id: link | ||
attributes: | ||
label: Your minimal, reproducible example | ||
description: | | ||
Please add a link to a minimal reproduction. | ||
Note: | ||
- Your bug may get fixed much faster if we can run your code and it doesn't have dependencies other than React/Solid/Vue/Svelte. | ||
- To create a shareable code example for web, you can use CodeSandbox (https://codesandbox.io/s/new) or Stackblitz (https://stackblitz.com/). | ||
- Please make sure the example is complete and runnable - e.g. avoid localhost URLs. | ||
- To stub out real api requests - Promise.resolve and Promise.reject are good options for easy reproduction | ||
- Feel free to fork any of the official CodeSandbox examples to reproduce your issue: https://tanstack.com/form/v4/docs/examples/react/simple | ||
- For React Native, you can use: https://snack.expo.dev/ | ||
- For TypeScript related issues only, a TypeScript Playground link might be sufficient: https://www.typescriptlang.org/play | ||
- Please read these tips for providing a minimal example: https://stackoverflow.com/help/mcve. | ||
placeholder: | | ||
e.g. Code Sandbox, Stackblitz, Expo Snack or TypeScript playground | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: steps | ||
attributes: | ||
label: Steps to reproduce | ||
description: Describe the steps we have to take to reproduce the behavior. | ||
placeholder: | | ||
1. Go to '...' | ||
2. Click on '....' | ||
3. Scroll down to '....' | ||
4. See error | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: expected | ||
attributes: | ||
label: Expected behavior | ||
description: Provide a clear and concise description of what you expected to happen. | ||
placeholder: | | ||
As a user, I expected ___ behavior but i am seeing ___ | ||
validations: | ||
required: true | ||
- type: dropdown | ||
attributes: | ||
label: How often does this bug happen? | ||
description: | | ||
Following the repro steps above, how easily are you able to reproduce this bug? | ||
options: | ||
- Every time | ||
- Often | ||
- Sometimes | ||
- Only once | ||
- type: textarea | ||
id: screenshots_or_videos | ||
attributes: | ||
label: Screenshots or Videos | ||
description: | | ||
If applicable, add screenshots or a video to help explain your problem. | ||
For more information on the supported file image/file types and the file size limits, please refer | ||
to the following link: https://docs.github.com/en/github/writing-on-github/working-with-advanced-formatting/attaching-files | ||
placeholder: | | ||
You can drag your video or image files inside of this editor ↓ | ||
- type: textarea | ||
id: platform | ||
attributes: | ||
label: Platform | ||
description: | | ||
Please let us know which Operting System, Browser and Browser version you were using when the issue occurred. | ||
placeholder: | | ||
- OS: [e.g. macOS, Windows, Linux, iOS, Android] | ||
- Browser: [e.g. Chrome, Safari, Firefox, React Native] | ||
- Version: [e.g. 91.1] | ||
validations: | ||
required: true | ||
- type: dropdown | ||
id: adapter | ||
attributes: | ||
label: Tanstack Form adapter | ||
description: | | ||
Please let us know which adapter of TanStack Form you were using when the issue occurred. | ||
options: | ||
- react-form | ||
- solid-form | ||
- svelte-form | ||
- vue-form | ||
- vanilla | ||
- type: input | ||
id: rq-version | ||
attributes: | ||
label: TanStack Form version | ||
description: | | ||
Please let us know the exact version of TanStack Form you were using when the issue occurred. Please don't just put in "latest", as this is subject to change. | ||
placeholder: | | ||
e.g. v3.30.1 | ||
validations: | ||
required: true | ||
- type: input | ||
id: ts-version | ||
attributes: | ||
label: TypeScript version | ||
description: | | ||
If you are using TypeScript, please let us know the exact version of TypeScript you were using when the issue occurred. | ||
placeholder: | | ||
e.g. v4.5.4 | ||
- type: textarea | ||
id: additional | ||
attributes: | ||
label: Additional context | ||
description: Add any other context about the problem here. |
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,8 @@ | ||
blank_issues_enabled: false | ||
contact_links: | ||
- name: Feature Requests & Questions | ||
url: https://github.com/TanStack/form/discussions | ||
about: Please ask and answer questions here. | ||
- name: Community Chat | ||
url: https://discord.gg/mQd7egN | ||
about: A dedicated discord server hosted by Tanner Linsley |
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,58 @@ | ||
name: ci | ||
concurrency: | ||
group: publish-${{ github.github.base_ref }} | ||
cancel-in-progress: true | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
tag: | ||
description: override release tag | ||
required: false | ||
push: | ||
branches: | ||
- 'main' | ||
- 'alpha' | ||
- 'beta' | ||
env: | ||
NX_DAEMON: false | ||
NX_VERBOSE_LOGGING: true | ||
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }} | ||
jobs: | ||
test-and-publish: | ||
if: github.repository == 'TanStack/form' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/alpha' || github.ref == 'refs/heads/beta') | ||
name: 'Test & Publish' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: '0' | ||
- uses: pnpm/[email protected] | ||
with: | ||
version: 7 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16.14.2 | ||
registry-url: https://registry.npmjs.org/ | ||
cache: 'pnpm' | ||
- name: Install dependencies | ||
run: pnpm --filter "./packages/**" --filter form --prefer-offline install | ||
- name: Run Tests | ||
uses: nick-fields/[email protected] | ||
with: | ||
command: pnpm run test:ci --base=${{ github.event.before }} | ||
timeout_minutes: 10 | ||
max_attempts: 3 | ||
- name: Publish | ||
run: | | ||
git config --global user.name 'Tanner Linsley' | ||
git config --global user.email '[email protected]' | ||
npm config set '//registry.npmjs.org/:_authToken' "${NPM_TOKEN}" | ||
pnpm run cipublish | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | ||
GH_TOKEN: ${{ secrets.GH_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
TAG: ${{ inputs.tag }} | ||
- name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@v3 |
Oops, something went wrong.