@sunshj/eslint-config
TypeScript icon, indicating that this package has built-in type declarations

2.1.2 • Public • Published

@sunshj/eslint-config

Based on @sxzz/eslint-config

Flat ESLint config for JavaScript, TypeScript, Vue 2, Vue 3, React, Prettier.

Features

  • Format with Prettier.
  • Designed to work with TypeScript, React, Vue 2 and 3 out-of-box.
  • Support JSON(5), YAML, Markdown...
  • Sort imports, package.json, tsconfig.json...
  • ESLint Flat config, compose easily!
  • Reasonable defaults, best practices, only one-line of config

Install

npm i -D @sunshj/eslint-config

Require Node.js >= 18.18. ESLint v9.5.0+

Usage

// eslint.config.js
import { all } from '@sunshj/eslint-config'

export default all

Custom Config

import { defineConfig } from '@sunshj/eslint-config'
export default defineConfig(
  [
    /* your custom config */
  ],
  { vue: true, prettier: true, markdown: true, unocss: false, react: true }
)

VSCode

{
  "eslint.experimental.useFlatConfig": true,
  "eslint.validate": [
    "javascript",
    "javascriptreact",
    "typescript",
    "typescriptreact",
    "vue",
    "html",
    "markdown",
    "json",
    "jsonc",
    "yaml"
  ]
}

Dependents (0)

Package Sidebar

Install

npm i @sunshj/eslint-config

Weekly Downloads

3

Version

2.1.2

License

MIT

Unpacked Size

588 kB

Total Files

4

Last publish

Collaborators

  • sunshj