Package detail

@vida0905/eslint-config

9romise314MIT2.6.0

Vida Xie's ESLint Config

eslint-config

readme

@vida0905/eslint-config

npm code style

Self use eslint config, extends antfu's config

Difference

  • More stricter rules.
  • Disable jsx by default.

Setup

npm i -D @vida0905/eslint-config

in eslint.config.js

import { defineConfig } from '@vida0905/eslint-config'

export default defineConfig()

in .vscode/settings.json, more info to @antfu/eslint-config

{
  // Enable the ESlint flat config support
  // (remove this if your ESLint extension above v3.0.5)
  "eslint.experimental.useFlatConfig": true,

  // Disable the default formatter, use eslint instead
  "prettier.enable": false,
  "editor.formatOnSave": false,

  // Auto fix
  "editor.codeActionsOnSave": {
    "source.fixAll.eslint": "explicit",
    "source.organizeImports": "never"
  },

  // Silent the stylistic rules in you IDE, but still auto fix them
  "eslint.rules.customizations": [
    { "rule": "style/*", "severity": "off" },
    { "rule": "format/*", "severity": "off" },
    { "rule": "*-indent", "severity": "off" },
    { "rule": "*-spacing", "severity": "off" },
    { "rule": "*-spaces", "severity": "off" },
    { "rule": "*-order", "severity": "off" },
    { "rule": "*-dangle", "severity": "off" },
    { "rule": "*-newline", "severity": "off" },
    { "rule": "*quotes", "severity": "off" },
    { "rule": "*semi", "severity": "off" }
  ],

  // Enable eslint for all supported languages
  "eslint.validate": [
    "javascript",
    "javascriptreact",
    "typescript",
    "typescriptreact",
    "vue",
    "html",
    "markdown",
    "json",
    "jsonc",
    "yaml",
    "toml",
    "xml",
    "gql",
    "graphql",
    "astro",
    "css",
    "less",
    "scss",
    "pcss",
    "postcss"
  ]
}

License

  • MIT License © 2024-PRESENT Vida Xie
  • @antfu/eslint-config - MIT License

changelog

Changelog

2.6.0 (2025-08-22)

Features

Bug Fixes

  • add defineNuxtConfig as ESLint's globals (2f61d5b)
  • better option description (46be2cb)
  • dynamic import eslint-plugin-de-morgan (d57e1d5)
  • enable deMorgan default (defcf08)

Build Related

  • specific tsconfig in tsdown (3f2c2bf)

2.5.3 (2025-08-07)

Bug Fixes

2.5.2 (2025-08-07)

Chores

2.5.1 (2025-08-06)

Bug Fixes

  • apply options correctly (218693c)
  • vue: setup vue/max-attributes-per-line (bfce96f)

Chores

2.5.0 (2025-07-25)

Features

2.4.4 (2025-07-03)

Bug Fixes

  • fix indent for SwitchCase (bc4ac35)

2.4.3 (2025-07-01)

Bug Fixes

2.4.2 (2025-06-23)

Bug Fixes

2.4.1 (2025-06-20)

Bug Fixes

Build Related

2.4.0 (2025-06-17)

Features

Bug Fixes

2.3.0 (2025-06-07)

Features

  • remove eslint-plugin-pinia (43a3b35)
  • remove eslint-plugin-import-x eco (45e8575)

2.2.1 (2025-06-06)

Bug Fixes

  • treat oxc-resolver as peerDependency (1a97b5b)

2.2.0 (2025-06-06)

Features

Bug Fixes

  • don't install eslint-import-resolver-node (d6447b3)
  • don't install unrs-resolver (cc583a0)
  • replace eslint-import-resolver-oxc with eslint-import-resolver-typescript (6a3897f)

2.1.2 (2025-02-19)

Chores

  • replace nano-staged with lint-staged (03e9cb6)
  • replace run command with update functionality (46f1353)

2.1.1 (2025-02-18)

Bug Fixes

  • try fix command to update vscode settings (4e027b4)

Performance

  • migrate from yargs to cac (9f7a405)

2.1.0 (2025-02-15)

Features

  • add eslint-plugin-de-morgan (b0d1103)
  • add cli to update vscode settings (23e7a4d)