eslint-plugin-fest
raw JSON → 0.2.4 verified Fri May 01 auth: no javascript deprecated
ESLint plugin for linting inline scripts and params in Fest XML template files. Current version 0.2.4 (last updated 2017). Low release cadence, no recent updates. Focuses on enforcing coding standards within Fest templates, similar to how eslint-plugin-html works for HTML files. Differentiator: dedicated to Fest framework.
Common errors
error Error: Failed to load plugin 'eslint-plugin-fest' declared in '.eslintrc.json': Cannot find module 'eslint-plugin-fest' ↓
cause Plugin not installed correctly.
fix
Run npm install --save-dev eslint-plugin-fest
Warnings
gotcha Plugin requires ESLint to lint .xml files explicitly; without --ext .xml, Fest files are ignored. ↓
fix Use eslint --ext .xml,.js src or configure eslint.extensions in your editor.
deprecated The package has not been updated since 2017 and is likely unmaintained. ↓
fix Consider alternatives like eslint-plugin-html for generic template linting.
Install
npm install eslint-plugin-fest yarn add eslint-plugin-fest pnpm add eslint-plugin-fest Imports
- plugin wrong
plugins: ['fest']correctplugins: ['eslint-plugin-fest']
Quickstart
// .eslintrc.json
{
"plugins": ["eslint-plugin-fest"],
"rules": {
"fest/rule-name": "error"
}
}
// Lint command: eslint --ext .xml,.js src