{"id":19838160,"url":"https://github.com/textlint/babel-plugin-textlint-scripts","last_synced_at":"2026-05-06T16:35:06.876Z","repository":{"id":66127736,"uuid":"293985719","full_name":"textlint/babel-plugin-textlint-scripts","owner":"textlint","description":"A babel plugin for textlint-script.","archived":false,"fork":false,"pushed_at":"2020-09-09T13:29:39.000Z","size":76,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-11-28T06:22:59.688Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/textlint.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-09-09T02:51:41.000Z","updated_at":"2021-08-28T02:00:22.000Z","dependencies_parsed_at":"2023-03-10T23:38:34.290Z","dependency_job_id":null,"html_url":"https://github.com/textlint/babel-plugin-textlint-scripts","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/textlint/babel-plugin-textlint-scripts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/textlint%2Fbabel-plugin-textlint-scripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/textlint%2Fbabel-plugin-textlint-scripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/textlint%2Fbabel-plugin-textlint-scripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/textlint%2Fbabel-plugin-textlint-scripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/textlint","download_url":"https://codeload.github.com/textlint/babel-plugin-textlint-scripts/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/textlint%2Fbabel-plugin-textlint-scripts/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32702193,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-06T08:33:17.875Z","status":"ssl_error","status_checked_at":"2026-05-06T08:33:17.221Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-12T12:16:55.638Z","updated_at":"2026-05-06T16:35:06.860Z","avatar_url":"https://github.com/textlint.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# babel-plugin-textlint-scripts\n\nA babel plugin for textlint-scripts.\n\n- Generate `meta` data for the rule automatically\n- Convert TypeScript's `Option` type to JSON Schema\n\n## Example\n\n**In**\n\n```ts\nexport type Options = {\n    str_key: string;\n};\nconst report = () =\u003e {\n    return {};\n};\nexport default report;\n```\n\n**Out**\n\n```js\nconst report = () =\u003e {\n  return {};\n};\n\nexport default report;\nexport const meta = {\n  name: \"@textlint/babel-plugin-textlint-scripts\",\n  description: \"A babel plugin for textlint-scripts.\",\n  homepage: \"https://github.com/textlint/babel-plugin-textlint-scripts\",\n  schema: {\n    \"type\": \"object\",\n    \"properties\": {\n      \"str_key\": {\n        \"type\": \"string\"\n      }\n    },\n    \"additionalProperties\": false,\n    \"required\": [\"str_key\"],\n    \"$schema\": \"http://json-schema.org/draft-07/schema#\"\n  }\n};\n```\n\n## Installation\n\n```sh\n$ npm install @textlint/babel-plugin-textlint-scripts\n```\n\n## Usage\n\n### Via `.babelrc` (Recommended)\n\n**.babelrc**\n\n```json\n{\n  \"plugins\": [\"@textlint/textlint-scripts\"]\n}\n```\n\n### Via CLI\n\n```sh\n$ babel --plugins textlint-scripts script.js\n```\n\n### Via Node API\n\n```javascript\nrequire(\"babel-core\").transform(\"code\", {\n  plugins: [\"@textlint/textlint-scripts\"]\n});\n```\n\n## Contributing\n\n1. Fork it!\n2. Create your feature branch: `git checkout -b my-new-feature`\n3. Commit your changes: `git commit -am 'Add some feature'`\n4. Push to the branch: `git push origin my-new-feature`\n5. Submit a pull request :D\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftextlint%2Fbabel-plugin-textlint-scripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftextlint%2Fbabel-plugin-textlint-scripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftextlint%2Fbabel-plugin-textlint-scripts/lists"}