✘ http://eslint.org/docs/rules/no-redeclare 'recvArea' is already defined
src/renderer/components/LandingPage.vue:333:13
var recvArea = $('#recvArea .ivu-card-body')
^
✘ http://eslint.org/docs/rules/one-var Split initialized 'let' declarations into multiple statements
src/renderer/components/LandingPage2.vue:171:1
let portList = [],
^
环境:macOS Mojave 10.14.3, npm 5.6.0 编译安装遇到一些问题。
执行npm install 遇到9个错误()
electron-serialtool git:(master) ✗ npm install
✘ http://eslint.org/docs/rules/no-unused-vars 'Vue' is defined but never used src/renderer/components/LandingPage.vue:139:8 import Vue from 'vue' ^ ✘ http://eslint.org/docs/rules/no-unused-vars 'Terminal' is defined but never used src/renderer/components/LandingPage.vue:140:10 import { Terminal } from 'xterm' ^
✘ http://eslint.org/docs/rules/one-var Split initialized 'let' declarations into multiple statements src/renderer/components/LandingPage.vue:146:1 let portList = [], ^
✘ http://eslint.org/docs/rules/handle-callback-err Expected error to be handled src/renderer/components/LandingPage.vue:154:19 SerialPort.list(function (err, ports) { ^
✘ http://eslint.org/docs/rules/no-dupe-keys Duplicate key 'methods' src/renderer/components/LandingPage.vue:269:3 methods: { ^
✘ http://eslint.org/docs/rules/no-redeclare 'recvArea' is already defined src/renderer/components/LandingPage.vue:333:13 var recvArea = $('#recvArea .ivu-card-body') ^
✘ http://eslint.org/docs/rules/one-var Split initialized 'let' declarations into multiple statements src/renderer/components/LandingPage2.vue:171:1 let portList = [], ^
✘ http://eslint.org/docs/rules/handle-callback-err Expected error to be handled src/renderer/components/LandingPage2.vue:179:19 SerialPort.list(function (err, ports) { ^
✘ http://eslint.org/docs/rules/no-undef 'term' is not defined src/renderer/components/LandingPage2.vue:363:9 term.write(data) ^
✘ 9 problems (9 errors, 0 warnings)