eslint-plugin-mysticatea

raw JSON →
4.2.4 verified Sat Apr 25 auth: no javascript deprecated

Additional ESLint rules and configurations from Toru Nagashima. Current stable version 4.2.4 supports ESLint >= 3.1.0 and Node.js ^4.0.0 or >=6.0.0. Provides rules for blocking scope, instanceof checks, array detection, rest/spread patterns, and more. Package was renamed to @mysticatea/eslint-plugin after v5.0.0, with breaking changes dropping Node.js 4.x and ESLint 3.x/4.x. Notable for its curated set of rules and integrations with TypeScript and Vue.

error Error: Cannot find module 'eslint-plugin-mysticatea'
cause Package renamed to @mysticatea/eslint-plugin after v5.0.0.
fix
Run npm install @mysticatea/eslint-plugin --save-dev and update references.
error ESLint configuration error: The plugin 'mysticatea' was not found.
cause Trying to use the plugin without proper installation or in flat config without specifying 'plugins'.
fix
Ensure the plugin is installed and added to plugins array in eslint.config.js.
error TypeError: plugin.rules is undefined
cause Attempting to import rules incorrectly (e.g., requiring 'eslint-plugin-mysticatea/rules').
fix
Import directly: import { rules } from 'eslint-plugin-mysticatea'.
breaking Package renamed to @mysticatea/eslint-plugin in v5.0.0, dropping support for Node.js 4.x and ESLint 3.x/4.x.
fix Update package to @mysticatea/eslint-plugin and adjust imports/configs accordingly.
breaking ESLint flat config (eslint.config.js) not supported until later versions; legacy .eslintrc required for v4.x.
fix Use legacy ESLint config format, or upgrade to v5+ with flat config support.
deprecated v4.x is deprecated and will no longer receive updates due to package rename.
fix Upgrade to @mysticatea/eslint-plugin (v5 or later).
gotcha Rule 'no-useless-rest-spread' may not fix arrays with holes automatically (see v4.2.3 changelog).
fix Manually review arrays with holes; the auto-fix changes behavior (e.g., [,,,1] vs [...[,,,],1]).
npm install eslint-plugin-mysticatea
yarn add eslint-plugin-mysticatea
pnpm add eslint-plugin-mysticatea

Shows how to install and use the plugin with a single rule in both flat and legacy ESLint configs.

// eslint.config.js (Flat config)
import plugin from 'eslint-plugin-mysticatea';

export default [
  {
    plugins: {
      mysticatea: plugin
    },
    rules: {
      'mysticatea/no-useless-rest-spread': 'error'
    }
  }
];

// or Legacy config (.eslintrc)
// {
//   "plugins": ["mysticatea"],
//   "rules": {
//     "mysticatea/no-useless-rest-spread": "error"
//   }
// }