{"id":48718097,"url":"https://github.com/lapikit/eslint-config-lapikit","last_synced_at":"2026-04-16T23:01:43.754Z","repository":{"id":350544319,"uuid":"1207305313","full_name":"lapikit/eslint-config-lapikit","owner":"lapikit","description":null,"archived":false,"fork":false,"pushed_at":"2026-04-11T16:20:47.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-14T21:03:12.785Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lapikit.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-10T19:49:35.000Z","updated_at":"2026-04-11T16:20:12.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/lapikit/eslint-config-lapikit","commit_stats":null,"previous_names":["lapikit/eslint-config-lapikit"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/lapikit/eslint-config-lapikit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lapikit%2Feslint-config-lapikit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lapikit%2Feslint-config-lapikit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lapikit%2Feslint-config-lapikit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lapikit%2Feslint-config-lapikit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lapikit","download_url":"https://codeload.github.com/lapikit/eslint-config-lapikit/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lapikit%2Feslint-config-lapikit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31861708,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-15T15:24:51.572Z","status":"ssl_error","status_checked_at":"2026-04-15T15:24:39.138Z","response_time":63,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-04-11T18:12:51.701Z","updated_at":"2026-04-16T23:01:43.697Z","avatar_url":"https://github.com/lapikit.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# eslint-config-lapikit\n\nOfficial ESLint configuration for [Lapikit](https://lapikit.dev) — prevents false positives caused by Lapikit's `\u003ckit:*\u003e` syntax and preprocessor.\n\n## Why?\n\nLapikit uses a custom `\u003ckit:*\u003e` syntax that is transformed into standard Svelte components at build time. Some of these components rely on named snippets (like `activator`, `indicator`, etc.) that ESLint may incorrectly flag as unused variables.\n\nThis package configures ESLint to ignore these false positives so you can focus on writing code.\n\n## Requirements\n\n- ESLint `\u003e=9.0.0` (flat config)\n- `@typescript-eslint/eslint-plugin` `\u003e=6.0.0`\n- `lapikit` `\u003e=0.5.0`\n\n## Installation\n\n```bash\nnpm install -D eslint-config-lapikit\n```\n\n```bash\npnpm add -D eslint-config-lapikit\n```\n\n```bash\nyarn add -D eslint-config-lapikit\n```\n\n```bash\nbun add -D eslint-config-lapikit\n```\n\n## Usage\n\nAdd the config to your `eslint.config.js`:\n\n```js\nimport lapikitConfig from \"eslint-config-lapikit\";\n\nexport default [...lapikitConfig];\n```\n\nThat's it! The config will automatically handle all Lapikit-specific false positives for `.svelte` files.\n\n## Handling Conflicts\n\n`eslint-config-lapikit` configures the `@typescript-eslint/no-unused-vars` rule for Lapikit snippets. If you already have a custom configuration for this rule, place the Lapikit config **first** so your own rules take precedence:\n\n```js\nimport lapikitConfig from \"eslint-config-lapikit\";\n\nexport default [\n  ...lapikitConfig, // always first\n  {\n    rules: {\n      \"@typescript-eslint/no-unused-vars\": [\n        \"error\",\n        {\n          // your custom options here\n          varsIgnorePattern: \"^myCustomPattern$\",\n        },\n      ],\n    },\n  },\n];\n```\n\n## What's Included\n\nThis config applies the following rules to all `**/*.svelte` files:\n\n| Rule                                | Configuration                          |\n| ----------------------------------- | -------------------------------------- |\n| `@typescript-eslint/no-unused-vars` | Ignores Lapikit reserved snippet names |\n\n### Ignored snippet names\n\nThe following snippet names are recognized as Lapikit reserved snippets and will not be flagged as unused:\n\n- `activator`\n- `indicator`\n- `append`\n- `prepend`\n- `close`\n- `load`\n- `tooltip`\n\n## Known Limitations\n\nThis package only handles ESLint false positives. Your IDE may still show a `ts(6133)` warning for the same snippets — this is a separate issue with the TypeScript language server. See the [documentation](https://lapikit.dev/docs) for more information.\n\n## License\n\nLicensed under the [MIT license](https://github.com/lapikit/eslint-config-lapikit/blob/main/LICENSE).\n\nCopyright © 2025 - 2026 Nycolaide\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flapikit%2Feslint-config-lapikit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flapikit%2Feslint-config-lapikit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flapikit%2Feslint-config-lapikit/lists"}