2.1.2 • Published 5 months ago

@vida0905/eslint-config v2.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

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

5 months ago

2.1.1

5 months ago

2.1.0

5 months ago

2.0.1

5 months ago

2.0.0

6 months ago

1.2.1

6 months ago

1.2.0

7 months ago

1.1.1

8 months ago

1.1.0

10 months ago

1.0.0

10 months ago

0.5.0

11 months ago

0.4.3

11 months ago

0.3.0

1 year ago

0.4.1

12 months ago

0.4.0

12 months ago

0.4.2

12 months ago

0.2.0

1 year ago

0.1.7

1 year ago

0.1.6

1 year ago

0.1.5

1 year ago

0.1.4

1 year ago

0.1.3

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago