-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added some development quality of life improvements (#87)
+ added a json schema of ruleset files for better error detection / intellisense. + added a ts-config file so that js files are validated for types + added an extensions.json config that recommends the official spectral plugin as well as the red hat yaml plugin + added settings.json that configures automatic IDE linting of the root.openapi.yml file as well as registering the json schema to ruleset files
- Loading branch information
1 parent
c74f887
commit 0995d49
Showing
4 changed files
with
456 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
// See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations. | ||
// Extension identifier format: ${publisher}.${name}. Example: vscode.csharp | ||
// List of extensions which should be recommended for users of this workspace. | ||
"recommendations": [ | ||
"stoplight.spectral", | ||
"redhat.vscode-yaml" | ||
], | ||
// List of extensions recommended by VS Code that should not be recommended for users of this workspace. | ||
"unwantedRecommendations": [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"spectral.rulesetFile": "rulesets/src/.spectral.yml", | ||
"spectral.validateFiles": [ | ||
"*.openapi.yml" | ||
], | ||
"yaml.schemas": { | ||
"spectralRulesetSchema.json": "*.ruleset.yml" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"compilerOptions": { | ||
"outDir": "./dist", | ||
"module": "NodeNext", | ||
"moduleResolution": "NodeNext", | ||
"target": "ESNext", | ||
"noImplicitAny": false, | ||
"checkJs": true, | ||
"allowJs": true, | ||
}, | ||
"include": [ | ||
"test/**/*" | ||
], | ||
"exclude": [ | ||
"./node_modules", | ||
"./dist", | ||
] | ||
} |
Oops, something went wrong.