Skip to content

Commit

Permalink
Adjust eslint rules
Browse files Browse the repository at this point in the history
  • Loading branch information
jamdelion committed Oct 15, 2024
1 parent f7560df commit ae947d7
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/schemas/*.js
3 changes: 2 additions & 1 deletion docs/eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import js from '@eslint/js';
import globals from 'globals';
import reactHooks from 'eslint-plugin-react-hooks';
import reactRefresh from 'eslint-plugin-react-refresh';
import globals from 'globals';
import tseslint from 'typescript-eslint';

export default tseslint.config(
{ignores: ['dist']},
{
sourceType: 'module',
extends: [js.configs.recommended, ...tseslint.configs.recommended],
files: ['**/*.{ts,tsx}'],
languageOptions: {
Expand Down
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + React + TS</title>
<title>Digital Planning Data Schemas</title>
</head>
<body>
<div id="root"></div>
Expand Down
1 change: 0 additions & 1 deletion docs/public/vite.svg

This file was deleted.

1 change: 1 addition & 0 deletions docs/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import {JsonSchemaViewer} from '@stoplight/json-schema-viewer';
import {Box, injectStyles, Provider as MosaicProvider} from '@stoplight/mosaic';

import {prototypeApplication} from 'schemas';

function App() {
Expand Down
6 changes: 2 additions & 4 deletions tests/usage.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ import addFormats from 'ajv-formats';
import {Schema, Validator} from 'jsonschema';
import {describe, expect, test} from 'vitest';
import applicationSchema from '../schemas/application.json';
import prototypeApplicationSchema from '../schemas/prototypeApplication.json';
import {Application} from '../types/schemas/application';
import {PrototypeApplication} from '../types/schemas/prototypeApplication';

/**
* Helper function to walk /examples directory and collect generated JSON files
Expand Down Expand Up @@ -53,8 +51,8 @@ const schemas = [
describe.each(schemas)('$name', ({schema, examples}) => {
const validator = new Validator();

const _applicationTypeProperty =
'$data.application.type.description' || '$applicationType';
// const _applicationTypeProperty =
// '$data.application.type.description' || '$applicationType';

describe("parsing using the 'jsonschema' library", () => {
describe.each(examples)('$data.application.type.description', example => {
Expand Down

0 comments on commit ae947d7

Please sign in to comment.