Skip to content

Commit 11e62f6

Browse files
authored
feat: Add schemas from popular ESLlint plugins (#3453)
1 parent 70cdabf commit 11e62f6

11 files changed

+13750
-16
lines changed

src/api/json/catalog.json

+6
Original file line numberDiff line numberDiff line change
@@ -1783,6 +1783,12 @@
17831783
],
17841784
"url": "https://json.schemastore.org/eslintrc.json"
17851785
},
1786+
{
1787+
"name": "ESLint Plugin Partial",
1788+
"description": "Extracted from the most popular ESLint plugins",
1789+
"fileMatch": [],
1790+
"url": "https://json.schemastore.org/partial-eslint-plugins.json"
1791+
},
17861792
{
17871793
"name": "Facets - FSDL - Application",
17881794
"description": "Facets Stack Definition Language for Applications",

src/schema-validation.json

+8
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@
6868
"dotnetcli.host.json",
6969
"drone.json",
7070
"electron-builder.json",
71+
"eslintrc.json",
7172
"esmrc.json",
7273
"expo-37.0.0.json",
7374
"expo-38.0.0.json",
@@ -142,6 +143,7 @@
142143
"package.manifest.json",
143144
"paper-plugin.json",
144145
"pattern.json",
146+
"partial-eslint-plugins.json",
145147
"phraseapp.json",
146148
"plagiarize-0.0.json",
147149
"plagiarize-me-0.0.json",
@@ -652,6 +654,7 @@
652654
"package.json": {
653655
"externalSchema": [
654656
"eslintrc.json",
657+
"partial-eslint-plugins.json",
655658
"prettierrc.json",
656659
"ava.json",
657660
"npm-badges.json",
@@ -1150,6 +1153,11 @@
11501153
"launchsettings.json": {
11511154
"unknownKeywords": ["allowTrailingCommas"]
11521155
}
1156+
},
1157+
{
1158+
"eslintrc.json": {
1159+
"externalSchema": ["partial-eslint-plugins.json"]
1160+
}
11531161
}
11541162
],
11551163
"skiptest": [

src/schemas/json/ava.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
2-
"$schema": "http://json-schema.org/draft-04/schema#",
2+
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"$id": "https://json.schemastore.org/ava.json",
34
"additionalProperties": false,
45
"definitions": {
56
"path": {
@@ -20,7 +21,6 @@
2021
}
2122
},
2223
"description": "Configuration Schema for the JavaScript test runner AVA",
23-
"id": "https://json.schemastore.org/ava.json",
2424
"properties": {
2525
"files": {
2626
"$ref": "#/definitions/array-of-paths",

src/schemas/json/eslintrc.json

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
2-
"$schema": "http://json-schema.org/draft-04/schema#",
2+
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"$id": "https://json.schemastore.org/eslintrc.json",
34
"definitions": {
45
"stringOrStringArray": {
56
"oneOf": [
@@ -1128,7 +1129,6 @@
11281129
}
11291130
}
11301131
},
1131-
"id": "https://json.schemastore.org/eslintrc.json",
11321132
"properties": {
11331133
"ecmaFeatures": {
11341134
"description": "By default, ESLint supports only ECMAScript 5 syntax. You can override that setting to enable support for ECMAScript 6 as well as JSX by using configuration settings.",
@@ -1431,6 +1431,9 @@
14311431
},
14321432
{
14331433
"$ref": "#/definitions/legacy"
1434+
},
1435+
{
1436+
"$ref": "https://json.schemastore.org/partial-eslint-plugins.json"
14341437
}
14351438
]
14361439
},

src/schemas/json/jscpd.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
2-
"$schema": "http://json-schema.org/draft-04/schema#",
2+
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"$id": "https://json.schemastore.org/jscpd.json",
34
"additionalProperties": false,
45
"definitions": {
56
"colorPreset": {
@@ -188,7 +189,6 @@
188189
]
189190
}
190191
},
191-
"id": "https://json.schemastore.org/jscpd.json",
192192
"properties": {
193193
"minLines": {
194194
"type": "integer",

src/schemas/json/npm-badges.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"$schema": "http://json-schema.org/draft-04/schema#",
2+
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"$id": "https://json.schemastore.org/npm-badges.json",
34
"additionalProperties": false,
45
"description": "An object hash containing an `items` array and optionally a `config` object",
5-
"id": "https://json.schemastore.org/npm-badges.json",
66
"properties": {
77
"list": {
88
"type": "array",

src/schemas/json/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "http://json-schema.org/draft-04/schema#",
2+
"$schema": "http://json-schema.org/draft-07/schema#",
33
"title": "JSON schema for NPM package.json files",
44
"definitions": {
55
"person": {
@@ -853,5 +853,5 @@
853853
]
854854
}
855855
],
856-
"id": "https://json.schemastore.org/package.json"
856+
"$id": "https://json.schemastore.org/package.json"
857857
}

0 commit comments

Comments
 (0)