1.0.1 • Published 5 months ago

@10clouds/eslint-config v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

@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:

{
	"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.