Is your feature request related to a problem? Please describe.
No problems, this repo is great and I have nothing but positive feelings.
Describe the solution you'd like
An example .eslintrc.js
with some standard SuiteScript configuration if possible. Something basic just for SuiteScript that includes rules from this repo. Even if it's just a comment on this issue, it's hard to track down a good starting point.
As an example, here's one I just put together that's a hacked-up version of our standard React/Babel linting:
// .eslintrc.js
module.exports = {
'env': {
'browser': true,
'commonjs': true,
'es6': true
},
'extends': [
'eslint:recommended',
],
'globals': {
'define': true,
},
'parserOptions': {
'ecmaVersion': 6,
'sourceType': 'module',
},
'plugins': ['suitescript'],
'root': true,
'rules': {
// Core
'indent': ['error', 2, {'SwitchCase': 1}],
'linebreak-style': ['error', 'unix'],
'quotes': ['error', 'single'],
'semi': ['error', 'always'],
// NetSuite/SuiteScript
'suitescript/api-version': 'error',
'suitescript/entry-points': 'error',
'suitescript/log-args': 'error',
'suitescript/module-vars': 'error',
'suitescript/no-amd-name': 'error',
'suitescript/no-extra-modules': 'error',
'suitescript/no-invalid-modules': 'error',
'suitescript/no-log-module': 'error',
'suitescript/no-module-extensions': 'error',
'suitescript/script-type': 'error',
}
};
This side-steps errors for "define", adds the SuiteScript rules and has a few other bits. Something like this, but maybe with some refinements from the folks in this project.
Describe alternatives you've considered
I can't find much searching for anything NetSuite that isn't somehow tied to Eclipse or links back to NS docs. Did some cursory ESLint/SuiteScript searches and couldn't find much.
Additional context
Again, thank you. Thanks for even reading this, thanks for this repo.