mirror of
https://github.com/google/blockly.git
synced 2026-01-04 23:50:12 +01:00
* chore: add and configure prettier * chore: remove clang-format * chore: remove clang-format config * chore: lint additional ts files * chore: fix lint errors in blocks * chore: add prettier-ignore where needed * chore: ignore js blocks when formatting * chore: fix playground html syntax * chore: fix yaml spacing from merge * chore: convert text blocks to use arrow functions * chore: format everything with prettier * chore: fix lint unused imports in blocks
60 lines
2.3 KiB
JSON
60 lines
2.3 KiB
JSON
{
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
"$id": "https://github.com/google/blockly/tests/migration/renamings-schema.json",
|
|
"title": "Renamings",
|
|
"description": "A file containing information about module and module export renamings",
|
|
"type": "object",
|
|
"patternProperties": {
|
|
"^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$": {
|
|
"$ref": "#/$defs/version"
|
|
}
|
|
},
|
|
"properties": {
|
|
"develop": {"$ref": "#/$defs/version"}
|
|
},
|
|
"additionalProperties": false,
|
|
"$defs": {
|
|
"version": {
|
|
"description": "All the renamings that happened in a paricular release.",
|
|
"type": "array",
|
|
"items": {
|
|
"description": "All the renamings in/of a particular module.",
|
|
"type": "object",
|
|
"properties": {
|
|
"oldName": {"$ref": "#/$defs/dottedIdentifier"},
|
|
"newName": {"$ref": "#/$defs/dottedIdentifier"},
|
|
"newExport": {"$ref": "#/$defs/dottedIdentifier"},
|
|
"oldPath": {"$ref": "#/$defs/dottedIdentifier"},
|
|
"newPath": {"$ref": "#/$defs/dottedIdentifier"},
|
|
"exports": {
|
|
"description": "A list of the exports that have been renamed.",
|
|
"type": "object",
|
|
"patternProperties": {
|
|
"^[A-Za-z$_][A-Za-z0-9$_]*(\\.[A-Za-z$_][A-Za-z0-9$_]*)*$": {
|
|
"description": "A single renamed (or moved) export.",
|
|
"type": "object",
|
|
"properties": {
|
|
"newModule": {"$ref": "#/$defs/dottedIdentifier"},
|
|
"newExport": {"$ref": "#/$defs/dottedIdentifier"},
|
|
"oldPath": {"$ref": "#/$defs/dottedIdentifier"},
|
|
"newPath": {"$ref": "#/$defs/dottedIdentifier"},
|
|
"getMethod": {"$ref": "#/$defs/dottedIdentifier"},
|
|
"setMethod": {"$ref": "#/$defs/dottedIdentifier"}
|
|
},
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"required": ["oldName"],
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"dottedIdentifier": {
|
|
"type": "string",
|
|
"pattern": "^[A-Za-z$_][A-Za-z0-9$_]*(\\.[A-Za-z$_][A-Za-z0-9$_]*)*$"
|
|
}
|
|
}
|
|
}
|