Our eslint config file for developing SuiteScripts
npm install @nicquid/eslint-config-suitescript
To enable this eslint configuration, perform the following steps:
1. Run the following command to add the necessary packages to your node project
* npm install --save-dev eslint eslint-plugin-import @nicquid/eslint-config-suitescript
1. Create a .eslintrc.json file with following contents
``JSON``
{
"env": {
"browser": true,
"es2021": true,
"amd": true
},
"extends": "@nicquid/eslint-config-suitescript",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
}
}
[1]: https://www.npmjs.com/package/eslint-config-airbnb-base
[2]: https://www.npmjs.com/package/@nicquid/eslint-config-nqt