1.0.0 • Published 5 years ago

wix-eslint-custom-rules v1.0.0

Weekly downloads
4
License
ISC
Repository
github
Last release
5 years ago

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

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