Registry / testing / eslint-plugin-matrix-org

eslint-plugin-matrix-org

JSON →
library3.0.0jsnpmunverified

ESLint plugin providing shareable configs and custom rules used by Matrix.org projects. Current stable version is 3.0.0. It codifies the code style from element-web and offers configs for JavaScript, TypeScript, Babel, React, and Jest. The plugin deliberately has zero runtime dependencies to avoid version conflicts; users must install peer dependencies manually. Key differentiator: it bundles multiple configs (Google, Prettier, unicorn, etc.) into a cohesive set aligned with Matrix.org's style guide.

npm install eslint-plugin-matrix-org
INSTALL
IMPORT
SIG · ESLINT-PLUGIN-MATR
E
eslint-plugin-matrix-org
testingjavascriptv3.0.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:matrix-org/javascript
extends: ['plugin:matrix-org/javascript']
extends: ['matrix-org/javascript']
Use 'plugin:' prefix to reference configs from a plugin.
plugin:matrix-org/typescript
extends: ['plugin:matrix-org/typescript']
extends: ['matrix-org/typescript']
Use 'plugin:' prefix. Requires @typescript-eslint packages installed.
plugin:matrix-org/jest
extends: ['plugin:matrix-org/jest']
extends: ['matrix-org/jest']
Use 'plugin:' prefix. Requires eslint-plugin-jest installed.

Basic ESLint configuration using the JavaScript config from eslint-plugin-matrix-org.

// .eslintrc.json { "plugins": ["matrix-org"], "extends": ["plugin:matrix-org/javascript"] }
Debug
Known issues
breakingVersion 3.0.0 drops support for ESLint 9+; requires eslint <9.
fix
Downgrade ESLint to version 8 or use an older version of the plugin.
affects: >=3.0.0
deprecatedVersion 2.x removed the matrix-org/a11y config; use matrix-org/react instead.
fix
Replace 'plugin:matrix-org/a11y' with 'plugin:matrix-org/react'.
affects: >=2.0.0
gotchaPlugin has zero bundled dependencies; missing peer deps cause runtime errors.
fix
Install all required peer dependencies listed in the README.
affects: *
gotchaConfigs are not automatically applied; you must specify them in extends.
fix
Add 'plugin:matrix-org/javascript' (or other) to your ESLint extends array.
affects: *
Errors
Common errors & fixes
Error: Cannot find module 'eslint-plugin-matrix-org'
Plugin not installed.
fix
Run 'npm install eslint-plugin-matrix-org --save-dev'.
Error: Failed to load config 'matrix-org/javascript' to extend from.
Missing 'plugin:' prefix in extends.
fix
Use 'plugin:matrix-org/javascript' instead.
Error: Cannot find module '@typescript-eslint/parser'
Missing peer dependency for TypeScript config.
fix
Install '@typescript-eslint/parser' as a dev dependency.
Rule 'matrix-org/require-copyright-header' does not exist
Config or rule name misspelled or not loaded.
fix
Ensure the plugin is in 'plugins' array and use correct rule name.
Upgrade
Version history
3.0.0latest on npm
Audit
Dependencies
eslintrequiredPeer dependency; required to run ESLint
typescriptoptionalPeer dependency for TypeScript configs
@typescript-eslint/parseroptionalPeer dependency for TypeScript configs
@typescript-eslint/eslint-pluginoptionalPeer dependency for TypeScript configs
reactoptionalPeer dependency for React configs
Agent activity
2 hits · last 30 days
node
2
Resources
eslint-plugin-matrix-org — npm install eslint-plugin-matrix-org · libregistry