{"_id":"eslint-plugin-react-refresh","_rev":"2971743","name":"eslint-plugin-react-refresh","description":"Validate that your components can safely be updated with fast refresh","dist-tags":{"latest":"0.4.1"},"maintainers":[{"name":"arnaud-barre","email":"arnaud.barre72@gmail.com"}],"time":{"modified":"2023-06-08T06:58:21.000Z","created":"2022-01-23T15:40:07.430Z","0.4.1":"2023-05-02T22:46:35.798Z","0.4.0":"2023-04-30T12:58:51.817Z","0.3.5":"2023-04-27T08:47:09.287Z","0.3.4":"2023-02-10T13:06:24.979Z","0.3.3":"2023-01-29T03:24:41.704Z","0.3.2":"2022-12-14T21:40:35.658Z","0.3.1":"2022-11-15T09:56:20.491Z","0.3.0":"2022-11-12T22:08:02.594Z","0.2.1":"2022-01-27T18:20:57.020Z","0.2.0":"2022-01-23T19:52:33.177Z","0.1.0":"2022-01-23T15:40:07.430Z"},"users":{},"author":{"name":"Arnaud Barré","url":"https://github.com/ArnaudBarre"},"repository":{"type":"git","url":"git+https://github.com/ArnaudBarre/eslint-plugin-react-refresh.git"},"versions":{"0.4.1":{"name":"eslint-plugin-react-refresh","description":"Validate that your components can safely be updated with fast refresh","version":"0.4.1","author":{"name":"Arnaud Barré","url":"https://github.com/ArnaudBarre"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/ArnaudBarre/eslint-plugin-react-refresh.git"},"main":"index.js","keywords":["eslint","eslint-plugin","react","react-refresh","fast refresh"],"peerDependencies":{"eslint":">=7"},"gitHead":"c0d156b84bb79bc31b75dc525c2f1ae560563fb3","bugs":{"url":"https://github.com/ArnaudBarre/eslint-plugin-react-refresh/issues"},"homepage":"https://github.com/ArnaudBarre/eslint-plugin-react-refresh#readme","_id":"eslint-plugin-react-refresh@0.4.1","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"shasum":"e61a1ee4e06180f07ab753fa6fd173b4d8df95ec","size":3857,"noattachment":false,"key":"/eslint-plugin-react-refresh/-/eslint-plugin-react-refresh-0.4.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/eslint-plugin-react-refresh/download/eslint-plugin-react-refresh-0.4.1.tgz"},"_npmUser":{"name":"arnaud-barre","email":"arnaud.barre72@gmail.com"},"directories":{},"maintainers":[{"name":"arnaud-barre","email":"arnaud.barre72@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eslint-plugin-react-refresh_0.4.1_1683067595625_0.6790743412944751"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-05-02T22:46:35.798Z","publish_time":1683067595798,"_source_registry_name":"default","_cnpm_publish_time":1683067595798},"0.4.0":{"name":"eslint-plugin-react-refresh","description":"Validate that your components can safely be updated with fast refresh","version":"0.4.0","author":{"name":"Arnaud Barré","url":"https://github.com/ArnaudBarre"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/ArnaudBarre/eslint-plugin-react-refresh.git"},"main":"index.js","keywords":["eslint","eslint-plugin","react","react-refresh","fast refresh"],"peerDependencies":{"eslint":">=7"},"gitHead":"9b17c324b45290297f7e43b1f5155d746c032a47","bugs":{"url":"https://github.com/ArnaudBarre/eslint-plugin-react-refresh/issues"},"homepage":"https://github.com/ArnaudBarre/eslint-plugin-react-refresh#readme","_id":"eslint-plugin-react-refresh@0.4.0","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"shasum":"735b4201ed71cd31f0f98d17843ec0ceef0adc43","size":3777,"noattachment":false,"key":"/eslint-plugin-react-refresh/-/eslint-plugin-react-refresh-0.4.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/eslint-plugin-react-refresh/download/eslint-plugin-react-refresh-0.4.0.tgz"},"_npmUser":{"name":"arnaud-barre","email":"arnaud.barre72@gmail.com"},"directories":{},"maintainers":[{"name":"arnaud-barre","email":"arnaud.barre72@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eslint-plugin-react-refresh_0.4.0_1682859531632_0.7017152241349631"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-04-30T12:58:51.817Z","publish_time":1682859531817,"_source_registry_name":"default","_cnpm_publish_time":1682859531817},"0.3.5":{"name":"eslint-plugin-react-refresh","description":"Validate that your components can safely be updated with fast refresh","version":"0.3.5","author":{"name":"Arnaud Barré","url":"https://github.com/ArnaudBarre"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/ArnaudBarre/eslint-plugin-react-refresh.git"},"main":"index.js","keywords":["eslint","eslint-plugin","react","react-refresh","fast refresh"],"peerDependencies":{"eslint":">=7"},"gitHead":"ddb0dd292373aa7a7890fadf835881b46472cb8f","bugs":{"url":"https://github.com/ArnaudBarre/eslint-plugin-react-refresh/issues"},"homepage":"https://github.com/ArnaudBarre/eslint-plugin-react-refresh#readme","_id":"eslint-plugin-react-refresh@0.3.5","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"shasum":"0121e3f05f940250d3544bfaeff52e1c6adf4117","size":3525,"noattachment":false,"key":"/eslint-plugin-react-refresh/-/eslint-plugin-react-refresh-0.3.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/eslint-plugin-react-refresh/download/eslint-plugin-react-refresh-0.3.5.tgz"},"_npmUser":{"name":"arnaud-barre","email":"arnaud.barre72@gmail.com"},"directories":{},"maintainers":[{"name":"arnaud-barre","email":"arnaud.barre72@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eslint-plugin-react-refresh_0.3.5_1682585229155_0.8266003634825834"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-04-27T08:47:09.287Z","publish_time":1682585229287,"_source_registry_name":"default","_cnpm_publish_time":1682585229287},"0.3.4":{"name":"eslint-plugin-react-refresh","description":"Validate that your components can safely be updated with fast refresh","version":"0.3.4","author":{"name":"Arnaud Barré","url":"https://github.com/ArnaudBarre"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/ArnaudBarre/eslint-plugin-react-refresh.git"},"main":"index.js","keywords":["eslint","eslint-plugin","react","react-refresh","fast refresh"],"peerDependencies":{"eslint":">=7"},"gitHead":"ac7ecec96a2a808829bfc839b150ce0624bd8af3","bugs":{"url":"https://github.com/ArnaudBarre/eslint-plugin-react-refresh/issues"},"homepage":"https://github.com/ArnaudBarre/eslint-plugin-react-refresh#readme","_id":"eslint-plugin-react-refresh@0.3.4","_nodeVersion":"19.3.0","_npmVersion":"9.2.0","dist":{"shasum":"586eeac5f4a95d2520824dba68511540e62c8491","size":3514,"noattachment":false,"key":"/eslint-plugin-react-refresh/-/eslint-plugin-react-refresh-0.3.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/eslint-plugin-react-refresh/download/eslint-plugin-react-refresh-0.3.4.tgz"},"_npmUser":{"name":"arnaud-barre","email":"arnaud.barre72@gmail.com"},"directories":{},"maintainers":[{"name":"arnaud-barre","email":"arnaud.barre72@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eslint-plugin-react-refresh_0.3.4_1676034384732_0.8616894797955219"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-02-10T13:06:24.979Z","publish_time":1676034384979,"_cnpm_publish_time":1676034384979},"0.3.3":{"name":"eslint-plugin-react-refresh","description":"Validate that your components can safely be updated with fast refresh","version":"0.3.3","author":{"name":"Arnaud Barré","url":"https://github.com/ArnaudBarre"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/ArnaudBarre/eslint-plugin-react-refresh.git"},"main":"index.js","keywords":["eslint","eslint-plugin","react","react-refresh","fast refresh"],"peerDependencies":{"eslint":">=7"},"gitHead":"0ab4d91ca5f273a05834a63d7d09157116369184","bugs":{"url":"https://github.com/ArnaudBarre/eslint-plugin-react-refresh/issues"},"homepage":"https://github.com/ArnaudBarre/eslint-plugin-react-refresh#readme","_id":"eslint-plugin-react-refresh@0.3.3","_nodeVersion":"16.19.0","_npmVersion":"8.19.3","dist":{"shasum":"62341ef0d4666223dee51ce4d151cd35094df5e0","size":3486,"noattachment":false,"key":"/eslint-plugin-react-refresh/-/eslint-plugin-react-refresh-0.3.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/eslint-plugin-react-refresh/download/eslint-plugin-react-refresh-0.3.3.tgz"},"_npmUser":{"name":"arnaud-barre","email":"arnaud.barre72@gmail.com"},"directories":{},"maintainers":[{"name":"arnaud-barre","email":"arnaud.barre72@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eslint-plugin-react-refresh_0.3.3_1674962681541_0.4863651126660973"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-01-29T03:24:41.704Z","publish_time":1674962681704,"_cnpm_publish_time":1674962681704},"0.3.2":{"name":"eslint-plugin-react-refresh","description":"Validate that your components can safely be updated with fast refresh","version":"0.3.2","author":{"name":"Arnaud Barré","url":"https://github.com/ArnaudBarre"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/ArnaudBarre/eslint-plugin-react-refresh.git"},"main":"index.js","keywords":["eslint","eslint-plugin","react","react-refresh","fast refresh"],"peerDependencies":{"eslint":">=7"},"gitHead":"e0d3e2842c3acb7f8daa39077351bab9a2c8dcd1","bugs":{"url":"https://github.com/ArnaudBarre/eslint-plugin-react-refresh/issues"},"homepage":"https://github.com/ArnaudBarre/eslint-plugin-react-refresh#readme","_id":"eslint-plugin-react-refresh@0.3.2","_nodeVersion":"16.18.1","_npmVersion":"8.19.2","dist":{"shasum":"3c133bad2802b72f302866e20f0e412f5d45b434","size":3215,"noattachment":false,"key":"/eslint-plugin-react-refresh/-/eslint-plugin-react-refresh-0.3.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/eslint-plugin-react-refresh/download/eslint-plugin-react-refresh-0.3.2.tgz"},"_npmUser":{"name":"arnaud-barre","email":"arnaud.barre72@gmail.com"},"directories":{},"maintainers":[{"name":"arnaud-barre","email":"arnaud.barre72@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eslint-plugin-react-refresh_0.3.2_1671054035431_0.8236542356693894"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-12-14T21:50:55.558Z","publish_time":1671054035658,"_cnpm_publish_time":1671054035658},"0.3.1":{"name":"eslint-plugin-react-refresh","description":"Validate that your components can safely be updated with fast refresh","version":"0.3.1","author":{"name":"Arnaud Barré","url":"https://github.com/ArnaudBarre"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/ArnaudBarre/eslint-plugin-react-refresh.git"},"main":"index.js","keywords":["eslint","eslint-plugin","react","react-refresh","fast refresh"],"peerDependencies":{"eslint":">=7"},"gitHead":"1fa35f4a46c81aeca999d3c54fb8233c9c7580b5","bugs":{"url":"https://github.com/ArnaudBarre/eslint-plugin-react-refresh/issues"},"homepage":"https://github.com/ArnaudBarre/eslint-plugin-react-refresh#readme","_id":"eslint-plugin-react-refresh@0.3.1","_nodeVersion":"16.18.0","_npmVersion":"8.19.2","dist":{"shasum":"714c62253b167335b394614dec152a98baa49cf4","size":3186,"noattachment":false,"key":"/eslint-plugin-react-refresh/-/eslint-plugin-react-refresh-0.3.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/eslint-plugin-react-refresh/download/eslint-plugin-react-refresh-0.3.1.tgz"},"_npmUser":{"name":"arnaud-barre","email":"arnaud.barre72@gmail.com"},"directories":{},"maintainers":[{"name":"arnaud-barre","email":"arnaud.barre72@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eslint-plugin-react-refresh_0.3.1_1668506180316_0.6288714111552414"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-11-15T10:21:12.629Z","publish_time":1668506180491,"_cnpm_publish_time":1668506180491},"0.3.0":{"name":"eslint-plugin-react-refresh","description":"Validate that your components can safely be updated with fast refresh","version":"0.3.0","author":{"name":"Arnaud Barré","url":"https://github.com/ArnaudBarre"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/ArnaudBarre/eslint-plugin-react-refresh.git"},"main":"index.js","keywords":["eslint","eslint-plugin","react","react-refresh","fast refresh"],"peerDependencies":{"eslint":">=7"},"gitHead":"2ccc3fd45af40a34490ef96a135c9aebbc64092d","bugs":{"url":"https://github.com/ArnaudBarre/eslint-plugin-react-refresh/issues"},"homepage":"https://github.com/ArnaudBarre/eslint-plugin-react-refresh#readme","_id":"eslint-plugin-react-refresh@0.3.0","_nodeVersion":"16.18.0","_npmVersion":"8.19.2","dist":{"shasum":"79188e8a89441d98b35c8a9e4cd889c44aac3501","size":3182,"noattachment":false,"key":"/eslint-plugin-react-refresh/-/eslint-plugin-react-refresh-0.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/eslint-plugin-react-refresh/download/eslint-plugin-react-refresh-0.3.0.tgz"},"_npmUser":{"name":"arnaud-barre","email":"arnaud.barre72@gmail.com"},"directories":{},"maintainers":[{"name":"arnaud-barre","email":"arnaud.barre72@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eslint-plugin-react-refresh_0.3.0_1668290882433_0.5143861459889858"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-11-12T22:08:13.504Z","publish_time":1668290882594,"_cnpm_publish_time":1668290882594},"0.2.1":{"name":"eslint-plugin-react-refresh","description":"Validate that your components can safely be updated with fast refresh","version":"0.2.1","license":"MIT","author":{"name":"Arnaud Barré","url":"https://github.com/ArnaudBarre"},"main":"src/index.js","repository":{"type":"git","url":"git+https://github.com/ArnaudBarre/eslint-plugin-react-refresh.git"},"keywords":["eslint","eslint-plugin","react","react-refresh","fast refresh"],"scripts":{"build":"tsc","prettier":"yarn prettier-ci --write","prettier-ci":"prettier --check '**/*.{ts,json,md,yml}'","test":"node src/tests.js"},"prettier":{"trailingComma":"all"},"peerDependencies":{"eslint":">=7"},"devDependencies":{"@types/eslint":"^8.4.0","@types/node":"^17.0.10","@typescript-eslint/experimental-utils":"^5.10.0","eslint":"^8.7.0","prettier":"^2.5.1","typescript":"^4.5.5"},"gitHead":"5553cbb8971e5dc3fa8b428589ec3fce40dc7b6a","bugs":{"url":"https://github.com/ArnaudBarre/eslint-plugin-react-refresh/issues"},"homepage":"https://github.com/ArnaudBarre/eslint-plugin-react-refresh#readme","_id":"eslint-plugin-react-refresh@0.2.1","_nodeVersion":"16.13.2","_npmVersion":"8.1.2","dist":{"shasum":"740dc1ca36c59a29516c1b22699cffe3f11e69d8","size":3223,"noattachment":false,"key":"/eslint-plugin-react-refresh/-/eslint-plugin-react-refresh-0.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/eslint-plugin-react-refresh/download/eslint-plugin-react-refresh-0.2.1.tgz"},"_npmUser":{"name":"arnaud-barre","email":"arnaud.barre72@gmail.com"},"directories":{},"maintainers":[{"name":"arnaud-barre","email":"arnaud.barre72@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eslint-plugin-react-refresh_0.2.1_1643307656869_0.6457209191484863"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-01-27T18:21:02.031Z","publish_time":1643307657020,"_cnpm_publish_time":1643307657020},"0.2.0":{"name":"eslint-plugin-react-refresh","description":"Validate that your components can safely be updated with fast refresh","version":"0.2.0","license":"MIT","author":{"name":"Arnaud Barré","url":"https://github.com/ArnaudBarre"},"main":"src/index.js","repository":{"type":"git","url":"git+https://github.com/ArnaudBarre/eslint-plugin-react-refresh.git"},"keywords":["eslint","eslint-plugin","react","react-refresh","fast refresh"],"scripts":{"build":"tsc","prettier":"yarn prettier-ci --write","prettier-ci":"prettier --check '**/*.{ts,json,md,yml}'","test":"node src/tests.js"},"prettier":{"trailingComma":"all"},"peerDependencies":{"eslint":">=7"},"devDependencies":{"@types/eslint":"^8.4.0","@types/node":"^17.0.10","@typescript-eslint/experimental-utils":"^5.10.0","eslint":"^8.7.0","prettier":"^2.5.1","typescript":"^4.5.5"},"gitHead":"98aa03a8934d8c5c9af2435bca9917b71dcd2f63","bugs":{"url":"https://github.com/ArnaudBarre/eslint-plugin-react-refresh/issues"},"homepage":"https://github.com/ArnaudBarre/eslint-plugin-react-refresh#readme","_id":"eslint-plugin-react-refresh@0.2.0","_nodeVersion":"16.13.2","_npmVersion":"8.1.2","dist":{"shasum":"278171f0d428581ac16ec71e0cd959f6843e60a5","size":3094,"noattachment":false,"key":"/eslint-plugin-react-refresh/-/eslint-plugin-react-refresh-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/eslint-plugin-react-refresh/download/eslint-plugin-react-refresh-0.2.0.tgz"},"_npmUser":{"name":"arnaud-barre","email":"arnaud.barre72@gmail.com"},"directories":{},"maintainers":[{"name":"arnaud-barre","email":"arnaud.barre72@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eslint-plugin-react-refresh_0.2.0_1642967553015_0.35709615782702553"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-01-23T19:52:39.241Z","publish_time":1642967553177,"_cnpm_publish_time":1642967553177},"0.1.0":{"name":"eslint-plugin-react-refresh","description":"Validate that your components can safely be updated with fast refresh","version":"0.1.0","license":"MIT","author":{"name":"Arnaud Barré","url":"https://github.com/ArnaudBarre"},"main":"src/index.js","keywords":["eslint","eslint-plugin","react","react-refresh","fast refresh"],"scripts":{"build":"tsc","test":"node src/tests.js"},"prettier":{"trailingComma":"all"},"peerDependencies":{"eslint":">=7"},"devDependencies":{"@types/eslint":"^8.4.0","@types/node":"^17.0.10","@typescript-eslint/experimental-utils":"^5.10.0","eslint":"^8.7.0","prettier":"^2.5.1","typescript":"^4.5.5"},"gitHead":"7e0b0bc8ec3374da22e789645cd3ea7658645f76","_id":"eslint-plugin-react-refresh@0.1.0","_nodeVersion":"16.13.2","_npmVersion":"8.1.2","dist":{"shasum":"2456fde503be49a04392b6ff04e06791daa5d546","size":2712,"noattachment":false,"key":"/eslint-plugin-react-refresh/-/eslint-plugin-react-refresh-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/eslint-plugin-react-refresh/download/eslint-plugin-react-refresh-0.1.0.tgz"},"_npmUser":{"name":"arnaud-barre","email":"arnaud.barre72@gmail.com"},"directories":{},"maintainers":[{"name":"arnaud-barre","email":"arnaud.barre72@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eslint-plugin-react-refresh_0.1.0_1642952407261_0.321061473693381"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-01-23T15:40:12.175Z","publish_time":1642952407430,"_cnpm_publish_time":1642952407430}},"readme":"# eslint-plugin-react-refresh [![npm](https://img.shields.io/npm/v/eslint-plugin-react-refresh)](https://www.npmjs.com/package/eslint-plugin-react-refresh)\n\nValidate that your components can safely be updated with fast refresh.\n\n## Limitations\n\n⚠️ To avoid false positive, by default this plugin is only applied on `tsx` & `jsx` files. See options to run on JS files. ⚠️\n\nThe plugin rely on naming conventions (i.e. use PascalCase for components, camelCase for util functions). This is why there are some limitations:\n\n- `export *` are not supported and will be reported as an error\n- Anonymous function are not supported (i.e `export default function() {}`)\n- Class components are not supported\n- All-uppercase function export is considered an error when not using direct named export (ex `const CMS = () => <></>; export { CMS }`)\n\n## Installation\n\n```sh\nnpm i -D eslint-plugin-react-refresh\n```\n\n## Usage\n\n```json\n{\n  \"plugins\": [\"react-refresh\"],\n  \"rules\": {\n    \"react-refresh/only-export-components\": \"warn\"\n  }\n}\n```\n\n## Fail\n\n```jsx\nexport const foo = () => {};\nexport const Bar = () => <></>;\n```\n\n```jsx\nexport default function () {}\nexport default compose()(MainComponent)\n```\n\n```jsx\nexport * from \"./foo\";\n```\n\n```jsx\nconst Tab = () => {};\nexport const tabs = [<Tab />, <Tab />];\n```\n\n```jsx\nconst App = () => {};\ncreateRoot(document.getElementById(\"root\")).render(<App />);\n```\n\n## Pass with allowConstantExport\n\n```jsx\nexport const CONSTANT = 3;\nexport const Foo = () => <></>;\n```\n\n## Pass\n\n```jsx\nexport default function Foo() {\n  return <></>;\n}\n```\n\n```jsx\nconst foo = () => {};\nexport const Bar = () => <></>;\n```\n\n```jsx\nimport { App } from \"./App\";\ncreateRoot(document.getElementById(\"root\")).render(<App />);\n```\n\n## Options\n\n### allowConstantExport <small>(v0.4.0)</small>\n\nDon't warn when a constant (string, number, boolean, templateLiteral) is exported aside one or more components.\n\nThis should be enabled if the fast refresh implementation correctly handles this case (HMR when the constant doesn't change, propagate update to importers when the constant changes.). Vite supports it, PR welcome if you notice other integrations works well.\n\n```json\n{\n  \"react-refresh/only-export-components\": [\n    \"warn\",\n    { \"allowConstantExport\": true }\n  ]\n}\n```\n\n### checkJS <small>(v0.3.3)</small>\n\nIf your using JSX inside `.js` files (which I don't recommend because it forces you to configure every tool you use to switch the parser), you can still use the plugin by enabling this option. To reduce the number of false positive, only files importing `react` are checked.\n\n```json\n{\n  \"react-refresh/only-export-components\": [\"warn\", { \"checkJS\": true }]\n}\n```\n","_attachments":{},"homepage":"https://github.com/ArnaudBarre/eslint-plugin-react-refresh#readme","bugs":{"url":"https://github.com/ArnaudBarre/eslint-plugin-react-refresh/issues"},"license":"MIT"}