@plugjs/eslint-plugin-vue
v0.1.13
Published
Shared ESLint configurations and extras for Vue
Maintainers
Readme
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/',
],
},
]