{"_id":"@azat-io/eslint-config@2.100.0","bugs":{"url":"https://github.com/azat-io/eslint-config/issues"},"dist":{"shasum":"75ec536ad6919b21b42b618534b2e12b0d741cee","tarball":"http://registry-npm.ywwl.com/@azat-io/eslint-config/download/@azat-io/eslint-config-2.100.0.tgz","fileCount":23,"integrity":"sha512-RvGNq6GqHASiCphhR9/x05p7RrAg8tvTL0oh8XNgBGFjozvpLENl+q74mUR0Jng2uAWvYMkKBixv8bA9adE1eQ==","signatures":[{"sig":"MEUCIBpoV2gTV6Qoz/aHga44LG9SC4FGK2kcLb8PSUvtupVMAiEAoKKpyv7B+gsTxwUQUKBDthqY2udLF14Vxw77fcu13VI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIHB2GI5SqHuOQLazNYoqkQfMfg3kaF7z9DQVl+3gy8dyAiEA/+Iukk7ALwUPNnUzQjMjUg0ioX3/0IUA37cKYGMpWS4="}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@azat-io%2feslint-config@2.100.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":133978,"size":31304,"noattachment":false,"key":"/@azat-io/eslint-config/-/@azat-io/eslint-config-2.100.0.tgz"},"name":"@azat-io/eslint-config","type":"module","author":{"name":"Azat S.","email":"to@azat.io"},"engines":{"node":"^22.22.3 || ^24.16.0 || >=26.3.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./package.json":"./package.json"},"gitHead":"00c3d780317105f51f8527ba2c6aed19a0dba9ac","license":"MIT","version":"2.100.0","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"20cd671f-4bca-492a-b049-626e33406f15"}},"homepage":"https://eslint.azat.io","keywords":["eslint","eslint-config","config","code-styles","linter","javascript","typescript"],"repository":{"url":"git+https://github.com/azat-io/eslint-config.git","type":"git"},"_npmVersion":"11.19.0","description":"ESLint shareable config","directories":{},"maintainers":[{"name":"azat-io","email":"to@azat.io"}],"_nodeVersion":"24.21.0","dependencies":{"semver":"^7.8.5","globals":"^17.13.0","browserslist":"^4.29.3","eslint-plugin-n":"^18.4.1","eslint-plugin-vue":"^10.11.1","typescript-eslint":"^8.71.2","vue-eslint-parser":"^10.4.1","eslint-plugin-qwik":"2.0.0-beta.21","eslint-plugin-slop":"^0.1.3","astro-eslint-parser":"^3.2.0","eslint-plugin-astro":"^3.2.1","eslint-plugin-jsdoc":"^65.3.1","jsonc-eslint-parser":"^3.3.0","eslint-plugin-depend":"^1.5.0","eslint-plugin-regexp":"^3.3.1","eslint-plugin-svelte":"^3.23.1","svelte-eslint-parser":"^1.9.0","@vitest/eslint-plugin":"1.6.27","eslint-plugin-promise":"^7.3.0","eslint-plugin-react-x":"^5.26.5","eslint-plugin-sonarjs":"^4.2.2","eslint-plugin-unicorn":"^78.0.0","eslint-plugin-de-morgan":"^2.2.1","eslint-plugin-react-dom":"^5.26.5","eslint-plugin-react-jsx":"^5.26.5","baseline-browser-mapping":"^2.11.28","eslint-plugin-jsx-a11y-x":"^0.2.0","eslint-plugin-prefer-let":"^4.2.2","eslint-plugin-react-perf":"^3.3.3","eslint-plugin-import-lite":"^0.6.0","eslint-plugin-react-hooks":"^7.1.1","eslint-plugin-package-json":"^1.10.1","eslint-plugin-perfectionist":"^5.12.1","eslint-plugin-react-web-api":"^5.26.5","eslint-config-flat-gitignore":"^2.4.0","eslint-plugin-react-naming-convention":"^5.26.5","@eslint-community/eslint-plugin-eslint-comments":"^4.8.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"peerDependencies":{"eslint":">=10.0.0"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/eslint-config_2.100.0_1791957729280_0.6075445902588692"},"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\nRunning ESLint requires Node.js `^22.22.3 || ^24.16.0 || >=26.3.0`, matching the\nrequirements of the included plugins. The code you lint can target older\nruntimes.\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  root: import.meta.dirname,\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. Framework and tool\nflags are disabled by default. Runtime compatibility checks are enabled\nautomatically.\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### Runtime targets\n\nThe config reads the nearest `package.json` and Browserslist configuration to\ndisable rules that would introduce unsupported APIs. Runtime overrides apply to\nsource files supported by the enabled configs, leaving JSON files unaffected.\n\n```js\nimport eslintConfig from '@azat-io/eslint-config'\n\nexport default eslintConfig({\n  root: import.meta.dirname,\n  targets: {\n    browsers: 'baseline widely available',\n    node: '>=22',\n  },\n  toolingNode: '>=24',\n  typescript: true,\n})\n```\n\n`root` is the directory or file URL used for runtime target discovery. It\ndefaults to `process.cwd()`; set it explicitly in monorepos or when running\nESLint from another directory.\n\n`targets` defaults to `'auto'`. Its `node` and `browsers` keys override\nautomatic discovery independently; omitted keys are still detected, and `false`\nexcludes that runtime. Node.js targets come from `engines.node`, then\nBrowserslist Node.js queries, then the Node.js 22 fallback. A bare explicit\nversion such as `'22.12'` means that version or newer. The `node: true` flag\nenables Node.js lint rules and is separate from `targets.node`.\n\n`toolingNode` sets a different Node.js target for config files and files in\n`scripts/`, `bin/` and `tools/`. Only extensions already enabled in the config\nare included. Otherwise tooling uses the detected project Node.js target,\nincluding in browser-only projects.\n\nAdditional runtime options:\n\n| Option            | Default              | Purpose                                                    |\n| ----------------- | -------------------- | ---------------------------------------------------------- |\n| `browserslistEnv` | `'production'`       | Select the Browserslist environment.                       |\n| `pinnedDate`      | Support data date    | Pin relative Baseline queries, including shared configs.   |\n| `fallback`        | `{ node: '22.0.0' }` | Choose a fallback Node.js target, or disable with `false`. |\n| `missingBrowsers` | `'ignore'`           | Ignore missing browser targets, use `'off'`, or queries.   |\n| `unknownBrowsers` | `'off'`              | Disable dependent rules or `'ignore'` unknown browsers.    |\n| `ignoreBrowsers`  | `['op_mini']`        | Replace the list of ignored Browserslist agents.           |\n| `quiet`           | `false`              | Keep warnings in config settings without printing them.    |\n\nResolved target sources, warnings and disabled rules are available under\n`settings['azat-io/runtime']` in ESLint's `--print-config` output. Custom\n`extends` configs run after the runtime overrides, so explicit rule choices take\npriority.\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      rules: {\n        'no-undef': 'off',\n      },\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-lite](https://github.com/9romise/eslint-plugin-import-lite)\n- [eslint-plugin-jsdoc](https://github.com/gajus/eslint-plugin-jsdoc)\n- [eslint-plugin-jsx-a11y-x](https://github.com/eslint-community/eslint-plugin-jsx-a11y-x)\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-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-slop](https://github.com/antfu/eslint-plugin-slop)\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":1791957729390,"_cnpm_publish_time":1791957729390,"dist-tags":{"latest":"2.103.0"}}