Skip to content

BrowseAI-Official/eslint-plugin-appsscript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

@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

Rule Description Configurations Fixable
expect-private-functions Enforce using private functions ![recommended][] ![fixable][]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published