eslint-plugin-wix-custom-rules

1.0.222 • Public • Published

wix-eslint-custom-rules

Custom ESLint rules used in Wix

Installation

To install the package:

npm i -D eslint-plugin-wix-custom-rules

Then in your eslintrc file add the following line:

"plugins"[
    "wix-custom-rules"
]

Now you can add any rule you want from the package like so:

{
  "rules":
  {
    "wix-custom-rules/no-wallaby-file-only": "error",
  }
}

Rules

Rule Description
wix-custom-rules/no-wallaby-file-only Makes sure no //file.only comment (Wallby.js annotation) is left by mistake.
wix-custom-rules/wixstores-file-names File names rule - exported class files and react components should be PascalCase, everything else should be camelCase. Testkits should end with .testKit.

Readme

Keywords

none

Package Sidebar

Install

npm i eslint-plugin-wix-custom-rules

Weekly Downloads

4

Version

1.0.222

License

ISC

Unpacked Size

30.8 kB

Total Files

23

Last publish

Collaborators

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