VS Code に拡張を追加
プロジェクト(ワークスペース)配下にパッケージ追加
フォルダは puppeteer_sample
npm install --save-dev eslint
npm WARN puppeteer_sample@1.0.0 No description
npm WARN puppeteer_sample@1.0.0 No repository field.
+ eslint@5.16.0
added 100 packages from 63 contributors and audited 234 packages in 17.361s
found 0 vulnerabilities
node .\node_modules\eslint\bin\eslint.js --init
? How would you like to use ESLint? To check syntax and find problems
? What type of modules does your project use? CommonJS (require/exports)
? Which framework does your project use? None of these
? Where does your code run? Node
? What format do you want your config file to be in? JSON
どれを選ぶべきか、よくわからないがもっともらしいものを選んだ。
出力フォルダにて動作確認
出力 OUTPUT のプルダウンより ESLint を選択すると、動作中とのことだった。
[Info - 14:47:41] ESLint server stopped.
[Info - 14:47:42] ESLint server running in node v10.2.0
[Info - 14:47:42] ESLint server is running.
[Info - 14:47:45] ESLint library loaded from: c:\Users\tombi\Documents\projects\puppeteer_sample\node_modules\eslint\lib\api.js