GitHub - vuetifyjs/eslint-config-vuetify: 💼 Opinionated eslint config for the Vuetify ecosystem (original) (raw)
eslint-config-vuetify
✨ An opinionated eslint config for Vuetify, crafted to keep your code clean and consistent!
💿 Install
npm
npm install -D eslint-config-vuetify
yarn
yarn add -D eslint-config-vuetify
pnpm
pnpm install -D eslint-config-vuetify
bun
bun install -D eslint-config-vuetify
deno
deno install --dev eslint-config-vuetify
🚀 Usage
Update your eslint.config.js
flat config to extend vuetify:
import vuetify from 'eslint-config-vuetify';
export default vuetify()
Most features are automatically detected, but you can explicitly turn them on/off or customize them
import vuetify from 'eslint-config-vuetify';
export default vuetify({ vue: true, ts: { preset: 'all' } })
You can provide additional ESLint configurations after the options object, or directly specify them for simpler use cases where the default settings work fine:
import vuetify from 'eslint-config-vuetify'
export default vuetify( { pnpm: false, }, { plugins: { sonarjs, }, rules: { ...sonarjs.configs.recommended.rules, }, } )
import vuetify from 'eslint-config-vuetify'
export default vuetify({ rules: { 'no-console': 'error', }, })
💪 Supporting Vuetify
Vuetify is an open source MIT project that has been made possible due to the generous contributions by community backers. If you are interested in supporting this project, please consider:
- Becoming a sponsor on Github (supports John)
- Becoming a backer on OpenCollective (supports the Dev team)
- Become a subscriber on Tidelift
- Make a one-time payment with Paypal
- Book time with John
📑 License
Copyright (c) 2016-present Vuetify LLC
This project exists and thrives thanks to all the wonderful people who contribute 😍