-
Notifications
You must be signed in to change notification settings - Fork 19
Set up V2 project: Lint #108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,51 @@ | ||
| { | ||
| // Disable the default formatter, use eslint instead | ||
| "prettier.enable": false, | ||
| "editor.formatOnSave": false, | ||
|
|
||
| // Auto fix | ||
| "editor.codeActionsOnSave": { | ||
| "source.fixAll.eslint": "explicit", | ||
| "source.organizeImports": "never" | ||
| }, | ||
|
|
||
| // Silent the stylistic rules in you IDE, but still auto fix them | ||
| "eslint.rules.customizations": [ | ||
| { "rule": "style/*", "severity": "off", "fixable": true }, | ||
| { "rule": "format/*", "severity": "off", "fixable": true }, | ||
| { "rule": "*-indent", "severity": "off", "fixable": true }, | ||
| { "rule": "*-spacing", "severity": "off", "fixable": true }, | ||
| { "rule": "*-spaces", "severity": "off", "fixable": true }, | ||
| { "rule": "*-order", "severity": "off", "fixable": true }, | ||
| { "rule": "*-dangle", "severity": "off", "fixable": true }, | ||
| { "rule": "*-newline", "severity": "off", "fixable": true }, | ||
| { "rule": "*quotes", "severity": "off", "fixable": true }, | ||
| { "rule": "*semi", "severity": "off", "fixable": true } | ||
| ], | ||
|
|
||
| // Enable eslint for all supported languages | ||
| "eslint.validate": [ | ||
| "javascript", | ||
| "javascriptreact", | ||
| "typescript", | ||
| "typescriptreact", | ||
| "vue", | ||
thien-remote marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| "html", | ||
| "markdown", | ||
| "json", | ||
| "json5", | ||
| "jsonc", | ||
| "yaml", | ||
| "toml", | ||
| "xml", | ||
| "gql", | ||
| "graphql", | ||
| "astro", | ||
| "svelte", | ||
| "css", | ||
| "less", | ||
| "scss", | ||
| "pcss", | ||
| "postcss" | ||
| ] | ||
| } | ||
This file contains hidden or 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 @@ | ||
| # Next | ||
|
|
||
| The current version (0.x) has some critical validation bugs | ||
| ([examples](https://github.com/remoteoss/json-schema-form/pull/107)). | ||
| To fix them, we need to re-write the library internals. | ||
| This `next/` folder is where the rewriting is happening | ||
| (now in TypeScript, yey!). | ||
|
|
||
| We expect the main `createHeadlessForm()` API to remain the same, | ||
| avoiding any major breaking change. | ||
| This is under active development, more info soon! |
This file contains hidden or 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,3 @@ | ||
| import antfu from '@antfu/eslint-config' | ||
|
|
||
| export default antfu({}) |
This file contains hidden or 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,27 @@ | ||
| { | ||
| "name": "@remoteoss/json-schema-form", | ||
| "version": "1.0.0-alpha.1", | ||
thien-remote marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| "packageManager": "[email protected]", | ||
thien-remote marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| "description": "WIP V2 – Headless UI form powered by JSON Schemas", | ||
| "author": "Remote.com <[email protected]> (https://remote.com/)", | ||
| "license": "MIT", | ||
| "homepage": "https://json-schema-form.vercel.app/", | ||
| "repository": { | ||
| "type": "git", | ||
| "url": "https://github.com/remoteoss/json-schema-form.git" | ||
| }, | ||
| "keywords": [ | ||
| "JSON", | ||
| "schema", | ||
| "json-schema", | ||
thien-remote marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| "form" | ||
| ], | ||
| "main": "index.js", | ||
thien-remote marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| "scripts": { | ||
| "test": "echo \"Error: no test specified\" && exit 1" | ||
| }, | ||
| "devDependencies": { | ||
| "@antfu/eslint-config": "^3.14.0", | ||
| "eslint": "^9.18.0" | ||
thien-remote marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| } | ||
| } | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.