View Code? Open in Web Editor
NEW
ESLint setting for NetSuite
JavaScript 11.02%
HTML 88.98%
eslint-for-netsuite's Introduction
1. SuiteScript用Lintツールの導入手順 (Visual Studio Code)
- Visual Studio Code をインストール
- Git をインストール
- Node.js をインストール
- コマンドプロンプトで以下のコマンドを実行
git clone https://github.com/furimako/eslint-for-netsuite.git
cd eslint-for-netsuite
npm install
- 自動生成された「eslint-for-netsuite」フォルダの下に「src」フォルダを作成し、その中にLintツールを実行したい SuiteScript ファイルを配置する
- (例) eslint-for-netsuite/src/sample-code.js
- Visual Studio Code を開いて 「ESLint」という拡張機能 をインストールする
2. UserEventScript (SuiteScript) で使えない JavaScript のシンタックス
- let, const
- for-of
- `${variable}`
- Object.entries (Object.keys は OK)
eslint-for-netsuite's People
Contributors
Watchers