Environment for Google Apps Script development
npm install eslint-plugin-googleappsscriptESLint plugin for Google Apps Script that defines global variables
exposed by Google Apps Script environment. It does not define any
linting rules.
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.
Add googleappsscript to the plugins section of your .eslintrceslint-plugin-
configuration file. You can omit the prefix. Also,googleappsscript/googleappsscript": true
add to env section:
`json``
{
"plugins": [
"googleappsscript"
],
"env": {
"googleappsscript/googleappsscript": true
}
}