npm.io
0.2.15 • Published 4d ago

@plugjs/eslint-plugin-vue

Licence
Apache-2.0
Version
0.2.15
Deps
4
Size
16 kB
Vulns
0
Weekly
288

PlugJS ESLint (v9) Shared Configuration for Vue

This package exports simple configurations for linting our Vue projects.

Just add in your eslint.config.mjs something similar to:

import configurations from '@plugjs/eslint-plugin-vue'

export default [
  ...configurations,

  // ===== DEFINE THE LOCATION OF OUR TSCONFIG.JSON FILES ======================
  {
    name: 'local/options',

    languageOptions: {
      parserOptions: {
        createDefaultProgram: true,
        project: [
          './tsconfig.json',
          './tsconfig.app.json',
          './tsconfig.node.json',
        ],
      },
    },
  },

  // ===== PROJECT LOCAL RULES =================================================
  // Add any extra rule not tied to a specific "files" pattern here, e.g.:
  // {
  //   name: 'local/rules',
  //
  //   rules: {
  //     'camelcase': 'off',
  //   },
  // },

  // ===== IGNORED FILES =======================================================
  // REMEMBER! Ignores *must* be in its own configuration, they can not coexist
  // with "rules", "languageOptions", "files", ... or anything else, otherwise
  // ESLint will blaantly ignore the ignore files!
  {
    name: 'local/ignores',

    ignores: [
      'dist/',
      'public/',
    ],
  },
]

Keywords