Skip to content

Commit 038efcf

Browse files
authored
build(next): Set up lint (#108)
* build(next): Init project * build(next): Add lint * build(next): Switch to 1.0 * build(next): Add README
1 parent 85dc3d6 commit 038efcf

File tree

5 files changed

+3103
-0
lines changed

5 files changed

+3103
-0
lines changed

next/.vscode/settings.json

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
{
2+
// Disable the default formatter, use eslint instead
3+
"prettier.enable": false,
4+
"editor.formatOnSave": false,
5+
6+
// Auto fix
7+
"editor.codeActionsOnSave": {
8+
"source.fixAll.eslint": "explicit",
9+
"source.organizeImports": "never"
10+
},
11+
12+
// Silent the stylistic rules in you IDE, but still auto fix them
13+
"eslint.rules.customizations": [
14+
{ "rule": "style/*", "severity": "off", "fixable": true },
15+
{ "rule": "format/*", "severity": "off", "fixable": true },
16+
{ "rule": "*-indent", "severity": "off", "fixable": true },
17+
{ "rule": "*-spacing", "severity": "off", "fixable": true },
18+
{ "rule": "*-spaces", "severity": "off", "fixable": true },
19+
{ "rule": "*-order", "severity": "off", "fixable": true },
20+
{ "rule": "*-dangle", "severity": "off", "fixable": true },
21+
{ "rule": "*-newline", "severity": "off", "fixable": true },
22+
{ "rule": "*quotes", "severity": "off", "fixable": true },
23+
{ "rule": "*semi", "severity": "off", "fixable": true }
24+
],
25+
26+
// Enable eslint for all supported languages
27+
"eslint.validate": [
28+
"javascript",
29+
"javascriptreact",
30+
"typescript",
31+
"typescriptreact",
32+
"vue",
33+
"html",
34+
"markdown",
35+
"json",
36+
"json5",
37+
"jsonc",
38+
"yaml",
39+
"toml",
40+
"xml",
41+
"gql",
42+
"graphql",
43+
"astro",
44+
"svelte",
45+
"css",
46+
"less",
47+
"scss",
48+
"pcss",
49+
"postcss"
50+
]
51+
}

next/README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Next
2+
3+
The current version (0.x) has some critical validation bugs
4+
([examples](https://github.com/remoteoss/json-schema-form/pull/107)).
5+
To fix them, we need to re-write the library internals.
6+
This `next/` folder is where the rewriting is happening
7+
(now in TypeScript, yey!).
8+
9+
We expect the main `createHeadlessForm()` API to remain the same,
10+
avoiding any major breaking change.
11+
This is under active development, more info soon!

next/eslint.config.mjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import antfu from '@antfu/eslint-config'
2+
3+
export default antfu({})

next/package.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"name": "@remoteoss/json-schema-form",
3+
"version": "1.0.0-alpha.1",
4+
"packageManager": "[email protected]",
5+
"description": "WIP V2 – Headless UI form powered by JSON Schemas",
6+
"author": "Remote.com <[email protected]> (https://remote.com/)",
7+
"license": "MIT",
8+
"homepage": "https://json-schema-form.vercel.app/",
9+
"repository": {
10+
"type": "git",
11+
"url": "https://github.com/remoteoss/json-schema-form.git"
12+
},
13+
"keywords": [
14+
"JSON",
15+
"schema",
16+
"json-schema",
17+
"form"
18+
],
19+
"main": "index.js",
20+
"scripts": {
21+
"test": "echo \"Error: no test specified\" && exit 1"
22+
},
23+
"devDependencies": {
24+
"@antfu/eslint-config": "^3.14.0",
25+
"eslint": "^9.18.0"
26+
}
27+
}

0 commit comments

Comments
 (0)