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

2.0.10 • Public • Published

@karasushin/eslint-config

npm package

English / 简体中文

Usage

Install

pnpm add -D eslint @karasushin/eslint-config

Config

Create eslint.config.js in your project

import { karasu } from '@karasushin/eslint'

export default karasu()

You can also do some configuration

export default karasu({
  typescript: true, // default true
  react: true, // default false
  markdown: true, // default false
})

Add lint script

add the following content into package.json

{
  "scripts": {
    "lint": "eslint .",
    "lint:fix": "eslint . --fix"
  }
}

Config VSCode

edit the settings.json

{
  "editor.codeActionsOnSave": {
    "source.fixAll.eslint": true,
    "source.organizeImports": "never"
  },
  "eslint.experimental.useFlatConfig": true,
  "eslint.format.enable": true,
  "eslint.validate": [
    "html",
    "javascript",
    "javascriptreact",
    "json",
    "jsonc"
    "markdown",
    "typescript",
    "typescriptreact",
  ]
}

Dependencies (17)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @karasushin/eslint-config

    Weekly Downloads

    8

    Version

    2.0.10

    License

    MIT

    Unpacked Size

    80.3 kB

    Total Files

    19

    Last publish

    Collaborators

    • karasu.shin