{"id":17045272,"url":"https://github.com/phanect/eslint-plugin-document-write","last_synced_at":"2026-04-14T00:30:57.387Z","repository":{"id":48944986,"uuid":"247404276","full_name":"phanect/eslint-plugin-document-write","owner":"phanect","description":"ESLint plugin to disallow document.write() and document.writeln()","archived":false,"fork":false,"pushed_at":"2021-10-23T06:23:58.000Z","size":18,"stargazers_count":0,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-10-04T09:32:20.583Z","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/phanect.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}},"created_at":"2020-03-15T04:58:06.000Z","updated_at":"2021-10-23T06:22:40.000Z","dependencies_parsed_at":"2022-09-26T20:21:44.733Z","dependency_job_id":null,"html_url":"https://github.com/phanect/eslint-plugin-document-write","commit_stats":null,"previous_names":["phanect/eslint-plugin-no-document-write"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/phanect/eslint-plugin-document-write","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phanect%2Feslint-plugin-document-write","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phanect%2Feslint-plugin-document-write/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phanect%2Feslint-plugin-document-write/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phanect%2Feslint-plugin-document-write/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phanect","download_url":"https://codeload.github.com/phanect/eslint-plugin-document-write/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phanect%2Feslint-plugin-document-write/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31776811,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-14T00:11:49.126Z","status":"ssl_error","status_checked_at":"2026-04-14T00:10:29.837Z","response_time":93,"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-10-14T09:36:57.805Z","updated_at":"2026-04-14T00:30:57.351Z","avatar_url":"https://github.com/phanect.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# eslint-plugin-document-write\n\nESLint plugin to disallow `document.write()` and `document.writeln()`.\n\n## Install\n\n```bash\n$ npm install --save-dev eslint eslint-plugin-document-write\n```\n\nor\n\n```bash\n$ yarn add --dev eslint eslint-plugin-document-write\n```\n\n## Usage\n\nLike other ESLint plugins,\n\n- add `document-write/no-document-write` in the `rules`.\n- add `\"document-write\"` in the `plugins`.\n\n```json\n{\n  // ...\n  \"rules\": {\n    \"document-write/no-document-write\": \"error\"\n  },\n  \"plugins\": [ \"document-write\" ]\n}\n```\n\n## Why\n\nThere are a lot of limitation in `document.write()` and `document.writeln()` in recent browsers.\nFor example, you cannot use `document.write()` and `document.writeln()`in deferred (`\u003cscript defer ...\u003e`) and asynchronous (`\u003cscript async ...\u003e`) scripts.\nSee [MDN](https://developer.mozilla.org/en-US/docs/Web/API/Document/write#Notes) for other limitations.\n\n## License\n\n[MIT](http://vjpr.mit-license.org)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphanect%2Feslint-plugin-document-write","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphanect%2Feslint-plugin-document-write","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphanect%2Feslint-plugin-document-write/lists"}