eslint-config-eb1

0.1.0 • Public • Published

ESLint configuration

Installation

npm i -sD eslint eslint-config-eb1

Usage

Create a .eslintrc.js file in your project root.

Import the base configuration:

module.exports = {
  extends: ['eslint-config-eb1'],
  rules: {
    // override rules here, ie: 'no-unused-vars': 0
  }
}

Add lint script to package.json:

{
    "scripts": {
        "lint": "eslint src"
    }
}

Lint your source with npm run lint and automatically fix issues with npm run lint -- --fix

VS Code integration

ESLint VS Code extension can help teams using VS Code by highlighting issues in the editor and autofixing on save (add "eslint.autoFixOnSave": true to your VS Code settings). You can also suggest installing the extension to anyone checking out the repository. Just create the following file: .vscode/extensions.json:

{
	// List of extensions which should be recommended for users of this workspace.
	"recommendations": [
		"dbaeumer.vscode-eslint"
	]
}

Readme

Keywords

none

Package Sidebar

Install

npm i eslint-config-eb1

Weekly Downloads

6

Version

0.1.0

License

MIT

Unpacked Size

5.37 kB

Total Files

6

Last publish

Collaborators

  • erichbehrens