@wezom/eslint-config

12.0.0 • Public • Published

@wezom/eslint-config

ESLint shareable config.

Rules

See full list of extends with code examples

Usage

We strongly recommend using this config with Prettier together.
See description.

Install

npm i -D eslint babel-eslint @wezom/eslint-config eslint-config-prettier

Setup linter
.eslintrc.json (parser babel-eslint is optional, you can use whatever you want)

{
	"extends": ["@wezom/eslint-config", "prettier"],
	"parser": "babel-eslint"
}

Add npm scripts
package.json

{
	"scripts": {
		"test": "npm run prettier && npm run eslint",
		"eslint": "eslint src/**/*.js",
		"eslint:autofix": "npm run eslint -- --fix",
		"prettier": "prettier src/ --check",
		"prettier:autofix": "npm run prettier -- --write"
	}
}

Test your files

npm run test

Package Sidebar

Install

npm i @wezom/eslint-config

Weekly Downloads

45

Version

12.0.0

License

BSD-3-Clause

Unpacked Size

9.33 kB

Total Files

4

Last publish

Collaborators

  • dutchenkooleg