3.0.0 • Published 2 years ago

@lights-on-io/eslint-plugin v3.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

ESlint Plugin

This plugin includes strict configs for javascript and typescript, which are used at LightsON. It is based on eslint-config-airbnb and eslint-config-airbnb-typescript.

Install

npm install --save-dev @lights-on-io/eslint-plugin

Install peer dependencies listed when executing the following command:

npm info @lights-on-io/eslint-plugin peerDependencies

Add @lights-on-io to the plugins in your .eslintrc and add the configs:

{
	"plugins": ["@lights-on-io"],
	"overrides": [
		{
			"files": ["*.ts", "*.tsx"],
			"extends": ["plugin:@lights-on-io/typescript-strict"],
			"parserOptions": {
				"project": "./tsconfig.*?.json"
			}
		},
		{
			"files": ["*.js", "*.jsx"],
			"extends": ["plugin:@lights-on-io/javascript-strict"]
		}
	]
}