@thecomrado/eslint-config-comrado
v1.0.1
Published
The general ESLint config for Comrado projects.
Readme
Comrado Code Standards
Description
This project is a collection of rules, configs, and reusable components for the Comrado team. Namely:
eslintconfiguration.prettierrules.
And provides ready-made configs for your project:
base- a unified configuration for all projects. Helps to follow a common style.strict- strict rules to improve code quality.
Usage
- Add the main package to your project:
yarn add @thecomrado/eslint-config-comrado -D- Add peer dependencies to your project (you can check them against the
peerDependenciesof this repository):
yarn add eslint prettier @eslint/js eslint eslint-config-prettier globals eslint-plugin-import eslint-plugin-prettier eslint-plugin-simple-import-sort typescript-eslint eslint-plugin-project-structure -D- Add the
prettierconfiguration of the project to your.prettierrc.js:
module.exports = require('@thecomrado/eslint-config-comrado/prettier')or using JSON format:
{
"extends": "@thecomrado/eslint-config-comrado/prettier"
}- Configure
eslint.config.mjs:
import baseConfig from '@thecomrado/eslint-config-comrado'
// You can use strict configs as well
// import strictConfig from '@thecomrado/eslint-config-comrado/configs/strict'
export default [
...baseConfig,
// Your additional rules here
]