2.0.1 • Published 9 months ago

@token-io/eslint-config v2.0.1

Weekly downloads
44
License
UNLICENSED
Repository
github
Last release
9 months 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

9 months ago

2.0.0

1 year ago

1.1.1

1 year ago

1.1.0

2 years ago

1.0.6

4 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

6 years ago

1.0.0

6 years ago