eslint-config-wix
ESLint shareable config for all Wix projects
Install
$ npm install --save-dev eslint-config-wix
For the esnext
version you'll also need Babel's ESLint parser and plugin:
$ npm install --save-dev babel-eslint
This will let you use ES2016 features like async
/await
and decorators. For a full list of features see Babel's experimental features and their Learn ES2015.
Usage
Add some ESLint config to your package.json
:
Or to .eslintrc
:
Supports parsing ES2015, but doesn't enforce it by default.
This package also exposes wix/esnext
if you want ES2015+ rules:
And wix/angular
if you're using angular:
And wix/react
if you're using react:
And wix/mocha
if you're using mocha:
And wix/react-native
if you're using react native: