const invalidTunnelIds = result.data && result.data.invalidTunnelIds || []
this code feels normal. I don"t know why eslint reported it wrong.
const invalidTunnelIds = result.data && result.data.invalidTunnelIds || []
this code feels normal. I don"t know why eslint reported it wrong.
your code may be executed correctly, but eslint's suggestion is that you should be clear about your intention. It is possible that your intention is
result.data & & (result.data.invalidTunnelIds | | [])
or
(result.data & & result.data.invalidTunnelIds) | | []
but no matter which intention it is, it is recommended that you clearly mark it. Eslint is not only to ensure the correct execution of your code, but also to standardize your code
eslint checks that the code specification is irregular and does not necessarily consider the logic of the code. This rule tells you not to & & | mix
if you don't want to follow this rule, you can ignore
'no-mixed-operators': [0],
.eslintrc.js is configured as follows description: The problem with is plugin:vue essential . If you comment it out, vscode will work properly. npm run dev can run normally and will not report an error of export . Of course, an error ...
vue-cli adds eslinit error after generating vue project. version is as follows: "babel-eslint": "^8.2.1", "eslint": "^4.15.0", "eslint-config-standard": "^10.2.1", "eslint-friendly-form...
it will not be reported and displayed correctly. No matter how I configure indent in my rules, it will not solve the indentation problem under the script tag! ESLINT3 doesn t have this problem, but eslint 4 does! ...
120:26 error v-on directives don t support the modifier sync vue valid-v-on : <el-button size="small" style="margin-left: 0px" type="primary" @click.sync="submitQuery"&...
let baseurl = ` search?keyword=${key} `; baseurl is assigned a value but never used baseurl += &page=1 ; if (this.checkAll === false) { baseurl += &range= ; for (let i = 0; i < this.checkedParts...
this is my .eslintrc.js file module.exports = { root: true, parser: "babel-eslint", "env": { "browser": true, "node": true, "commonjs": true, "es6&qu...