Skip to content
This repository has been archived by the owner on Oct 28, 2020. It is now read-only.

🚿 A shareable version of the .eslintrc file used internally at Zapier.

Notifications You must be signed in to change notification settings

zapier/eslint-plugin-zapier

Repository files navigation

Moved to https://github.com/zapier/zapier/tree/develop/packages/libraries/eslint-plugin-zapier.

eslint-plugin-zapier

Shareable recommended rule configuration and custom rules for internal Zapier usage.

Build Status

Installation

yarn add --dev @zapier/eslint-plugin-zapier

Note: If you installed ESLint globally (using the -g flag) then you must also install eslint-plugin-zapier globally.

Usage

Add @zapier/zapier to the plugins and extends section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
  "plugins": ["@zapier/zapier"],
  "extends": ["plugin:@zapier/zapier/base"],
}

You may optionally configure any specific rules you want to override under the rules section:

{
  "rules": {
    "semi": "off"
  }
}

Prettier Support

If you're using prettier, you can extend from plugin:@zapier/zapier/prettier instead to turn-off all rules from this config that would conflict with prettier:

{
  "extends": [
    "plugin:@zapier/zapier/prettier"
  ]
}

Note that this does not enable prettier in the consuming project. It only disables all ESLint rules that would otherwise conflict with prettier.

Versioning Policy

eslint-plugin-zapier follows a semantic versioning policy along the lines of ESLint's semver policy:

Major releases: In general, any change that could cause more errors to be reported on the consumer's CI should be considered a major release. Examples:

  • adding new rules that are on by default in one of the presets
  • changing existing rules, if it causes more errors

Minor releases:

  • disabling or removing rules (less linting errors reported)
  • changing existing rules, if it doesn't cause more errors
  • adding new rules, if they are not on by default in any preset

Patch releases:

  • bug fixes
  • doc changes
  • non user-facing changes

About

🚿 A shareable version of the .eslintrc file used internally at Zapier.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published