@explodingcamera/eslint-config

26.2.1 • Public • Published

ESLint shareable config

Disclaimer

For new projects, I recommend using Rome instead. It's a lot faster than ESLint/Prettier and works great out of the box. I will still maintain this repo for my own legacy projects.

Install

$ npm install -D -E eslint @explodingcamera/eslint-config

(for typescript support, you need to have typescript installed too)

Usage

Install the eslint plugin for your editor and enable Fix-On-Save, then, add the ESLint config in your package.json:

{
	"name": "my-awesome-project",
	"eslintConfig": {
		"extends": "@explodingcamera/eslint-config"
	}
}

Or in .eslintrc.json:

{
	"extends": "@explodingcamera/eslint-config"
}

Now you can also use it via the eslint cli:

$ npx eslint file.js

Note for vs-code users:

Sometimes the vscode plugin can act up, I recommend updating your config:

    "editor.formatOnSave": false,
    "editor.codeActionsOnSave": {
        "source.fixAll.eslint": true
		},

Readme

Keywords

none

Package Sidebar

Install

npm i @explodingcamera/eslint-config

Weekly Downloads

1

Version

26.2.1

License

MIT

Unpacked Size

77.7 kB

Total Files

10

Last publish

Collaborators

  • explodingcamera