1.4.2 • Published 5 months ago

@ilyasemenov/eslint-config v1.4.2

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

@ilyasemenov/eslint-config

This is a reusable ESLint config that I use in the projects that I develop or supervise.

Extends @antfu/eslint-config.

Could be used together with Stylelint config, see IlyaSemenov/lint-config.

Setup

Install:

pnpm add -D eslint @ilyasemenov/eslint-config

Create eslint.config.js:

// @ts-check

import { defineConfig } from "@ilyasemenov/eslint-config"

export default defineConfig()

Available options:

export default defineConfig({
  // Lint Vue. Unlike antfu, must be enabled explicitly.
  vue: true,

  // Lint pug in Vue templates.
  vuePug: true,

  // ...and all @antfu/eslint-config options.
})

Command line script

Add to package.json:

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

and run:

pnpm lint

Setup lint-staged

Create lint-staged.config.js:

export default {
  "*.{cjs,js,ts,json,md,yaml,toml}": "eslint --fix"
}
1.4.2

5 months ago

1.4.1

6 months ago

1.4.0

6 months ago

1.3.0

8 months ago

1.2.0

10 months ago

1.1.0

11 months ago

1.0.3

11 months ago

1.0.2

11 months ago

1.0.1

11 months ago

1.0.0

11 months ago