@vedmant/eslint-plugin

ESLint rules for Vue and other conventions used by vedmant.
295
Install
npm install @vedmant/eslint-plugin
Latest Version:1.1.0
License:MIT
Last Updated:May 4, 2026
Links: npm
Maintainer: vedmant

@vedmant/eslint-plugin

ESLint rules used in vedmant projects. Currently includes layout rules for Vue single-file components.

Install

yarn add -D @vedmant/eslint-plugin

Peer dependencies (install these if not already present):

  • eslint ^8.57.0, ^9.0.0, or ^10.0.0
  • vue-eslint-parser >=9.0.0

Usage (ESLint flat config)

// eslint.config.js
const vueEslintParser = require('vue-eslint-parser')
const vedmantEslintPlugin = require('@vedmant/eslint-plugin')

module.exports = [
  {
    files: ['**/*.vue'],
    languageOptions: {
      parser: vueEslintParser,
      parserOptions: { ecmaVersion: 'latest', sourceType: 'module' },
    },
    plugins: {
      '@vedmant': vedmantEslintPlugin,
    },
    // Do NOT add a processor here — vue-eslint-parser must be the active parser
    // for template visitors (defineTemplateBodyVisitor) to work.
    rules: {
      '@vedmant/vue-start-tag-single-line': 'error',
    },
  },
]

Rule options

@vedmant/vue-start-tag-single-line — prefer a single-line opening tag when the attribute count and compact line length are within limits.

  • maxAttributes (default 5) — only suggest one line when there are at most this many attributes.
  • maxLineLength (default 300) — only report when the collapsed tag fits within this many characters.

Example:

'@vedmant/vue-start-tag-single-line': ['error', { maxAttributes: 5, maxLineLength: 120 }]

Development

yarn install
yarn test

License

MIT

Related Packages

eslint-plugin-vue-storefront

ESLint rules for Vue Storefront

39,292
@scayle/eslint-plugin-vue-composable

Rules to avoid unpleasant composable problems

207,394 4
@component-hook/eslint-plugin

ESLint config for component hook

8,834 4
eslint-plugin-test-id

This checks is data-test-id prop is present, on some tags which are useful for e...

10,384 17
eslint-plugin-vueunused

a eslint plugin for detecting unused code in vue single file component

939

Version History

Version Released License
1.1.0 MIT
1.0.0 MIT