eslint-config-wix

2.0.0 • Public • Published

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:

{
    "name": "my-awesome-project",
    "eslintConfig": {
        "extends": "wix"
    }
}

Or to .eslintrc:

{
    "extends": "wix"
}

Supports parsing ES2015, but doesn't enforce it by default.

This package also exposes wix/esnext if you want ES2015+ rules:

{
    "extends": "wix/esnext"
}

And wix/angular if you're using angular:

{
    "extends": "wix/angular"
}

And wix/react if you're using react:

{
  "extends": "wix/react"
}

And wix/mocha if you're using mocha:

{
  "extends": "wix/mocha"
}

And wix/react-native if you're using react native:

{
  "extends": "wix/react-native"
}

Readme

Keywords

none

Package Sidebar

Install

npm i eslint-config-wix

Weekly Downloads

66

Version

2.0.0

License

none

Unpacked Size

7.48 kB

Total Files

9

Last publish

Collaborators

  • arielh
  • falconci
  • yurynix
  • itai.benda
  • wix-ci
  • wix-ambassador
  • shahata
  • netanelgilad
  • wix-ci-publisher
  • wix-bi-publisher