@vue-storefront/eslint-config-nuxt
v1.1.2
Published
[![@vue-storefront/eslint-config-nuxt](./cover.png)]()
Downloads
451
Readme
@vue-storefront/eslint-config-nuxt
Vue Storefront eslint standards for Nuxt 3
Information
Eslint configuration for:
- JavaScript
- Typescript
- Nuxt 3
- Vue 3
For this eslint config package, we enable the following community standards:
- AirBnb
- Prettier
This configuration provides eslint rules for the following:
- TypeScript
- Vue
- Nuxt
- JSON
- YAML / YML
- Markdown
Usage
Install
pnpm add -D eslint @vue-storefront/eslint-config-nuxt
Config .eslintrc
{
"extends": "@vue-storefront/eslint-config-nuxt"
}
Config VS Code auto fix
Update your .vscode/settings.json
and add the following
{
"prettier.enable": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
}
}
Contributing
You can contribute to this module online with CodeSandBox:
Or locally:
- Clone this repository
- Install dependencies using
yarn install
ornpm install
- Start development server using
yarn dev
ornpm run dev
License
Copyright (c) Vue Storefront