eslint-config-awake
v2.0.1
Published
An opinionated ESLint config for ES2015 and React
Downloads
4
Readme
eslint-config-awake
This package provides an .eslintrc file as an extensible shared config.
Requirements
- Node >=4.2.0
- NPM >=3.3.6
Usage
To lint the rules, run the following commands:
npm i
npm run lint
This package exports 3 configurations for ESLint.
eslint-config-awake
Lints ES2015+ and React. Requires eslint
, babel-eslint
, and eslint-plugin-react
.
npm install --save-dev eslint-config-awake babel-eslint eslint-plugin-react eslint
- Add
"extends": "awake"
to your .eslintrc
eslint-config-awake/base
Lints ES2015+ only. Requires eslint
and babel-eslint
.
npm install --save-dev eslint-config-awake babel-eslint eslint
- Add
"extends": "eslint-config-awake/base"
to your .eslintrc
eslint-config-awake/react
Lints React only. Requires eslint
and babel-eslint
, and eslint-plugin-react
.
npm install --save-dev eslint-config-awake babel-eslint eslint-plugin-react eslint
- Add
"extends": "eslint-config-awake/react"
to your .eslintrc