Skip to content

Commit

Permalink
Add json schema (#133)
Browse files Browse the repository at this point in the history
  • Loading branch information
Petter Walbø Johnsgård committed Feb 19, 2022
1 parent 611e3ae commit 8957f7c
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .editorconfig
Expand Up @@ -7,3 +7,6 @@ end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.yml]
indent_style = space
1 change: 1 addition & 0 deletions .eslintrc.json
@@ -1,4 +1,5 @@
{
"$schema": "https://json.schemastore.org/eslintrc",
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"extends": [
Expand Down
19 changes: 19 additions & 0 deletions .github/workflows/validate-json.yml
@@ -0,0 +1,19 @@
name: Validate JSON

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Validate JSON files
uses: walbo/validate-json@v1.0.2
with:
files: .eslintrc.json, tsconfig.json
print-valid-files: true
strict: false
1 change: 1 addition & 0 deletions tsconfig.json
@@ -1,4 +1,5 @@
{
"$schema": "http://json.schemastore.org/tsconfig",
"compilerOptions": {
"baseUrl": ".",
"target": "es5",
Expand Down

0 comments on commit 8957f7c

Please sign in to comment.