eslint-config-kanmu
v15.0.0
Published
ESLint configurations for Kanmu.
Downloads
78
Readme
eslint-config-kanmu
ESLint configurations for Kanmu.
Installation
npm install --save-dev eslint eslint-config-kanmu
Usage
Add .eslintrc
(YAML).
Summary
- Base
kanmu
: ES2015kanmu/es5
: ES5
- Optional
kanmu/browser
: Browser envkanmu/flow
: for Flowkanmu/flow-jsdoc
: for JSDoc and Flowkanmu/node
: for Node.js envkanmu/react
: for Reactkanmu/react-native
: for React Nativekanmu/mocha
: for Testing mocha
Examples
ES6 (Node.js)
extends:
- kanmu
- kanmu/node
ES5 (Browser)
extends:
- kanmu/es5
- kanmu/browser
React
extends:
- kanmu
- kanmu/browser
- kanmu/react
Additional Requirements
npm install --save-dev eslint-plugin-react
React Native
extends:
- kanmu
- kanmu/react-native
Additional Requirements
npm install --save-dev eslint-plugin-react eslint-plugin-react-native
React Native with Flow
extends:
- kanmu
- kanmu/react-native
- kanmu/flow
- kanmu/flow-jsdoc
Additional Requirements
npm install --save-dev eslint-plugin-flowtype eslint-plugin-jsdoc eslint-plugin-react eslint-plugin-react-native eslint-plugin-import