🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@ifshizuku/eslint-config

Package Overview
Dependencies
Maintainers
1
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

@ifshizuku/eslint-config

Shizuku's ESLint Config

unpublished
latest
npmnpm
Version
0.11.1
Version published
Maintainers
1
Created
Source

@ifshizuku/eslint-config

npm (scoped)

Thanks to so1ve for helping this project's construction

Forked from @antfu/eslint-config

Style

  • Double quotes, no semi
  • 2 spaces for indent
  • Auto-fix formatter without Prettier
  • TypeScript, React, Vue, Solid, Svelte out-of-box
  • Sorted imports, sorted Tailwindcss, dangling commas
  • Lint also for JSON, YAML, TOML, Markdown, UnoCSS
  • Stable for diff

TypeScript formatter made use of eslint-plugin-typescript-formatter

Usage

Check out Split packages if you only need one framework or zero

pnpm add @ifshizuku/eslint-config -D

Then add to .eslintrc:

{
  "extends": "@ifshizuku"
}

VS Code Auto-fix

{
  "prettier.enable": false,
  "editor.formatOnSave": false,
  "editor.codeActionsOnSave": {
    "source.fixAll.eslint": true,
    "source.organizeImports": false
  },
  "eslint.validate": [
    "javascript",
    "javascriptreact",
    "typescript",
    "typescriptreact",
    "vue",
    "html",
    "markdown",
    "json",
    "jsonc",
    "yaml",
    "svelte"
  ]
}

Split packages

For Vanilla:

pnpm add @ifshizuku/eslint-config-vanilla -D

Then add to .eslintrc:

{
  "extends": "@ifshizuku/vanilla"
}

For React:

pnpm add @ifshizuku/eslint-config-react -D

Then add to .eslintrc:

{
  "extends": "@ifshizuku/react"
}

For Vue:

pnpm add @ifshizuku/eslint-config-vue -D

Then add to .eslintrc:

{
  "extends": "@ifshizuku/vue"
}

For Solid:

pnpm add @ifshizuku/eslint-config-solid -D

Then add to .eslintrc:

{
  "extends": "@ifshizuku/solid"
}

For Svelte:

pnpm add @ifshizuku/eslint-config-svelte -D

Then add to .eslintrc:

{
  "extends": "@ifshizuku/svelte"
}

Keywords

eslint-config

FAQs

Package last updated on 25 Jul 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts