我的 noob butt 三天来一直试图解决这个 javascript 错误,我该如何解决?
How do I fix this javascript error that my noob butt has been trying to solve for three days?
我正在用 React js 编写一个网站。当我推送到我的 github.
时,我将 运行 保留在这个错误中
Run npm run lint
npm run lint
shell: /bin/bash -e {0}
bs-todo@0.1.0 lint /home/runner/work/A1-Flickit/A1-Flickit
eslint src/**/*.{js,jsx}
/home/runner/work/A1-Flickit/A1-Flickit/src/components/Form.js
##[error] 130:57 error Replace `Send` with `⏎················Send⏎··············` prettier/prettier
✖ 1 problem (1 error, 0 warnings)
1 error and 0 warnings potentially fixable with the `--fix` option.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! bs-todo@0.1.0 lint: `eslint src/**/*.{js,jsx}`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the bs-todo@0.1.0 lint script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/runner/.npm/_logs/2020-08-17T02_58_10_523Z-debug.log
##[error]Process completed with exit code 1.
你是 运行 LINT(可能你的应用配置了 eslint),当有代码超出规则时它会抛出错误。
尝试在 130:57 修复您的表单组件上的问题:
error Replace Send with ⏎···············Send⏎············ prettier/prettier
或者您也可以打开 package.json,并更改 Lint 脚本并添加 —fix 选项。
我正在用 React js 编写一个网站。当我推送到我的 github.
时,我将 运行 保留在这个错误中Run npm run lint npm run lint shell: /bin/bash -e {0} bs-todo@0.1.0 lint /home/runner/work/A1-Flickit/A1-Flickit eslint src/**/*.{js,jsx} /home/runner/work/A1-Flickit/A1-Flickit/src/components/Form.js ##[error] 130:57 error Replace `Send` with `⏎················Send⏎··············` prettier/prettier ✖ 1 problem (1 error, 0 warnings) 1 error and 0 warnings potentially fixable with the `--fix` option. npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! bs-todo@0.1.0 lint: `eslint src/**/*.{js,jsx}` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the bs-todo@0.1.0 lint script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! /home/runner/.npm/_logs/2020-08-17T02_58_10_523Z-debug.log ##[error]Process completed with exit code 1.
你是 运行 LINT(可能你的应用配置了 eslint),当有代码超出规则时它会抛出错误。
尝试在 130:57 修复您的表单组件上的问题: error Replace Send with ⏎···············Send⏎············ prettier/prettier
或者您也可以打开 package.json,并更改 Lint 脚本并添加 —fix 选项。