Skip to content

Latest commit

 

History

History
69 lines (51 loc) · 2.29 KB

README.md

File metadata and controls

69 lines (51 loc) · 2.29 KB

@devmy/eslint-plugin

This library provides ESLint configurations with the recommended rules from the Devmy team for TypeScript and popular frameworks like React, Angular. It helps you enforce consistent code style, avoid common pitfalls, and improve the overall quality and maintainability of your projects.

Installation

npm:

npm install --save-dev @devmy/eslint-plugin

pnpm:

pnpm add -D @devmy/eslint-plugin

yarn

yarn add --dev @devmy/eslint-plugin

bun

bun add -d @devmy/eslint-plugin

Note: If you installed ESLint globally then you must also install @devmy/eslint-plugin globally.

Usage

If you're using flat configuration:

With flat configuration, just import the plugin and away you go:

// .eslintrc.js
const pluginDevmy = require('@devmy/eslint-plugin');

module.exports = {
  extends: [
    pluginDevmy.configs.recommended
  ]
};

With legacy configuration, add @devmy/eslint-plugin to the plugins section of your .eslintrc configuration file:

{
  "extends": ["plugin:@devmy/eslint-plugin/recommended"]
}

Configurations

Configuration full name Description
recommended @devmy/eslint-plugin/recommended The base configuration for TypeScript projects.
angular-recommended @devmy/eslint-plugin/angular-recommended Extends the "recommended" configuration with rules specific to Angular projects.
angular-template-recommended @devmy/eslint-plugin/angular-template-recommended Provides recommended rules for Angular templates.
cypress-recommended @devmy/eslint-plugin/cypress-recommended Provides recommended rules for Cypress projects.
jest-recommended @devmy/eslint-plugin/jest-recommended Provides recommended rules for jest tests.

Contributing

We welcome contributions to this project! If you find any issues or have suggestions for new rules or configurations, please open an issue or submit a pull request.