Package detail

@vida0905/eslint-config

9romise275MIT2.4.2

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.
  • Support pinia.
  • Disable jsx by default.

Setup

npm i -D @vida/eslint-config

in eslint.config.js

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

export default vida()

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"
  ]
}

changelog

Changelog

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)