{"name":"@azat-io/eslint-config","version":"2.67.0","keywords":["eslint","eslint-config","config","code-styles","linter","javascript","typescript"],"author":{"name":"Azat S.","email":"to@azat.io"},"license":"MIT","_id":"@azat-io/eslint-config@2.67.0","maintainers":[{"name":"azat-io","email":"to@azat.io"}],"homepage":"https://eslint.azat.io","bugs":{"url":"https://github.com/azat-io/eslint-config/issues"},"dist":{"shasum":"b9a4c57a6af3dc3b3ef09aa879ffd6195ad88ee4","tarball":"http://registry-npm.ywwl.com/@azat-io/eslint-config/download/@azat-io/eslint-config-2.67.0.tgz","fileCount":18,"integrity":"sha512-ID7cSO8nz4Ds7DL+Zh73hxNLcyWpRbYuaH3si8uUdVHKQUWNrwhIr1M3mMKjP65LmepeCtzUqicO8/Ew8bMHwQ==","signatures":[{"sig":"MEYCIQDOl5FRhM4k44uL+uV4iVGVyw7jXFJA4q8z8nkt5i5pegIhAKOrKoPVYHY4zkWv5juBCf1g+DbeqDXmNwDyY2F1pwES","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@azat-io%2feslint-config@2.67.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":75594,"size":15903,"noattachment":false,"key":"/@azat-io/eslint-config/-/@azat-io/eslint-config-2.67.0.tgz"},"type":"module","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./package.json":"./package.json"},"gitHead":"05743b2c92c1ef2f2e45d73d4102f411c3f9c903","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:20cd671f-4bca-492a-b049-626e33406f15"}},"repository":{"url":"git+https://github.com/azat-io/eslint-config.git","type":"git"},"_npmVersion":"11.6.2","description":"ESLint shareable config","directories":{},"_nodeVersion":"24.13.0","dependencies":{"globals":"^17.1.0","eslint-plugin-n":"^17.23.2","eslint-plugin-vue":"^10.7.0","typescript-eslint":"^8.54.0","vue-eslint-parser":"^10.2.0","eslint-plugin-qwik":"^1.18.0","astro-eslint-parser":"^1.2.2","eslint-plugin-astro":"^1.5.0","eslint-plugin-jsdoc":"^62.4.1","jsonc-eslint-parser":"^2.4.2","eslint-plugin-depend":"^1.4.0","eslint-plugin-regexp":"^3.0.0","eslint-plugin-svelte":"^3.14.0","svelte-eslint-parser":"^1.4.1","@vitest/eslint-plugin":"1.6.6","eslint-plugin-promise":"^7.2.1","eslint-plugin-react-x":"^2.7.4","eslint-plugin-sonarjs":"^3.0.5","eslint-plugin-unicorn":"^62.0.0","eslint-plugin-import-x":"^4.16.1","eslint-plugin-jsx-a11y":"^6.10.2","eslint-plugin-de-morgan":"^2.0.0","eslint-plugin-react-dom":"^2.7.4","eslint-plugin-prefer-let":"^4.0.1","eslint-plugin-react-perf":"^3.3.3","eslint-plugin-react-hooks":"^7.0.1","eslint-plugin-package-json":"^0.88.2","eslint-plugin-perfectionist":"^5.4.0","eslint-plugin-react-web-api":"^2.7.4","eslint-config-flat-gitignore":"^2.1.0","eslint-plugin-react-compiler":"19.1.0-rc.2","eslint-plugin-react-hooks-extra":"^2.7.4","eslint-import-resolver-typescript":"^4.4.4","eslint-plugin-react-naming-convention":"^2.7.4","@eslint-community/eslint-plugin-eslint-comments":"^4.6.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"peerDependencies":{"eslint":">=9.35.0"},"_npmOperationalInternal":{"tmp":"tmp/eslint-config_2.67.0_1769451797989_0.4524110186559447","host":"s3://npm-registry-packages-npm-production"},"readme":"# ESLint Config\n\n<img\n  src=\"https://raw.githubusercontent.com/azat-io/eslint-config/main/assets/logo.svg\"\n  alt=\"ESLint Config Logo\"\n  align=\"right\"\n  height=\"160\"\n/>\n\n[![Version](https://img.shields.io/npm/v/@azat-io/eslint-config.svg?color=4a32c3&labelColor=26272b)](https://npmjs.com/package/@azat-io/eslint-config)\n[![GitHub License](https://img.shields.io/badge/license-MIT-232428.svg?color=4a32c3&labelColor=26272b)](https://github.com/azat-io/eslint-config/blob/main/license.md)\n\nA comprehensive and flexible ESLint configuration that supports a wide range of\nframeworks and environments. Easily integrate clean, consistent code standards\nacross projects by enabling settings for specific tools and libraries.\n\nThis config covers multiple setups in a single, straightforward import, helping\nmaintain consistency across different project types and frameworks.\n\n## Usage\n\n1. Install package:\n\n```sh\npnpm add --save-dev eslint @azat-io/eslint-config\n```\n\n2. Create ESLint configuration file `eslint.config.js`:\n\n```js\nimport eslintConfig from '@azat-io/eslint-config'\n\nexport default eslintConfig({\n  perfectionist: true,\n  typescript: true,\n  react: true,\n  node: true,\n})\n```\n\n3. Add script for `package.json`:\n\n```json\n{\n  \"scripts\": {\n    \"test:js\": \"eslint \\\"**/*.{js,ts,jsx,tsx,json}\\\"\"\n  }\n}\n```\n\n## Configuration\n\nTo configure the ESLint rules based on your project’s needs, import the config\nand pass an object with options for each framework or tool. By default, all\noptions are disabled, so you can enable only what's relevant to your project.\n\n```js\nimport eslintConfig from '@azat-io/eslint-config'\n\nexport default eslintConfig({\n  perfectionist: true,\n  typescript: true,\n  svelte: true,\n  vitest: true,\n  astro: true,\n  react: true,\n  qwik: true,\n  node: true,\n  vue: true,\n})\n```\n\n### perfectionist\n\nEnables rules for sorting and organizing code structures for better readability\nand consistency.\n\n### typescript\n\nAdds TypeScript-specific linting rules to ensure type safety and maintain\nTypeScript best practices.\n\n### svelte\n\nEnables support for Svelte, including linting rules for Svelte components and\nfiles.\n\n### vitest\n\nAdds support for Vitest, adjusting linting for testing files and practices\nwithin Vitest projects.\n\n### astro\n\nConfigures ESLint for Astro projects, with adjustments for Astro’s file\nstructure and conventions.\n\n### react\n\nIncludes React-specific linting rules for JSX syntax, React hooks, and best\npractices within React environments.\n\n### qwik\n\nAdds support for Qwik, adjusting linting for Qwik-specific syntax and\nconventions.\n\n### node\n\nAdjusts linting for Node.js environments, addressing Node-specific globals,\nimports, and common practices.\n\n### vue\n\nAdds Vue-specific linting rules, supporting Vue's syntax and best practices for\nVue components.\n\n### extends\n\nYou can add your own configs. Example:\n\n```js\nimport eslintConfig from '@azat-io/eslint-config'\n\nexport default eslintConfig({\n  extends: [\n    {\n      'no-undef': 'off',\n    },\n  ],\n})\n```\n\n## Plugins\n\nThis config uses the following plugins:\n\n- [@eslint/js](https://github.com/eslint/eslint)\n- [@vitest/eslint-plugin](https://github.com/vitest-dev/eslint-plugin-vitest)\n- [eslint-plugin-astro](https://github.com/ota-meshi/eslint-plugin-astro)\n- [eslint-plugin-de-morgan](https://github.com/azat-io/eslint-plugin-de-morgan)\n- [eslint-plugin-depend](https://github.com/es-tooling/eslint-plugin-depend)\n- [eslint-plugin-import-x](https://github.com/un-ts/eslint-plugin-import-x)\n- [eslint-plugin-jsdoc](https://github.com/gajus/eslint-plugin-jsdoc)\n- [eslint-plugin-jsx-a11y](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y)\n- [eslint-plugin-n](https://github.com/eslint-community/eslint-plugin-n)\n- [eslint-plugin-package-json](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json)\n- [eslint-plugin-perfectionist](https://github.com/azat-io/eslint-plugin-perfectionist)\n- [eslint-plugin-prefer-let](https://github.com/thefrontside/javascript/tree/v3/packages/eslint-plugin-prefer-let)\n- [eslint-plugin-promise](https://github.com/eslint-community/eslint-plugin-promise)\n- [eslint-plugin-qwik](https://github.com/QwikDev/qwik/tree/main/packages/eslint-plugin-qwik)\n- [eslint-plugin-react-compiler](https://github.com/facebook/react/tree/main/compiler/packages/eslint-plugin-react-compiler)\n- [eslint-plugin-react-dom](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-react-jsx](https://github.com/Rel1cx/eslint-react)\n- [eslint-plugin-react-naming-convention](https://github.com/Rel1cx/eslint-react)\n- [eslint-plugin-react-perf](https://github.com/cvazac/eslint-plugin-react-perf)\n- [eslint-plugin-react-web-api](https://github.com/Rel1cx/eslint-react)\n- [eslint-plugin-react-x](https://github.com/Rel1cx/eslint-react)\n- [eslint-plugin-regexp](https://github.com/ota-meshi/eslint-plugin-regexp)\n- [eslint-plugin-sonarjs](https://github.com/SonarSource/SonarJS/tree/master/packages/jsts/src/rules)\n- [eslint-plugin-svelte](https://github.com/sveltejs/eslint-plugin-svelte)\n- [eslint-plugin-unicorn](https://github.com/sindresorhus/eslint-plugin-unicorn)\n- [eslint-plugin-vue](https://github.com/vuejs/eslint-plugin-vue)\n- [typescript-eslint](https://github.com/typescript-eslint/typescript-eslint)\n\n## See also\n\n- [@azat-io/ai-config](https://github.com/azat-io/ai-config)\n- [@azat-io/prettier-config](https://github.com/azat-io/prettier-config)\n- [@azat-io/stylelint-config](https://github.com/azat-io/stylelint-config)\n- [@azat-io/typescript-config](https://github.com/azat-io/typescript-config)\n\n## License\n\nMIT &copy; [Azat S.](https://azat.io)\n","publish_time":1769451798112,"_cnpm_publish_time":1769451798112,"dist-tags":{"latest":"2.103.0"}}