0.1.2 • Published 3 years ago

@importantimport/eslint-config-svelte v0.1.2

Weekly downloads
-
License
WTFPL
Repository
github
Last release
3 years ago

@importantimport/eslint-config-svelte npm

An ESLint Flat Config for !mportantImport.

Features

Usage

Install

pnpm add -D eslint @importantimport/eslint-config-svelte prettier prettier-plugin-svelte

Config

// eslint.config.js
export { default } from '@importantimport/eslint-config-svelte'
// .prettierrc.json
// https://github.com/sveltejs/kit/blob/master/packages/create-svelte/shared/%2Bprettier/.prettierrc
{
  "overrides": [{"files": "*.svelte", "options": {"parser": "svelte"}}],
  "pluginSearchDirs": ["."],
  "plugins": ["prettier-plugin-svelte"],
  "printWidth": 100,
  "singleQuote": true,
  "trailingComma": "none",
  "useTabs": true
}

VSCode

Add svelte to eslint.validate.

// .vscode/settings.json
{
  "eslint.validate": [
    "javascript",
    "json",
    "jsonc",
    "json5",
+   "svelte"
  ]
}
0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago