Skip to content

vuetifyjs/eslint-config-vuetify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

61 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

eslint-config-vuetify

npm version npm downloads License: MIT

โœจ 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:

๐Ÿ“‘ License

MIT

Copyright (c) 2016-present Vuetify LLC


This project exists and thrives thanks to all the wonderful people who contribute ๐Ÿ˜