Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

eslint-plugin-wix-editor

wix632MIT3.3.0

Wix's editor group's custom ESLint rules

wix, eslint, eslint-plugin

readme

ESLint-plugin-wix-editor

NPM version Build Status Dependency Status Dependency Status

Wix's editor group's custom ESLint rules

Installation

Install ESLint and eslint-plugin-wix-editor into your project.

$ npm install --save-dev eslint eslint-plugin-wix-editor

Configuration

Add plugins section and specify eslint-plugin-wix-editor as a plugin into your .eslintrc:

{
  "plugins": ["wix-editor"]
}

Finally, enable all of the rules that you would like to use:

{
  "rules": {
    "wix-editor/no-instanceof-array": 2,
    "wix-editor/no-not-not": 2,
    "wix-editor/no-unneeded-match": 2,
    "wix-editor/prefer-filter": 2,
    "wix-editor/prefer-ternary": 2,
    "wix-editor/return-boolean": 2,
    "wix-editor/simplify-boolean-expression": 2
  }
}

Rules

Contributions

Contributions in the form of issues and pull requests are welcome.

Before creating a pull request, please make sure that:

  • Each of your commits is needed and makes sense. Squash/rebase as needed.
  • Lint and tests pass. Check with npm test.
  • Coverage percentage has not dropped.

To begin:

git clone git@github.com:wix/eslint-plugin-wix-editor.git
cd eslint-plugin-wix-editor
npm i
npm test

License

eslint-plugin-wix-editor is licensed under the MIT License.

changelog

Changelog

All notable changes to this project will be documented in this file. Dates are displayed in UTC.

Generated by auto-changelog.

v3.3.0

v3.3.0

8 March 2021

v3.2.0

31 May 2020

v3.1.0

13 May 2020

v3.0.0

1 August 2019

  • remove augmented-assignment since it is covered by core eslint 402f9c3
  • upgrade node 10 8f3404e
  • add publish scripts fe99aab

v2.0.0

27 September 2018

v1.1.1

28 February 2016

v1.1.0

25 November 2015

  • add rule no-instanceof-array efcaafb
  • Fix wrong links in package.json da7f0c9
  • add .idea to .gitignore 9f18530

v1.0.1

8 October 2015

v1.0.0

1 October 2015