npm.io
0.5.0 • Published 2 years ago

@mist3rbru/eslint-config

Licence
MIT
Version
0.5.0
Deps
16
Size
50 kB
Vulns
0
Weekly
0
Stars
1

eslint-plugin-mist3rbru

Is an ESLint plugin that provides comprehensive configurations for various environments, streamlining the linting process for Node.js, React, Jest, Jest-DOM, Vitest, and more. Each environment has its own preset configuration that can be easily applied in your project.

Installation

To install eslint-plugin-mist3rbru, use the following command:

pnpm add -D eslint eslint-plugin-mist3rbru

Usage

To use the plugin, create one of these config files in your project and extend the desired environment configuration. For example, to use Node.js with Jest configuration:

// Recommended
// eslint.config.mjs
import plugin from 'eslint-plugin-mist3rbru'

export default [
  plugin.configs.node,
  plugin.configs.jest,
  {
    rules: {
      'security/detect-object-injection': 'off',
    },
  },
]

Replace "node" and "jest" with the appropriate preset name for your project.

Available Presets
  • node: Node.js environment
  • react: React environment
  • next: Next environment
  • jest: Jest environment
  • jest-dom: Jest-DOM environment
  • vitest: Vitest environment

Included Configurations and Plugins

eslint-plugin-mist3rbru includes opinionated configuration for popular ESLint plugins to enhance your linting experience. The following configurations and plugins are included:

License

This project is licensed under the MIT License.