0.1.2 • Published 4 months ago

@m-social/eslint-config-svelte v0.1.2

Weekly downloads
-
License
-
Repository
-
Last release
4 months ago

@m-social/eslint-config-svelte

ESLint config for Svelte used at M-Social

Installation

Install the package via pnpm (or use any other package manager):

pnpm i -D @m-social/eslint-config-svelte

Also don't forget to install eslint peer dependency

Usage

Create an eslint.config.js (or eslint.config.mjs) file in your project root with the following content:

import config from "@m-social/eslint-config-svelte";
import { defineConfig } from "eslint/config";

import svelteConfig from "./svelte.config.js";

export default defineConfig(config, {
	languageOptions: {
		parserOptions: {
			tsconfigRootDir: import.meta.dirname,
			svelteConfig,
		},
	},
});