2.0.1 • Published 2 years ago

@token-io/eslint-config v2.0.1

Weekly downloads
44
License
UNLICENSED
Repository
github
Last release
2 years ago

eslint-config

ESLint config used by Token web projects

Installation

$ npm install @token-io/eslint-config eslint babel-eslint --dev

Install optional dependencies

React plugin

$ npm install eslint-plugin-react --dev

Import plugin

$ npm install eslint-plugin-import --dev

Flow plugin

$ npm install eslint-plugin-flowtype --dev

Setup

Add .eslintrc.js file in your project with this data:

module.exports = {
    extends: [
        '@token-io',
    ],
};

(optional) You can add a shortcut script to run ESLint in your package.json file:

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

Then you may run ESLint using:

$ npm run lint
2.0.1

2 years ago

2.0.0

2 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.6

5 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago