{"_id":"@damisparks/eslint-config","_rev":"6-eddfb3667bfa48178595500e3658c970","name":"@damisparks/eslint-config","dist-tags":{"latest":"2.0.0"},"versions":{"1.0.0":{"name":"@damisparks/eslint-config","version":"1.0.0","keywords":["eslint-config","eslintconfig"],"author":{"url":"https://damisparks.com","name":"Dami Sparks","email":"rethinkwithdami@gmail.com"},"license":"MIT","_id":"@damisparks/eslint-config@1.0.0","maintainers":[{"name":"damisparks","email":"rethinkwithdami@gmail.com"}],"homepage":"https://github.com/damisparks/eslint-config#readme","bugs":{"url":"https://github.com/damisparks/eslint-config/issues"},"dist":{"shasum":"ba76eb708a8fe6e00b70a8c6e14109abdf11c200","tarball":"https://registry.npmjs.org/@damisparks/eslint-config/-/eslint-config-1.0.0.tgz","fileCount":14,"integrity":"sha512-qnbX8vWAavgYsFVOX1QOsW0MTWZSAi03sU92nFOtkxhnt4Nl+un/uAKw8QZxMixTBENVWeU+y6g/OUPRa/wjtw==","signatures":[{"sig":"MEUCIAGqNhd62BNbzjpE3IFbHbQrg/zPMBBpOLiPUS5cAlTsAiEApL8vMw6iW4qqct2d8+wmZIRd3Enq8pFa1PzQA1ylUFk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9333},"main":"index.mjs","type":"module","_from":"file:damisparks-eslint-config-1.0.0.tgz","scripts":{"dev":"config-inspector","lint":"eslint .","lint:fix":"eslint . --fix"},"_npmUser":{"name":"damisparks","email":"rethinkwithdami@gmail.com"},"_resolved":"/private/var/folders/rj/s5ftcl0n6bj3cj7h7j162kgc0000gn/T/11ffd8d59d872331913ec278522c4ae2/damisparks-eslint-config-1.0.0.tgz","_integrity":"sha512-qnbX8vWAavgYsFVOX1QOsW0MTWZSAi03sU92nFOtkxhnt4Nl+un/uAKw8QZxMixTBENVWeU+y6g/OUPRa/wjtw==","repository":{"url":"git+https://github.com/damisparks/eslint-config.git","type":"git"},"_npmVersion":"10.9.0","description":"Dami Sparks ESLint Config","directories":{},"_nodeVersion":"20.18.0","dependencies":{"@antfu/eslint-config":"^3.7.3","eslint-plugin-tailwindcss":"^3.17.4"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^9.12.0","eslint-plugin-format":"^0.1.2","@eslint/config-inspector":"^0.5.4"},"_npmOperationalInternal":{"tmp":"tmp/eslint-config_1.0.0_1729286981983_0.22285374874160335","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"@damisparks/eslint-config","version":"1.0.1","keywords":["eslint-config","eslintconfig"],"author":{"url":"https://damisparks.com","name":"Dami Sparks","email":"rethinkwithdami@gmail.com"},"license":"MIT","_id":"@damisparks/eslint-config@1.0.1","maintainers":[{"name":"damisparks","email":"rethinkwithdami@gmail.com"}],"homepage":"https://github.com/damisparks/eslint-config#readme","bugs":{"url":"https://github.com/damisparks/eslint-config/issues"},"dist":{"shasum":"535d86e61cdb5bdbeb6947fc914fbcc5824302db","tarball":"https://registry.npmjs.org/@damisparks/eslint-config/-/eslint-config-1.0.1.tgz","fileCount":14,"integrity":"sha512-55tP975JLTpsaRoSIVvi7+oZiVaPwqGXN3fYR5FR6qFIzEC7MsBW0Nlp3vDIcayptChVmFlTdGVaAlN5mhnIWQ==","signatures":[{"sig":"MEQCIGTSv1nNBLBD15ZEjbijnkCS+TIh7BrMA11igtKppbm1AiBNfOPvzrgVJDTbbw369keLGPAQPId+nZ/kO6Ec/hKvPg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9460},"main":"index.mjs","type":"module","_from":"file:damisparks-eslint-config-1.0.1.tgz","scripts":{"dev":"config-inspector","lint":"eslint .","lint:fix":"eslint . --fix"},"_npmUser":{"name":"damisparks","email":"rethinkwithdami@gmail.com"},"_resolved":"/private/var/folders/rj/s5ftcl0n6bj3cj7h7j162kgc0000gn/T/b77ab1dbc7bde5b5971b5037b598ca68/damisparks-eslint-config-1.0.1.tgz","_integrity":"sha512-55tP975JLTpsaRoSIVvi7+oZiVaPwqGXN3fYR5FR6qFIzEC7MsBW0Nlp3vDIcayptChVmFlTdGVaAlN5mhnIWQ==","repository":{"url":"git+https://github.com/damisparks/eslint-config.git","type":"git"},"_npmVersion":"10.9.0","description":"Dami Sparks ESLint Config","directories":{},"_nodeVersion":"20.18.0","dependencies":{"@antfu/eslint-config":"^3.7.3","eslint-plugin-tailwindcss":"^3.17.4"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^9.12.0","eslint-plugin-format":"^0.1.2","@eslint/config-inspector":"^0.5.4"},"_npmOperationalInternal":{"tmp":"tmp/eslint-config_1.0.1_1729330177445_0.693296048819964","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"@damisparks/eslint-config","version":"1.0.2","keywords":["eslint-config","eslintconfig"],"author":{"url":"https://damisparks.com","name":"Dami Sparks","email":"rethinkwithdami@gmail.com"},"license":"MIT","_id":"@damisparks/eslint-config@1.0.2","maintainers":[{"name":"damisparks","email":"rethinkwithdami@gmail.com"}],"homepage":"https://github.com/damisparks/eslint-config#readme","bugs":{"url":"https://github.com/damisparks/eslint-config/issues"},"dist":{"shasum":"34ff393d488173c332b2e8632e3b1ef0b158a642","tarball":"https://registry.npmjs.org/@damisparks/eslint-config/-/eslint-config-1.0.2.tgz","fileCount":14,"integrity":"sha512-zFTRexXy1AIYMZ6Lo6GQufLW4yUxg33Jo3owvg8jpTToH5c4dznpTTo8XsZwnMtAZs1rGp+KjDY4CpsJj4mVLw==","signatures":[{"sig":"MEQCIFvmR5L4roMckntPi1SQRCnFmXzDVqWa4X+Zkn7FmrQHAiByDW9yvp7Ygt2CClk0KDeEQjJXLUpLXpQfuEw4wFyLZg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":9711},"main":"index.mjs","type":"module","gitHead":"a5d8628ac040978430cc9d974750a31556167fa1","scripts":{"dev":"config-inspector","lint":"eslint .","lint:fix":"eslint . --fix"},"_npmUser":{"name":"damisparks","email":"rethinkwithdami@gmail.com"},"repository":{"url":"git+https://github.com/damisparks/eslint-config.git","type":"git"},"_npmVersion":"11.0.0","description":"Dami Sparks ESLint Config","directories":{},"_nodeVersion":"23.4.0","dependencies":{"@antfu/eslint-config":"^4.11.0","eslint-plugin-tailwindcss":"^3.18.0"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"_hasShrinkwrap":false,"packageManager":"pnpm@9.15.9","devDependencies":{"eslint":"^9.23.0","eslint-plugin-format":"^0.1.3","@eslint/config-inspector":"^1.0.2"},"_npmOperationalInternal":{"tmp":"tmp/eslint-config_1.0.2_1742737719231_0.10180580262693995","host":"s3://npm-registry-packages-npm-production"}},"1.1.0":{"name":"@damisparks/eslint-config","version":"1.1.0","keywords":["eslint-config","eslintconfig"],"author":{"url":"https://damisparks.com","name":"Dami Sparks","email":"rethinkwithdami@gmail.com"},"license":"MIT","_id":"@damisparks/eslint-config@1.1.0","maintainers":[{"name":"damisparks","email":"rethinkwithdami@gmail.com"}],"homepage":"https://github.com/damisparks/eslint-config#readme","bugs":{"url":"https://github.com/damisparks/eslint-config/issues"},"dist":{"shasum":"144cbecdc33032716988ae492049efa9f1e4ec3e","tarball":"https://registry.npmjs.org/@damisparks/eslint-config/-/eslint-config-1.1.0.tgz","fileCount":14,"integrity":"sha512-mm6LQWeE78meiJSoq3xB8EFyFRrbBd1Hl1C8FUQO2OEOF6N9XprpY1DqbLaDXTb7pfGeBqWxGwoGjPPhpbWL0Q==","signatures":[{"sig":"MEYCIQDn1Fmg2ymeO979qDJk7TuIAuUyORCzZgrUf7ps58e42gIhAJELURPlmdfj8nnfZKNqKkBkol50aLJcZRBWpELWy7N+","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":10196},"main":"index.mjs","type":"module","_from":"file:damisparks-eslint-config-1.1.0.tgz","scripts":{"dev":"config-inspector","lint":"eslint .","lint:fix":"eslint . --fix"},"_npmUser":{"name":"damisparks","email":"rethinkwithdami@gmail.com"},"_resolved":"/private/var/folders/sv/0wbt45956lq588ytyrpk9sm40000gq/T/5069cbe50c7b36c38163b28178c20299/damisparks-eslint-config-1.1.0.tgz","_integrity":"sha512-mm6LQWeE78meiJSoq3xB8EFyFRrbBd1Hl1C8FUQO2OEOF6N9XprpY1DqbLaDXTb7pfGeBqWxGwoGjPPhpbWL0Q==","repository":{"url":"git+https://github.com/damisparks/eslint-config.git","type":"git"},"_npmVersion":"10.9.2","description":"Dami Sparks ESLint Config","directories":{},"_nodeVersion":"23.11.0","dependencies":{"@antfu/eslint-config":"^4.12.0"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^9.25.0","eslint-plugin-format":"^0.1.3","@eslint/config-inspector":"^1.0.2","eslint-plugin-tailwindcss":"^3.18.0"},"peerDependencies":{"eslint-plugin-tailwindcss":"^3.18.0"},"peerDependenciesMeta":{"eslint-plugin-tailwindcss":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/eslint-config_1.1.0_1745521959035_0.33434550810934827","host":"s3://npm-registry-packages-npm-production"}},"1.1.1":{"name":"@damisparks/eslint-config","version":"1.1.1","keywords":["eslint-config","eslintconfig"],"author":{"url":"https://damisparks.com","name":"Dami Sparks","email":"rethinkwithdami@gmail.com"},"license":"MIT","_id":"@damisparks/eslint-config@1.1.1","maintainers":[{"name":"damisparks","email":"rethinkwithdami@gmail.com"}],"homepage":"https://github.com/damisparks/eslint-config#readme","bugs":{"url":"https://github.com/damisparks/eslint-config/issues"},"dist":{"shasum":"c6b733bf2c1343f71ddf5f78c510b433d56092f5","tarball":"https://registry.npmjs.org/@damisparks/eslint-config/-/eslint-config-1.1.1.tgz","fileCount":14,"integrity":"sha512-aWtswdEBAqR5JWNQC3LLt7e6zDCgCloff2Cn4Jc5vOy3251V6FAtIWeU7m9qLb4e0RtuyKvZxc8XoTvG5Na2wg==","signatures":[{"sig":"MEUCIQC/vX4+TiZGinx+ooxTlcOl8Ga7oMs3I+YWFYkOYbO9bgIgOlk08mioGCBw+QuO6cG9qVRQSCKP/UjnMJnQ4cJYtcY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":9580},"main":"index.mjs","type":"module","_from":"file:damisparks-eslint-config-1.1.1.tgz","scripts":{"dev":"config-inspector","lint":"eslint .","lint:fix":"eslint . --fix"},"_npmUser":{"name":"damisparks","email":"rethinkwithdami@gmail.com"},"_resolved":"/private/var/folders/sv/0wbt45956lq588ytyrpk9sm40000gq/T/59642a9fd4225c8ca3c64d12d90a5c14/damisparks-eslint-config-1.1.1.tgz","_integrity":"sha512-aWtswdEBAqR5JWNQC3LLt7e6zDCgCloff2Cn4Jc5vOy3251V6FAtIWeU7m9qLb4e0RtuyKvZxc8XoTvG5Na2wg==","repository":{"url":"git+https://github.com/damisparks/eslint-config.git","type":"git"},"_npmVersion":"10.9.2","description":"Dami Sparks ESLint Config","directories":{},"_nodeVersion":"23.11.0","dependencies":{"@antfu/eslint-config":"^4.12.0","eslint-plugin-tailwindcss":"^3.18.0"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^9.25.0","eslint-plugin-format":"^0.1.3","@eslint/config-inspector":"^1.0.2"},"_npmOperationalInternal":{"tmp":"tmp/eslint-config_1.1.1_1745615434251_0.5344167700819276","host":"s3://npm-registry-packages-npm-production"}},"2.0.0":{"name":"@damisparks/eslint-config","type":"module","version":"2.0.0","description":"Dami Sparks ESLint Config","author":{"name":"Dami Sparks","email":"rethinkwithdami@gmail.com","url":"https://damisparks.com"},"license":"MIT","homepage":"https://github.com/damisparks/eslint-config#readme","repository":{"type":"git","url":"git+https://github.com/damisparks/eslint-config.git"},"bugs":{"url":"https://github.com/damisparks/eslint-config/issues"},"keywords":["eslint-config","eslintconfig"],"main":"index.mjs","dependencies":{"@antfu/eslint-config":"^4.12.0"},"devDependencies":{"@eslint/config-inspector":"^1.0.2","eslint":"^9.25.0","eslint-plugin-format":"^0.1.3"},"scripts":{"lint":"eslint .","lint:fix":"eslint . --fix","dev":"config-inspector"},"_id":"@damisparks/eslint-config@2.0.0","_integrity":"sha512-lbQ/4o9JCXmBGE0adq6m2ofhzQor2bOFQMQwrjt+qVucxscWPy7p4prR8R/s1w+TPfsJVg2XCFuyhVZMbxN3zA==","_resolved":"/private/var/folders/sv/0wbt45956lq588ytyrpk9sm40000gq/T/19f5b7d0786d6457f73bb8baaf58ced9/damisparks-eslint-config-2.0.0.tgz","_from":"file:damisparks-eslint-config-2.0.0.tgz","_nodeVersion":"23.11.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-lbQ/4o9JCXmBGE0adq6m2ofhzQor2bOFQMQwrjt+qVucxscWPy7p4prR8R/s1w+TPfsJVg2XCFuyhVZMbxN3zA==","shasum":"5f10a4ed85f21f1b7ab208ed290bbf89f24d2e77","tarball":"https://registry.npmjs.org/@damisparks/eslint-config/-/eslint-config-2.0.0.tgz","fileCount":13,"unpackedSize":9288,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIGs05uL4tneEmZtC8e/XplVn2b5jS6UQ4BF5PdSmZwZDAiBkneA0+uZyd1oElVAQm3u2oWGfZZa4T2S7KHTD6kA5Qw=="}]},"_npmUser":{"name":"damisparks","email":"rethinkwithdami@gmail.com"},"directories":{},"maintainers":[{"name":"damisparks","email":"rethinkwithdami@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/eslint-config_2.0.0_1745774828882_0.5960358944456277"},"_hasShrinkwrap":false}},"time":{"created":"2024-10-18T21:29:41.895Z","modified":"2025-04-27T17:27:09.370Z","1.0.0":"2024-10-18T21:29:42.144Z","1.0.1":"2024-10-19T09:29:37.665Z","1.0.2":"2025-03-23T13:48:39.417Z","1.1.0":"2025-04-24T19:12:39.221Z","1.1.1":"2025-04-25T21:10:34.456Z","2.0.0":"2025-04-27T17:27:09.191Z"},"bugs":{"url":"https://github.com/damisparks/eslint-config/issues"},"author":{"name":"Dami Sparks","email":"rethinkwithdami@gmail.com","url":"https://damisparks.com"},"license":"MIT","homepage":"https://github.com/damisparks/eslint-config#readme","keywords":["eslint-config","eslintconfig"],"repository":{"type":"git","url":"git+https://github.com/damisparks/eslint-config.git"},"description":"Dami Sparks ESLint Config","maintainers":[{"name":"damisparks","email":"rethinkwithdami@gmail.com"}],"readme":"# @damisparks/eslint-config\n\nThis is my personal ESLint config preset. It is based on the [`@antfu/eslint-config`](https://github.com/antfu/eslint-config). I made some tweaks to fit my personal preferences.\n\n> [!NOTE]\n> This config is rewritten to the new [ESLint Flat config](https://eslint.org/docs/latest/use/configure/configuration-files-new).\n\n## Features\n\nSome features of this config are inherited from the `@antfu/eslint-config`:\n\n- Out-of-the-box support for TypeScript, Vue, React, etc.\n- [ESLint Flat config](https://eslint.org/docs/latest/use/configure/configuration-files-new) for better organization and composition.\n- Using [ESLint Stylistic](https://github.com/eslint-stylistic/eslint-stylistic) to provide a consistent code style and enforce preconfigured style.\n- And many more...\n\nMy personal tweaks include:\n\n- Vue:\n  - Enforce **vue/block-order** to `['script', 'template', 'style']`.\n  - Enforce a maximum number of attributes per line (`3` for single-line, `1` for multi-line).\n  - Explicitly enforce **vue/prop-name-casing** to `camelCase`, even though it is the default.\n\n- Tailwind CSS (Optional): Enforce best practices and consistent usage of [Tailwind CSS](https://tailwindcss.com/) via `eslint-plugin-tailwindcss`.\n- ... and other minor tweaks.\n\n## Installation\n\nInstall the `@damisparks/eslint-config` package in your project:\n\n```bash\npnpm add -D eslint @damisparks/eslint-config\n```\n\nCreate `eslint.config.mjs` in your project root:\n\n```js\n// eslint.config.mjs\nimport damisparks from '@damisparks/eslint-config'\n\nexport default damisparks()\n```\n\n### Usage\n\nUsing the default configuration without any arguments activates the `@antfu/eslint-config` preset.\n\n- Autodetects [Vue](https://vuejs.org) and [TypeScript](https://www.typescriptlang.org).\n- Enables ESLint Stylistic style rules.\n\n### Optional Presets\n\nOptionally, This config also provides some optional rules or presets for **Vue** and **TailwindCSS** presets:\n\n```js\n// eslint.config.mjs\nimport { damisparks, tailwind, vue } from '@damisparks/eslint-config'\n\nexport default damisparks(\n  {}, // @antfu/eslint-config options must come first.\n  vue,\n  tailwind,\n  {\n    // other ESLint Flat config rules object\n  }\n)\n```\n\n### Nuxt Integration\n\nThis package provides custom rules that can be used with [Nuxt](https://nuxt.com). The recommended approach to use this config is via the Nuxt module.\n\n1. Run the following command to add the `@nuxt/eslint` module to your project:\n\n```bash\nnpx nuxi module add eslint\n```\n\n2. In your `nuxt.config.ts`, set the `standalone` option to `false`:\n\n```ts\nexport default defineNuxtConfig({\n  modules: [\n    '@nuxt/eslint'\n  ],\n  eslint: {\n    config: {\n      standalone: false // <---\n    }\n  }\n})\n```\n\n3. Integrate the `@damisparks/eslint-config` in your `eslint.config.mjs`:\n\n```js\nimport { damisparks, tailwind, vue } from '@damisparks/eslint-config'\nimport withNuxt from './.nuxt/eslint.config.mjs'\n\nexport default withNuxt(damisparks(\n  {}, // @antfu/eslint-config options must come first.\n  vue, // Optional\n  tailwind, // Optional\n))\n```\n\n### NPM Scripts\n\nAdd the below lint commands to your `package.json` script section:\n\n```json\n{\n  \"scripts\": {\n    \"lint\": \"eslint .\",\n    \"lint:fix\": \"eslint . --fix\"\n  }\n}\n```\n\n## VS Code Support\n\nIn VS Code, to enable support for ESLint Flat configuration, edit your `.vscode/settings.json` file and add the following:\n\n```json\n{\n  // Required in vscode-eslint < v3.0.10 only\n  \"eslint.useFlatConfig\": true\n}\n```\n\n## License\n\n[MIT](/LICENSE) License © 2024-present [Dami Sparks](https://github.com/damisparks)\n","readmeFilename":"README.md"}