@10clouds/eslint-config

1.0.1 • Public • Published

@10clouds/eslint-config

License MIT NPM Version

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

Readme

Keywords

none

Package Sidebar

Install

npm i @10clouds/eslint-config

Weekly Downloads

7

Version

1.0.1

License

MIT

Unpacked Size

4.48 kB

Total Files

5

Last publish

Collaborators

  • devopsat10clouds
  • mmachowski
  • aleksander.krasnicki
  • kubajastrz