Skip to content
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

feat: basic schema viewer able to be deployed #254

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from 2 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
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/schemas/*.js
26 changes: 23 additions & 3 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,28 @@
{
"extends": "./node_modules/gts/",
"extends": [
"./node_modules/gts/",
"plugin:@typescript-eslint/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 2020
},
"env": {
"browser": true,
"commonjs": true,
"es2021": true,
"node": true
},
"plugins": [
"@typescript-eslint",
"react"
],
"rules": {
"n/no-unpublished-import": ["error", {
"allowModules": ["vitest", "jsonschema"]
}]
"allowModules": ["vitest", "jsonschema"]
}],
"react/react-in-jsx-scope": "off",
"react/jsx-no-undef": "off"
}
}
23 changes: 23 additions & 0 deletions docs/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# production
/build

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*
12 changes: 12 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Digital planning data schemas docs

This is an experimental sub-folder for JSON Schema viewers & documentation generators.

We're currently trying out [@stoplight/json-schema-viewer](https://github.com/stoplightio/json-schema-viewer) on top of a basic [create-react-app](https://create-react-app.dev/) starter site.

## Local development

```
pnpm i
pnpm run start
```
Loading