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
51 changes: 51 additions & 0 deletions next/.vscode/settings.json
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",
"html",
"markdown",
"json",
"json5",
"jsonc",
"yaml",
"toml",
"xml",
"gql",
"graphql",
"astro",
"svelte",
"css",
"less",
"scss",
"pcss",
"postcss"
]
}
11 changes: 11 additions & 0 deletions next/README.md
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!
3 changes: 3 additions & 0 deletions next/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import antfu from '@antfu/eslint-config'

export default antfu({})
27 changes: 27 additions & 0 deletions next/package.json
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",
"packageManager": "[email protected]",
"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",
"form"
],
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"devDependencies": {
"@antfu/eslint-config": "^3.14.0",
"eslint": "^9.18.0"
}
}
Loading
Loading