1.0.1 • Published 2 years ago

@browseai/eslint-plugin-appsscript v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

@browseai/eslint-plugin-appsscript

ESLint plugin for Google Apps Script.

Installation

$ npm i -D eslint @browseai/eslint-plugin-appsscript

Note: If you installed ESLint globally then you must also install @browseai/eslint-plugin-appsscript globally.

Usage

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

{
  "plugins": ["@browseai/appsscript"]
}

Then configure the rules you want to use under the rules section.

{
  "rules": {
    "@browseai/appsscript/expect-private-functions": "error"
  }
}

You can also tell ESLint about the environment variables provided by Apps Script by doing:

{
  "env": {
    "@browseai/appsscript/globals": true
  }
}

Rules

RuleDescriptionConfigurationsFixable
expect-private-functionsEnforce using private functionsrecommendedfixable