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

Readme

Keywords

none

Package Sidebar

Install

npm i @karasushin/eslint-config

Weekly Downloads

58

Version

2.0.10

License

MIT

Unpacked Size

80.3 kB

Total Files

19

Last publish

Collaborators

  • karasu.shin