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

fix: Fix ESLint schema #3272

Merged
merged 1 commit into from
Jul 23, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/cspell-eslint-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"scripts": {
"build": "npm run build-schema && npm run build-rollup",
"build-rollup": "rollup --config rollup.config.ts --configPlugin typescript",
"build-schema": "ts-json-schema-generator --no-top-ref --path src/options.ts --type Options -o ./src/_auto_generated_/options.schema.json",
"build-schema": "ts-json-schema-generator --no-top-ref --expose none --path src/options.ts --type Options -o ./src/_auto_generated_/options.schema.json",
"watch": "npm run build-rollup -- --watch",
"clean": "rimraf dist coverage .tsbuildinfo",
"clean-build": "npm run clean && npm run build",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,30 +1,7 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"definitions": {
"CustomWordListFile": {
"additionalProperties": false,
"properties": {
"addWords": {
"description": "**Experimental**: Provide a fix option to add words to the file.\n\nNote: this does not yet work perfectly.",
"type": "boolean"
},
"path": {
"$ref": "#/definitions/CustomWordListFilePath",
"description": "Path to word list file. File format: 1 word per line"
}
},
"required": [
"path",
"addWords"
],
"type": "object"
},
"CustomWordListFilePath": {
"description": "Specify a path to a custom word list file",
"type": "string"
}
},
"definitions": {},
"properties": {
"checkComments": {
"default": true,
Expand All @@ -49,10 +26,26 @@
"customWordListFile": {
"anyOf": [
{
"$ref": "#/definitions/CustomWordListFilePath"
"description": "Specify a path to a custom word list file",
"type": "string"
},
{
"$ref": "#/definitions/CustomWordListFile"
"additionalProperties": false,
"properties": {
"addWords": {
"description": "**Experimental**: Provide a fix option to add words to the file.\n\nNote: this does not yet work perfectly.",
"type": "boolean"
},
"path": {
"description": "Path to word list file. File format: 1 word per line",
"type": "string"
}
},
"required": [
"path",
"addWords"
],
"type": "object"
}
],
"description": "Specify a path to a custom word list file"
Expand Down