@10clouds/eslint-config
Baseline ESLint config for 10Clouds projects.
Quick start
Install the package:
npm install --save-dev @10clouds/eslint-config
yarn add --save-dev @10clouds/eslint-config
pnpm add --save-dev @10clouds/eslint-config
Add the following to your .eslintrc
:
{
"extends": ["@10clouds/eslint-config"],
"parserOptions": {
"project": "./tsconfig.json"
}
}
Or, if you are using React:
{
"extends": ["@10clouds/eslint-config/react"],
"parserOptions": {
"project": "./tsconfig.json"
}
}
Extending the config
The baseline configuration can be found here:
If you want to extend the config, here are some common use cases:
Automatic import sorting
{
"plugins": ["simple-import-sort", "unused-imports"],
"rules": {
"simple-import-sort/imports": "warn",
"simple-import-sort/exports": "warn",
"unused-imports/no-unused-imports": "error"
}
}
Reporting issues
If you have found a bug or if you have a feature request, please use GitHub issues, or #eslint-config
support channel on Slack.
Do not post any proprietary code snippets on GitHub issues.
Roadmap
- [x] Add rules for Base/React
- [ ] Add rules for Jest/Vitest
- [ ] Add more examples for extending the config
- [ ] Automate release notes for Slack
- [ ] Lint commit messages (Danger.js)
- [x] List all rules