Registry / testing / eslint-plugin-meteor

eslint-plugin-meteor

JSON →
library7.3.0jsnpmunverified

ESLint plugin providing Meteor-specific linting rules for best practices, security, and Blaze templates. Version 7.3.0 (February 2021) is the latest stable release. It enforces rules like audit-argument-checks, no-session, and template-names. Works with ESLint >=3.7.0 and Node >=10. Slower release cadence (last release 2021). Differentiator: the only dedicated Meteor ESLint plugin with a recommended configuration.

npm install eslint-plugin-meteor
INSTALL
IMPORT
SIG · ESLINT-PLUGIN-METE
E
eslint-plugin-meteor
testingjavascriptv7.3.0
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

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

plugin
// In .eslintrc.js: plugins: ['meteor']
// Wrong: requiring the plugin in code. Use ESLint config files instead.
Not imported in code; configured in ESLint config files.
recommended config
extends: ['plugin:meteor/recommended']
extends: ['meteor']
The correct way to use the recommended rules is via the plugin: prefix.
rules
rules: { 'meteor/audit-argument-checks': 'error' }
rules: { 'audit-argument-checks': 'error' }
Rules must be prefixed with 'meteor/' when configured in ESLint.

Installation and configuration of eslint-plugin-meteor with recommended rules and ES6/JSX support.

// Install: npm install --save-dev eslint eslint-plugin-meteor // Create .eslintrc.json: { "plugins": ["meteor"], "extends": ["plugin:meteor/recommended"], "parserOptions": { "ecmaVersion": 6, "sourceType": "module", "ecmaFeatures": { "jsx": true } } }
Debug
Known issues
breakingDropped support for Node 8 in v7.0.0
fix
Upgrade to Node >=10
affects: >=7.0.0
breakingDropped support for Node 6 in v6.0.0
fix
Upgrade to Node >=8 (or >=10 for v7)
affects: >=6.0.0
breakingRemoved eslint peer dep upper bound in v7.2.1
fix
No action needed; the upper bound was removed to allow newer ESLint versions
affects: >=7.2.1 <7.3.0
deprecatedThe rule 'no-template-lifecycle-assignments' was introduced to replace deprecated Meteor lifecycle callback assignments.
fix
Use modern Meteor lifecycle callbacks (onCreated, onRendered, onDestroyed) instead of Template.name.created etc.
affects: >=5.0.0
gotchaThe plugin does not warn about client-only features used on the server.
fix
Be aware that the linter does not analyze runtime environment; manually review cross-environment code.
affects: all
Errors
Common errors & fixes
ESLint couldn't find the plugin "eslint-plugin-meteor".
Plugin not installed or not in node_modules.
fix
Run 'npm install --save-dev eslint-plugin-meteor'
Configuration for rule "meteor/audit-argument-checks" is invalid.
Rule configuration options are incorrect.
fix
Check documentation for correct rule options. Use 'error' or 'warn' as severity.
Cannot read property 'type' of undefined (audit-argument-checks rule).
Bug in v7.2.0 with certain code patterns.
fix
Upgrade to v7.2.2 or later.
Upgrade
Version history
7.3.0latest on npm
Audit
Dependencies
eslintrequiredpeer dependency; required to run the plugin
Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
eslint-plugin-meteor — npm install eslint-plugin-meteor · libregistry