eslint-config-wzx-nuxt

0.5.0 • Public • Published

eslint-config-wzx-nuxt

NPM version node Code Style GitHub Workflow Status (branch) release codecov NPM downloads

The custom nuxt eslint rules based on eslint-config-wzx-vue. (Follow airbnb-base and Support Typescript Eslint)

💿 Installation

npm install --save-dev eslint-config-wzx-nuxt

💡 Typescript eslint needs to install typescript, @typescript-eslint/parser, @typescript-eslint/eslint-plugin.

npm install --save-dev typescript @typescript-eslint/parser @typescript-eslint/eslint-plugin

🚀 Usage

Starting from v0.4.x, we will use the new flat eslint config. Add eslint-config-wzx-nuxt in your eslint.config.js.

import wzxNuxt from 'eslint-config-wzx-nuxt';

export default [
  ...wzxNuxt,
]

💡 Typescript eslint needs tsconfig.json in your project root directory. And the config will select the rules of nuxt2 or nuxt3 according to the nuxt version installed in your project.

🔒 License

MIT.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.5.0
    1
    • latest

Version History

Package Sidebar

Install

npm i eslint-config-wzx-nuxt

Weekly Downloads

4

Version

0.5.0

License

MIT

Unpacked Size

17.9 kB

Total Files

8

Last publish

Collaborators

  • vicsolwang