1.5.3 • Published 6 months ago

@magicdawn/eslint-config v1.5.3

Weekly downloads
14
License
MIT
Repository
github
Last release
6 months ago

@magicdawn/eslint-config

eslint-config for self use

npm version npm downloads npm license

Install

$ pnpm add -D @magicdawn/eslint-config

Usage

extend from @sxzz/eslint-config

import { fromSxzz } from '@magicdawn/eslint-config'
export default fromSxzz()

from ground to up

import { defineConfig } from 'eslint/config'
import { groundToUpConfigs } from '@magicdawn/eslint-config'

export default defineConfig([
  ...groundToUpConfigs,
  // more configs
])

Extra Setup

.vscode/settings.json

{
  "editor.codeActionsOnSave": {
    "source.fixAll.eslint": "explicit"
  }
}

package.json

{
  "lint-staged": {
    "*.{js,cjs,mjs,ts,cts,mts,jsx,tsx,json,md,yaml,yml}": ["eslint --fix", "prettier --write"],
    "!*.{js,cjs,mjs,ts,cts,mts,jsx,tsx,json,md,yaml,yml}": ["prettier --write --ignore-unknown"], // optional, I don't know is this really necessary?

    // or more aggressive
    "*": ["eslint --fix --no-warn-ignored", "prettier --write --ignore-unknown"]
  }
}

.prettierignore

pnpm-lock.yaml

License

the MIT License http://magicdawn.mit-license.org

1.2.0

6 months ago

1.0.2

6 months ago

1.1.0

6 months ago

1.0.1

6 months ago

1.0.0

6 months ago

1.5.3

6 months ago

1.5.2

6 months ago

1.5.1

6 months ago

1.5.0

6 months ago

1.4.0

6 months ago

1.3.0

6 months ago

1.0.3

6 months ago

0.1.0

3 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago