{"id":19021603,"url":"https://github.com/codementorio/eslint-plugin-translate-breaks-ref-patch","last_synced_at":"2025-04-23T07:54:50.311Z","repository":{"id":203678090,"uuid":"710158363","full_name":"CodementorIO/eslint-plugin-translate-breaks-ref-patch","owner":"CodementorIO","description":null,"archived":false,"fork":false,"pushed_at":"2023-10-26T10:50:24.000Z","size":113,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-23T07:54:45.064Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CodementorIO.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-10-26T06:20:52.000Z","updated_at":"2024-06-24T17:51:32.000Z","dependencies_parsed_at":"2023-10-26T11:40:00.332Z","dependency_job_id":null,"html_url":"https://github.com/CodementorIO/eslint-plugin-translate-breaks-ref-patch","commit_stats":null,"previous_names":["lanamaysu/eslint-plugin-translate-breaks-ref-patch","codementorio/eslint-plugin-translate-breaks-ref-patch"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodementorIO%2Feslint-plugin-translate-breaks-ref-patch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodementorIO%2Feslint-plugin-translate-breaks-ref-patch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodementorIO%2Feslint-plugin-translate-breaks-ref-patch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodementorIO%2Feslint-plugin-translate-breaks-ref-patch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CodementorIO","download_url":"https://codeload.github.com/CodementorIO/eslint-plugin-translate-breaks-ref-patch/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250395200,"owners_count":21423376,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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-08T20:22:38.952Z","updated_at":"2025-04-23T07:54:50.293Z","avatar_url":"https://github.com/CodementorIO.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# eslint-plugin-translate-breaks-ref-patch\n\nHint and provide suggestion for conditional literals in jsx.\n\n- Why we want to fix conditional literals in jsx?\n\n  \u003e React - a very very popular web development framework - breaks when Google Translate runs across a page.\n\n  - We suffered from `Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node.` screaming all the time.\n  - [discussions](https://github.com/facebook/react/issues/11538)\n  - [chromium bug report](https://bugs.chromium.org/p/chromium/issues/detail?id=872770)\n\n- Rule inspired by [this gist](https://gist.github.com/azirbel/51518d919de979197a7c5c25c54a56d6) and [eslint-plugin-sayari](https://github.com/sayari-analytics/eslint-plugin-sayari/blob/main/lib/rules/no-unwrapped-jsx-text.js).\n\n## Installation\n\nYou'll first need to install [ESLint](https://eslint.org/):\n\n```sh\nnpm i eslint --save-dev\n```\n\nNext, install `eslint-plugin-translate-breaks-ref-patch`:\n\n```sh\nnpm install eslint-plugin-translate-breaks-ref-patch --save-dev\n```\n\n## Usage\n\nAdd `translate-breaks-ref-patch` to the plugins section of your `.eslintrc` configuration file. You can omit the `eslint-plugin-` prefix:\n\n```json\n{\n  \"plugins\": [\"translate-breaks-ref-patch\"]\n}\n```\n\nThen configure the rules you want to use under the rules section.\n\n```json\n{\n  \"rules\": {\n    \"translate-breaks-ref-patch/rule-name\": 2\n  }\n}\n```\n\n## Rules\n\n\u003c!-- begin auto-generated rules list --\u003e\n\n💡 Manually fixable by [editor suggestions](https://eslint.org/docs/developer-guide/working-with-rules#providing-suggestions).\n\n| Name                                                                           | Description                                                                                | 💡  |\n| :----------------------------------------------------------------------------- | :----------------------------------------------------------------------------------------- | :-- |\n| [no-conditional-literals-in-jsx](docs/rules/no-conditional-literals-in-jsx.md) | Browser auto-translation will break if pieces of text nodes are be rendered conditionally. | 💡  |\n\n\u003c!-- end auto-generated rules list --\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodementorio%2Feslint-plugin-translate-breaks-ref-patch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodementorio%2Feslint-plugin-translate-breaks-ref-patch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodementorio%2Feslint-plugin-translate-breaks-ref-patch/lists"}