ESLint configurations for Kanmu.
npm install --save-dev eslint eslint-config-kanmu
Add .eslintrc
(YAML).
- 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
extends:
- kanmu
- kanmu/node
extends:
- kanmu/es5
- kanmu/browser
extends:
- kanmu
- kanmu/browser
- kanmu/react
npm install --save-dev eslint-plugin-react
extends:
- kanmu
- kanmu/react-native
npm install --save-dev eslint-plugin-react eslint-plugin-react-native
extends:
- kanmu
- kanmu/react-native
- kanmu/flow
- kanmu/flow-jsdoc
npm install --save-dev eslint-plugin-flowtype eslint-plugin-jsdoc eslint-plugin-react eslint-plugin-react-native eslint-plugin-import