{"repo":"sveltejs/eslint-plugin-svelte","free":true,"listed":false,"github":"https://github.com/sveltejs/eslint-plugin-svelte","clone":"git clone https://github.com/sveltejs/eslint-plugin-svelte.git","description":"ESLint plugin for Svelte using AST","language":"TypeScript","stars":401,"topics":["eslint-plugin","sveltejs","svelte","eslint"],"license":"MIT","category":"cli-tools","readme_excerpt":"eslint-plugin-svelte ESLint plugin for Svelte using AST Live Demo • Documentation • Discord Introduction eslint-plugin-svelte is the official ESLint plugin for Svelte.\\ It leverages the AST generated by svelte-eslint-parser to provide custom linting for Svelte.\\ [!NOTE] eslint-plugin-svelte and svelte-eslint-parser cannot be used alongside eslint-plugin-svelte3. Installation CLI The recommended way to get started is to use the CLI. See the CLI docs for more details. Manual Setup [!NOTE] Requirements: - ESLint v8.57.1, v9.0.0, and above - Node.js v18.18.0, v20.9.0, v21.1.0 and above Usage Use eslint.config.js to configure rules. See ESLint documentation for more details. Configuration JavaScript project TypeScript project [!WARNING] The TypeScript parser uses a singleton internally, meaning it only respects the options provided during its initial initialization. If you try to change the options for a different file or override them later, the parser will ignore the new options, which may lead to errors. For more context, see typescript-eslint/typescript-eslint#6778. Svelte config inside vite.config.js The Svelte config can also be passed to the sveltekit() or svelte() plugin in vite.config.js ; SvelteKit 3 projects do this by default. Use @sveltejs/load-config to load it: Available Configurations This plugin provides the following configurations: - svelte.configs.base - Required for Svelte parsing. Does not include any rules. Ideal for building a custom configurations. - svelt","default_branch":null,"files":null,"tree":[],"storefront":"/r/sveltejs","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/sveltejs/eslint-plugin-svelte/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}