Shared ESLint configurations and extras for Vue
npm install @plugjs/eslint-plugin-vuePlugJS 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:
``javascript
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/',
],
},
]
``
Legal Stuff
-----------