{"_id":"eslint-config-xo-react@0.32.0","bugs":{"url":"https://github.com/xojs/eslint-config-xo-react/issues"},"dist":{"shasum":"33fb9bfcbdcdbc4c6851ca426e5d1e51acc89b16","tarball":"http://registry-npm.ywwl.com/eslint-config-xo-react/download/eslint-config-xo-react-0.32.0.tgz","fileCount":5,"integrity":"sha512-ANKf38ZjiEc70JvlRQhOcvNPDmYPmvGjAntoLzxN09jMA08bYWlsXFASLNzZsL6Ghml8b9+MkTvIB8uCFzRJ7Q==","signatures":[{"sig":"MEUCIQDOTFLdRykn7bKbHNFTeXCgsMF74rnXZvwD2pUseFLQTwIgPNC+C/2mmcZmM2/pUHeIFcflxMpAlBeXoua/vsuioac=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCr5ChtLAG2MzUkP+MZYyqk+73u+SQtoAb8kBs+E7ZWWgIgLUZajuKJ6HAnJtIqeV0gn2c2ahyTbqJZbz6qnnaVaxo="}],"unpackedSize":19805,"size":5849,"noattachment":false,"key":"/eslint-config-xo-react/-/eslint-config-xo-react-0.32.0.tgz"},"name":"eslint-config-xo-react","type":"module","types":"./index.d.ts","author":{"url":"https://sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"},"engines":{"node":">=22"},"exports":{"types":"./index.d.ts","default":"./index.js"},"funding":"https://github.com/sponsors/sindresorhus","gitHead":"7d9a99a533d7d42738bc1cbeac3abb43e2d59f48","license":"MIT","scripts":{"test":"eslint && ava"},"version":"0.32.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"homepage":"https://github.com/xojs/eslint-config-xo-react#readme","keywords":["react","jsx","eslintconfig","xo","xoxo","hugs","kisses","happy","happiness","code","quality","style","lint","linter","jscs","jshint","jslint","eslint","validate","code style","standard","strict","check","checker","verify","enforce","hint","simple"],"repository":{"url":"git+https://github.com/xojs/eslint-config-xo-react.git","type":"git"},"_npmVersion":"12.0.1","description":"ESLint shareable config for React to be used with eslint-config-xo","directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"},{"name":"marionebl","email":"hello@mario-nebl.de"}],"sideEffects":false,"_nodeVersion":"26.9.0","dependencies":{"@stylistic/eslint-plugin":"^5.10.0","eslint-plugin-jsx-a11y-x":"^0.2.0","eslint-plugin-react-hooks":"^7.1.1","@eslint-react/eslint-plugin":"^5.20.5","eslint-plugin-perfectionist":"^5.11.1"},"_hasShrinkwrap":false,"devDependencies":{"ava":"^8.0.1","react":"^19.3.0","eslint":"^10.11.0","eslint-config-prettier":"^10.1.8"},"peerDependencies":{"eslint":">=10.4"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/eslint-config-xo-react_0.32.0_1790041587994_0.0873591245497165"},"readme":"# eslint-config-xo-react\n\n> ESLint [shareable config](http://eslint.org/docs/developer-guide/shareable-configs.html) for React to be used with [eslint-config-xo](https://github.com/xojs/eslint-config-xo)\n\n## Install\n\n```sh\nnpm install --save-dev eslint-config-xo eslint-config-xo-react\n```\n\n> [!NOTE]\n> This config is built on [ESLint React](https://eslint-react.xyz), which requires `typescript` as a peer dependency even in JavaScript-only projects. npm and pnpm install it for you, but Yarn does not, so install it yourself there.\n\n## Usage\n\n```js\n// eslint.config.js\nimport eslintConfigXo from 'eslint-config-xo';\nimport eslintConfigXoReact from 'eslint-config-xo-react';\nimport {defineConfig} from 'eslint/config';\n\nexport default defineConfig([\n\t...eslintConfigXo(),\n\t...eslintConfigXoReact(),\n]);\n```\n\n### Options\n\n#### space\n\nType: `boolean | number`\\\nDefault: `false`\n\nUse spaces for indentation instead of tabs for JSX props. Set to `true` for 2 spaces, or a number for a custom count.\n\n```js\nexport default defineConfig([\n\t...eslintConfigXo({space: true}),\n\t...eslintConfigXoReact({space: true}),\n]);\n```\n\n#### prettier\n\nType: `boolean | 'compat'`\\\nDefault: `false`\n\nIntegrate [Prettier](https://prettier.io) by turning off the JSX formatting rules that conflict with it. Rules owned by `eslint-config-xo` are left alone, so you no longer need to add `eslint-config-prettier` yourself.\n\n```js\nexport default defineConfig([\n\t...eslintConfigXo({prettier: 'compat'}),\n\t...eslintConfigXoReact({prettier: 'compat'}),\n]);\n```\n\nThis config never runs Prettier, so any truthy value only turns off the conflicting rules. Running Prettier itself is handled by the [`prettier` option in `eslint-config-xo`](https://github.com/xojs/eslint-config-xo#prettier). Pass the same value you pass there.\n\n## Use with XO\n\n[XO](https://github.com/xojs/xo) comes bundled with `eslint-config-xo`, so you only need this config:\n\n```sh\nnpm install --save-dev eslint-config-xo-react\n```\n\n```js\n// xo.config.js\nimport eslintConfigXoReact from 'eslint-config-xo-react';\nimport {defineConfig} from 'eslint/config';\n\nexport default defineConfig([\n\t...eslintConfigXoReact(),\n]);\n```\n\nPass the same [`space`](#space) and [`prettier`](#prettier) values you use in your XO config.\n\n## Included plugins\n\n- [`@eslint-react/eslint-plugin`](https://github.com/Rel1cx/eslint-react)\n- [`eslint-plugin-react-hooks`](https://github.com/facebook/react/tree/main/packages/eslint-plugin-react-hooks)\n- [`eslint-plugin-jsx-a11y-x`](https://github.com/es-tooling/eslint-plugin-jsx-a11y-x)\n- [`eslint-plugin-perfectionist`](https://github.com/azat-io/eslint-plugin-perfectionist)\n- [`@stylistic/eslint-plugin`](https://github.com/eslint-stylistic/eslint-stylistic)\n\n## Accessibility\n\nAccessibility rules come from [`eslint-plugin-jsx-a11y-x`](https://github.com/es-tooling/eslint-plugin-jsx-a11y-x), a maintained fork of `eslint-plugin-jsx-a11y`. The rules are prefixed with `jsx-a11y-x/`.\n\nOnly the rules that can be decided from the markup alone are enabled. The rules that guess at whether an element is meant to be interactive are left out, as they cannot see through component wrappers and do not apply to React Native. Enable those yourself if they suit your project.\n\nIf you wrap native elements in your own components, map them so the rules can see through the wrapper:\n\n```js\nexport default defineConfig([\n\t...eslintConfigXoReact(),\n\t{\n\t\tsettings: {\n\t\t\t'jsx-a11y-x': {\n\t\t\t\tcomponents: {\n\t\t\t\t\tTextField: 'input',\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t},\n]);\n```\n\n## Related\n\n- [eslint-config-xo](https://github.com/xojs/eslint-config-xo) - ESLint shareable config for XO\n- [XO](https://github.com/xojs/xo)\n","publish_time":1790041588103,"_cnpm_publish_time":1790041588103,"dist-tags":{"latest":"0.32.0"}}