{"name":"eslint-config-xo","version":"0.46.0","description":"ESLint shareable config for XO","license":"MIT","repository":{"type":"git","url":"git+https://github.com/xojs/eslint-config-xo.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":{".":"./index.js","./browser":"./browser.js","./space":"./space.js","./space/browser":"./space-browser.js"},"sideEffects":false,"engines":{"node":">=18.18"},"scripts":{"test":"eslint && ava"},"keywords":["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"],"dependencies":{"@stylistic/eslint-plugin":"^2.6.1","confusing-browser-globals":"1.0.11","globals":"^15.3.0"},"devDependencies":{"ava":"^6.1.3","eslint":"^9.8.0"},"peerDependencies":{"eslint":">=9.8.0"},"_id":"eslint-config-xo@0.46.0","gitHead":"a09d65618cc83ac27eba9dc5b85423c26807e9ac","bugs":{"url":"https://github.com/xojs/eslint-config-xo/issues"},"homepage":"https://github.com/xojs/eslint-config-xo#readme","_nodeVersion":"18.20.2","_npmVersion":"10.6.0","dist":{"integrity":"sha512-mjQUhdTCLQwHUFKf1hhSx1FFhm2jllr4uG2KjaW7gZHGAbjKoSypvo1eQvFk17lHx3bztYjZDDXQmkAZyaSlAg==","shasum":"2ebb7d8507d8babe456d76b3eb3d11e2ef0c89de","tarball":"http://registry-npm.ywwl.com/eslint-config-xo/download/eslint-config-xo-0.46.0.tgz","fileCount":7,"unpackedSize":20037,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEpxkVVhf/SQjm3QJe1dzDbGh1gtXxFGc34HF6sG0gbnAiEA2/yk3+hPoaPbSgEfh+XuQEgE3HUmHRRtRq/hlfEpI5c="}],"size":6128,"noattachment":false,"key":"/eslint-config-xo/-/eslint-config-xo-0.46.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eslint-config-xo_0.46.0_1722698196179_0.007698224750544158"},"_hasShrinkwrap":false,"readme":"# eslint-config-xo\n\n> ESLint [shareable config](https://eslint.org/docs/developer-guide/shareable-configs.html) for [XO](https://github.com/xojs/xo)\n\nThis is for advanced users. [You probably want to use XO directly.](#use-the-xo-cli-instead)\n\nSee [eslint-plugin-unicorn](https://github.com/sindresorhus/eslint-plugin-unicorn) for some additional useful rules.\n\n**Use the [XO issue tracker](https://github.com/xojs/xo/issues) instead of this one.**\n\n## Install\n\n```sh\nnpm install --save-dev eslint-config-xo\n```\n\n## Usage\n\n```js\n// eslint.config.js\nimport xo from 'eslint-config-xo';\n\nexport default [\n\t...xo,\n];\n```\n\nThis package also exposes [`eslint-config-xo/browser`](browser.js) if you're in the browser:\n\n```js\nimport xoBrowser from 'eslint-config-xo/browser';\n\nexport default [\n\t...xoBrowser,\n];\n```\n\nThis package also exposes [`eslint-config-xo/space`](space.js) if you're in favor of 2-space indent:\n\n```js\nimport xoSpace from 'eslint-config-xo/space';\n\nexport default [\n\t...xoSpace,\n];\n```\n\nThis package also exposes [`eslint-config-xo/space/browser`](space-browser.js) if you're in favor of 2-space indent and in browser:\n\n```js\nimport xoSpaceBrowser from 'eslint-config-xo/space/browser';\n\nexport default [\n\t...xoSpaceBrowser,\n];\n```\n\n## Use the XO CLI instead\n\nXO is an ESLint wrapper with great defaults.\n\nHere are some reason why you should use the [XO CLI](https://github.com/xojs/xo) instead of this config:\n\n- XO comes bundled with this config.\n- [Beautiful output.](https://github.com/sindresorhus/eslint-formatter-pretty)\n- Bundles many useful plugins, like [`eslint-plugin-unicorn`](https://github.com/sindresorhus/eslint-plugin-unicorn), [`eslint-plugin-import`](https://github.com/benmosher/eslint-plugin-import), [`eslint-plugin-ava`](https://github.com/avajs/eslint-plugin-ava), and more.\n- No need to specify file paths to lint. It will lint all JS files except [commonly ignored paths](https://github.com/xojs/xo#ignores).\n- Super simple to add XO to a project with [`$ npm init xo`](https://github.com/xojs/create-xo).\n- Specify `indent` and `semicolon` preferences easily without messing with the rule config.\n- Config/rule overrides per files/globs.\n- Can open all files with errors at the correct line in your editor. *(See the `--open` flag)*\n- The [editor plugins](https://github.com/xojs/xo#editor-plugins) are IMHO better than the ESLint ones. *(Subjective)*\n\ntl;dr You miss out on a lot by just using this config.\n\n## Related\n\n- [eslint-config-xo-space](https://github.com/xojs/eslint-config-xo-space) - ESLint shareable config for XO with 2-space indent\n- [eslint-config-xo-typescript](https://github.com/xojs/eslint-config-xo-typescript) - ESLint shareable config for TypeScript to be used with this config\n- [eslint-config-xo-react](https://github.com/xojs/eslint-config-xo-react) - ESLint shareable config for React to be used with this config\n","publish_time":1722698196339,"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_cnpm_publish_time":1722698196339,"dist-tags":{"latest":"7.0.0"}}