Skip to content
ESLint plugin for Google Apps Script environment
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
.gitignore
LICENSE
README.md
package.json

README.md

eslint-plugin-googleappsscript

ESLint plugin for Google Apps Script that defines global variables exposed by Google Apps Script environment. It does not define any linting rules.

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-plugin-googleappsscript:

$ npm install eslint-plugin-googleappsscript --save-dev

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

Usage

Add googleappsscript to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix. Also, add googleappsscript/googleappsscript": true to env section:

{
    "plugins": [
      "googleappsscript"
    ],
    "env": {
      "googleappsscript/googleappsscript": true
    }
}
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.