@ts-type/package-dts 2.0.7 → 3.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +37 -0
- package/README.md +39 -14
- package/eslintrc-json.js +1 -1
- package/eslintrc-json.js.map +1 -1
- package/index.d.ts +17 -1
- package/index.js +18 -3
- package/index.js.map +1 -1
- package/lerna-json.js +2 -15
- package/lerna-json.js.map +1 -1
- package/lib/package-json/exports.d.ts +9 -7
- package/lib/package-json/exports.js.map +1 -1
- package/lib/package-json/publishConfig.js +1 -1
- package/lib/package-json/publishConfig.js.map +1 -1
- package/lib/package-json/types.d.ts +28 -0
- package/lib/package-json/types.js +14 -2
- package/lib/package-json/types.js.map +1 -1
- package/package-json.d.ts +1 -1
- package/package-json.js +2 -15
- package/package-json.js.map +1 -1
- package/package.json +10 -4
- package/schema/eslintrc.json +29 -17
- package/schema/lerna.json +1 -1
- package/schema/package.json +530 -28
- package/schema/travis.json +17 -10
- package/script/index.js +2 -4
- package/script/index.js.map +1 -1
- package/script/util.js +7 -10
- package/script/util.js.map +1 -1
- package/types/eslintrc.json.d.ts +7496 -9
- package/types/lerna.json.d.ts +1 -1
- package/types/package.json.d.ts +27813 -7682
- package/types/travis.json.d.ts +15 -10
- package/types/tsconfig.json.d.ts +1298 -326
package/schema/eslintrc.json
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://json.schemastore.org/eslintrc.json",
|
|
3
4
|
"definitions": {
|
|
4
5
|
"stringOrStringArray": {
|
|
5
6
|
"oneOf": [
|
|
@@ -45,7 +46,7 @@
|
|
|
45
46
|
},
|
|
46
47
|
"for-direction": {
|
|
47
48
|
"$ref": "#/definitions/rule",
|
|
48
|
-
"description": "Enforce
|
|
49
|
+
"description": "Enforce \"for\" loop update clause moving the counter in the right direction"
|
|
49
50
|
},
|
|
50
51
|
"getter-return": {
|
|
51
52
|
"$ref": "#/definitions/rule",
|
|
@@ -469,7 +470,7 @@
|
|
|
469
470
|
},
|
|
470
471
|
"yoda": {
|
|
471
472
|
"$ref": "#/definitions/rule",
|
|
472
|
-
"description": "Require or Disallow
|
|
473
|
+
"description": "Require or Disallow \"Yoda\" conditions"
|
|
473
474
|
}
|
|
474
475
|
}
|
|
475
476
|
},
|
|
@@ -1132,7 +1133,6 @@
|
|
|
1132
1133
|
}
|
|
1133
1134
|
}
|
|
1134
1135
|
},
|
|
1135
|
-
"id": "https://json.schemastore.org/eslintrc.json",
|
|
1136
1136
|
"properties": {
|
|
1137
1137
|
"ecmaFeatures": {
|
|
1138
1138
|
"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.",
|
|
@@ -1158,7 +1158,7 @@
|
|
|
1158
1158
|
},
|
|
1159
1159
|
"experimentalObjectRestSpread": {
|
|
1160
1160
|
"type": "boolean",
|
|
1161
|
-
"description": "Enables support for the experimental object rest/spread properties (IMPORTANT: This is an experimental feature that may change significantly in the future. It
|
|
1161
|
+
"description": "Enables support for the experimental object rest/spread properties (IMPORTANT: This is an experimental feature that may change significantly in the future. It's recommended that you do not write rules relying on this functionality unless you are willing to incur maintenance cost when it changes.)"
|
|
1162
1162
|
},
|
|
1163
1163
|
"forOf": {
|
|
1164
1164
|
"type": "boolean"
|
|
@@ -1326,8 +1326,8 @@
|
|
|
1326
1326
|
}
|
|
1327
1327
|
},
|
|
1328
1328
|
"extends": {
|
|
1329
|
-
"
|
|
1330
|
-
"
|
|
1329
|
+
"$ref": "#/definitions/stringOrStringArray",
|
|
1330
|
+
"description": "If you want to extend a specific configuration file, you can use the extends property and specify the path to the file. The path can be either relative or absolute."
|
|
1331
1331
|
},
|
|
1332
1332
|
"globals": {
|
|
1333
1333
|
"description": "Set each global variable name equal to true to allow the variable to be overwritten or false to disallow overwriting.",
|
|
@@ -1353,6 +1353,10 @@
|
|
|
1353
1353
|
"description": "Prevent comments from changing config or rules",
|
|
1354
1354
|
"type": "boolean"
|
|
1355
1355
|
},
|
|
1356
|
+
"reportUnusedDisableDirectives": {
|
|
1357
|
+
"description": "Report unused eslint-disable comments",
|
|
1358
|
+
"type": "boolean"
|
|
1359
|
+
},
|
|
1356
1360
|
"parser": {
|
|
1357
1361
|
"type": "string"
|
|
1358
1362
|
},
|
|
@@ -1383,18 +1387,23 @@
|
|
|
1383
1387
|
2021,
|
|
1384
1388
|
13,
|
|
1385
1389
|
2022,
|
|
1390
|
+
14,
|
|
1391
|
+
2023,
|
|
1392
|
+
15,
|
|
1393
|
+
2024,
|
|
1386
1394
|
"latest"
|
|
1387
1395
|
],
|
|
1388
|
-
"default":
|
|
1389
|
-
"description": "Set to 3, 5, 6, 7, 8, 9, 10, 11
|
|
1396
|
+
"default": 5,
|
|
1397
|
+
"description": "Set to 3, 5 (default), 6, 7, 8, 9, 10, 11, 12, 13, 14, or 15 to specify the version of ECMAScript syntax you want to use. You can also set it to 2015 (same as 6), 2016 (same as 7), 2017 (same as 8), 2018 (same as 9), 2019 (same as 10), 2020 (same as 11), 2021 (same as 12), 2022 (same as 13), 2023 (same as 14), or 2024 (same as 15) to use the year-based naming. You can also set \"latest\" to use the most recently supported version."
|
|
1390
1398
|
},
|
|
1391
1399
|
"sourceType": {
|
|
1392
1400
|
"enum": [
|
|
1393
1401
|
"script",
|
|
1394
|
-
"module"
|
|
1402
|
+
"module",
|
|
1403
|
+
"commonjs"
|
|
1395
1404
|
],
|
|
1396
1405
|
"default": "script",
|
|
1397
|
-
"description": "set to \"script\" (default) or \"module\" if your code is in ECMAScript modules"
|
|
1406
|
+
"description": "set to \"script\" (default), \"commonjs\", or \"module\" if your code is in ECMAScript modules"
|
|
1398
1407
|
}
|
|
1399
1408
|
}
|
|
1400
1409
|
},
|
|
@@ -1410,8 +1419,8 @@
|
|
|
1410
1419
|
"type": "boolean"
|
|
1411
1420
|
},
|
|
1412
1421
|
"ignorePatterns": {
|
|
1413
|
-
"
|
|
1414
|
-
"
|
|
1422
|
+
"$ref": "#/definitions/stringOrStringArray",
|
|
1423
|
+
"description": "Tell ESLint to ignore specific files and directories. Each value uses the same pattern as the `.eslintignore` file."
|
|
1415
1424
|
},
|
|
1416
1425
|
"rules": {
|
|
1417
1426
|
"description": "ESLint comes with a large number of rules. You can modify which rules your project uses either using configuration comments or configuration files.",
|
|
@@ -1440,6 +1449,9 @@
|
|
|
1440
1449
|
},
|
|
1441
1450
|
{
|
|
1442
1451
|
"$ref": "#/definitions/legacy"
|
|
1452
|
+
},
|
|
1453
|
+
{
|
|
1454
|
+
"$ref": "https://json.schemastore.org/partial-eslint-plugins.json"
|
|
1443
1455
|
}
|
|
1444
1456
|
]
|
|
1445
1457
|
},
|
|
@@ -1469,12 +1481,12 @@
|
|
|
1469
1481
|
]
|
|
1470
1482
|
},
|
|
1471
1483
|
"extends": {
|
|
1472
|
-
"
|
|
1473
|
-
"
|
|
1484
|
+
"$ref": "#/definitions/stringOrStringArray",
|
|
1485
|
+
"description": "If you want to extend a specific configuration file, you can use the extends property and specify the path to the file. The path can be either relative or absolute."
|
|
1474
1486
|
},
|
|
1475
1487
|
"excludedFiles": {
|
|
1476
|
-
"
|
|
1477
|
-
"
|
|
1488
|
+
"$ref": "#/definitions/stringOrStringArray",
|
|
1489
|
+
"description": "If a file matches any of the 'excludedFiles' glob patterns, the 'overrides' configuration won't apply"
|
|
1478
1490
|
},
|
|
1479
1491
|
"ecmaFeatures": {
|
|
1480
1492
|
"$ref": "#/properties/ecmaFeatures"
|
package/schema/lerna.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$id": "https://json.schemastore.org/lerna",
|
|
3
2
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://json.schemastore.org/lerna",
|
|
4
4
|
"description": "Lerna is a tool used in JavaScript monorepo projects. The lerna.json file is\nused to configure lerna to to best fit your project.",
|
|
5
5
|
"properties": {
|
|
6
6
|
"version": {
|