eslint-plugin-mist3rbru v0.5.3
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 a .eslintrc.json file in your project and extend the desired environment configuration. For example, to use Node.js with Jest configuration:
{
"root": true,
"parserOptions": {
"project": "./tsconfig.json"
},
"extends": ["plugin:mist3rbru/node"],
"rules": {},
"overrides": [
{
"files": ["src/**/*.spec.ts"],
"extends": ["plugin:mist3rbru/jest"],
"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
eslint-plugin-mist3rbru
includes opinionated configuration for popular ESLint plugins to enhance your linting experience. The following configurations and plugins are included:
eslint-plugin-promise
eslint-plugin-unicorn
eslint-plugin-import
eslint-plugin-security
eslint-plugin-no-secrets
eslint-plugin-deprecation
eslint-plugin-react
eslint-plugin-react-hooks
eslint-plugin-jsx-a11y
@next/eslint-plugin-next
eslint-plugin-jest
eslint-plugin-jest-dom
eslint-plugin-vitest
License
This project is licensed under the MIT License.
9 hours ago
12 days ago
1 month ago
1 month ago
2 months ago
2 months ago
3 months ago
2 months ago
2 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
4 months ago
4 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago