eslint-config-corporate
v2.1.1
Published
Corporate-ready ESLint rule sets and preconfigured settings.
Downloads
484
Maintainers
Readme
eslint-config-corporate
A highly-opinionated, corporate-ready ESLint rule configuration. Designed to reflect a robust, zero-configuration mindset by combining industry standards for TypeScript, React, and modular JavaScript without needing tedious project-by-project setup.
Purpose
Instead of maintaining separate Typescript, React, and Vanilla setups across your projects, eslint-config-corporate ships a single recommended preset. It's meant to enforce your specific coding standards (code formatting, robust React patterns, proper Typescript types, and import ordering) out of the box.
Installation
Install ESLint and this config in your project:
npm install eslint eslint-config-corporate --save-dev(Note: The plugin automatically bundles @typescript-eslint/eslint-plugin, eslint-plugin-react, eslint-plugin-react-hooks, eslint-plugin-import, eslint-plugin-prettier, and eslint-plugin-strict-eg-rulez under the hood).
Usage
Simply extend the configuration in your .eslintrc.js or .eslintrc.json:
module.exports = {
extends: [
"corporate"
]
};This single preset comes pre-equipped with:
eslint:recommended@typescript-eslint/recommended- React & React Hooks best practices
- Organized
import/orderrules (putting React imports first, grouping modules) - Integrated Prettier formatting
- Custom Strict EG Rules via
eslint-plugin-strict-eg-rulez
Customization
If you need to deviate from the corporate standard in a specific repository, you can simply override the rule in your .eslintrc file natively:
module.exports = {
extends: ["corporate"],
rules: {
// Re-enable console tracking for a specific file or repo
"no-console": "off"
}
};