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-orgVerified import paths — ran on the pinned version, not inferred.
Basic ESLint configuration using the JavaScript config from eslint-plugin-matrix-org.
Downgrade ESLint to version 8 or use an older version of the plugin.
Replace 'plugin:matrix-org/a11y' with 'plugin:matrix-org/react'.
Install all required peer dependencies listed in the README.
Add 'plugin:matrix-org/javascript' (or other) to your ESLint extends array.
Run 'npm install eslint-plugin-matrix-org --save-dev'.
Use 'plugin:matrix-org/javascript' instead.
Install '@typescript-eslint/parser' as a dev dependency.
Ensure the plugin is in 'plugins' array and use correct rule name.