@pinos/eslint-config

1.2.2 • Public • Published

eslint-config

🚀 Verify the following format files:

  • js
  • json
  • markdown
  • tailwindcss
  • vue
  • react
  • ts
  • yaml
  • wxml

eslint >=8.18.0

Install

pnpm add eslint @pinos/eslint-config -D

Use

  • create .eslintrc.cjs file in the project root directory
  • config .eslintrc.cjs file
module.exports = {
  extends: ['@pinos']
}

With lint-staged

add config in the package.json;

{
  "lint-staged": {
    "src/**/*.{js,cjs,mjs,jsx,vue,ts,tsx,cts,mts,json,yaml}": [
      "eslint --fix --max-warnings 0"
    ],
  }
}

Readme

Keywords

none

Package Sidebar

Install

npm i @pinos/eslint-config

Weekly Downloads

1

Version

1.2.2

License

none

Unpacked Size

32.3 kB

Total Files

14

Last publish

Collaborators

  • ericwan