eslint-config-detemiro
v2.1.0
Published
The best ESLint config for your project.
Maintainers
Readme
Generic Eslint rules
The common eslint rules useful for any projects.
Description
This project is a collection of rule and configs for any types of projects.
It includes:
eslintconfiguration.prettierrules.- project style guide:
STYLEGUIDE.md.
And provides two ready-to-use configs:
base- common rules for most projects.strict- additional architectural and naming constraints.
Usage
- Install the package:
yarn add eslint-config-detemiro -D- Add utility dependencies to your project (you can compare them with 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- Connect the
prettierconfiguration to your project in.prettierrc.js:
module.exports = require('eslint-config-detemiro/prettier')or in json:
{
"extends": "eslint-config-detemiro/prettier"
}- Configure your
eslint.config.mjsby example:
import baseConfig from 'eslint-config-detemiro'
// Optional strict rules:
// import strictConfig from 'eslint-config-detemiro/configs/strict'
export default [
...baseConfig,
// Your customizations...
]- You are incredible! Now you can use the
eslintandprettierin your project.
Contributing
I welcome contributions! Follow these steps to contribute:
- Setup environment
- Fork the repository.
- Clone your forked repository.
- Install dependencies by running
yarn install.
- Making Changes
- Create a new branch for your changes.
- Make your changes and commit them.
- Push your changes to your forked repository.
- Submitting a Pull Request
- Go to the original repository on GitHub and click the "New pull request" button.
- Select your branch and submit the pull request.
- Wait for the review and address any feedback.
You are the star of this project! 🌟
