@mist3rbru/eslint-config
v0.5.0
Published
Mist3rBru extended ESLint rules
Readme
@mist3rbru/eslint-config
Is an ESLint config 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 @mist3rbru/eslint-config, use the following command:
pnpm add -D eslint @mist3rbru/eslint-configUsage
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 config from '@mist3rbru/eslint-config'
export default config('node', 'jest', {
// Overwrite rules
rules: {},
})Replace "node" and "jest" with the appropriate preset name for your project.
Available Presets
node: Node.js environmentreact: React environmentnext: Next environmentjest: Jest environmentjest-dom: Jest-DOM environmentvitest: Vitest environment
Included Configurations and Plugins
@mist3rbru/eslint-config includes opinionated configuration for popular ESLint plugins to enhance your linting experience. The following configurations and plugins are included:
eslint-config-prettiereslint-plugin-promiseeslint-plugin-unicorneslint-plugin-importeslint-plugin-securityeslint-plugin-no-secretseslint-plugin-deprecationeslint-plugin-reacteslint-plugin-react-hookseslint-plugin-jsx-a11y@next/eslint-plugin-nexteslint-plugin-jesteslint-plugin-jest-domeslint-plugin-vitest
License
This project is licensed under the MIT License.
