Registry / testing / eslint-plugin-riot

eslint-plugin-riot

JSON →
library0.1.8jsnpmunverified

ESLint plugin that extracts and lints JavaScript from Riot.js tag files (.html and .tag). Version 0.1.8, last released in 2015, with no updates since. It supports ES6, Babel, or JavaScript script blocks within Riot tags but does not handle Riot mini ES6 syntax. The plugin is deprecated in favor of modern alternatives like eslint-plugin-html or directly linting compiled JS.

npm install eslint-plugin-riot
INSTALL
IMPORT
SIG · ESLINT-PLUGIN-RIOT
E
eslint-plugin-riot
testingjavascriptv0.1.8
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

riot
✓ plugins: ['riot']
✗ require('eslint-plugin-riot') in config
Config key is 'plugins', not 'rules' or 'extends'. The plugin is activated by adding to plugins array.
rules
✓ {"plugins": ["riot"], "rules": {"no-console": "error"}}
✗ {"rules": {"riot/no-console": "error"}}
Rules are not namespaced by default; plugin only extracts scripts, no custom rules.
processor
✓ {"plugins": ["riot"], "settings": {"riot": {"extensions": [".html", ".tag"]}}}
✗ no processor configuration
Plugin uses a processor to extract JS from HTML-like files; no explicit processor key needed in config.

Shows installation, config with plugins and settings, and a sample .tag file with ES6 script.

// Install npm install --save-dev eslint-plugin-riot // .eslintrc.json { "plugins": ["riot"], "settings": { "riot": { "extensions": [".html", ".tag"] } } } // Run ESLint on a .tag file // my-component.tag <my-component> <p>{message}</p> <script type="es6"> this.message = 'Hello, Riot!' </script> </my-component>
Debug
Known issues
deprecatedeslint-plugin-riot is unmaintained since 2015. Use eslint-plugin-html or modern alternatives.
fix
Switch to eslint-plugin-html or directly lint compiled JavaScript files.
affects: >=0.0.0
gotchaOnly processes <script type="es6"> or <script type="babel"> — does not support default <script> or <script type="text/javascript">.
fix
Use explicit type attribute: <script type="es6"> ... </script>.
affects: >=0.0.0
gotchaPlugin does not handle Riot mini ES6 syntax (e.g., inline expressions like {opts.title}), only full script blocks.
fix
Lint only the script blocks; inline expressions remain unchecked.
affects: >=0.0.0
breakingESLint 2.x+ no longer supports processors in the same way; this plugin may not work with ESLint 3+.
fix
Use ESLint 1.x or consider alternative linting approach.
affects: >=0.1.0
Errors
Common errors & fixes
Error: Failed to load plugin 'riot'
Plugin not installed or ESLint version incompatible.
fix
Run npm install --save-dev eslint-plugin-riot and ensure ESLint 1.x is used.
No files matching the pattern were found
ESLint not configured to process .html or .tag files.
fix
Add '--ext .html,.tag' to ESLint CLI or configure glob patterns in .eslintrc.
Parsing error: Unexpected token <
ESLint is trying to parse the HTML/tag file directly without the processor.
fix
Ensure 'riot' is listed in plugins array and the file extension is supported.
Upgrade
Version history
0.1.8latest on npm
Audit
Dependencies
eslintrequiredpeer dependency required for plugin to function
Agent activity
4 hits · last 30 days
node
4
Resources
eslint-plugin-riot — npm install eslint-plugin-riot · libregistry