Answer the question
In order to leave comments, you need to log in
How to make destructuring assignment and eslint friends?
Good afternoon. I'm trying to figure out with eslint for the first time. I use VS Code, put everything I need for lint on tutorials, generated the config using eslint --init.
module.exports = {
"env": {
"browser": true,
"es6": true
},
"extends": [
"airbnb-base"
],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parserOptions": {
"ecmaVersion": 2018
},
"rules": {
}
};
const { parallel, src, dest, watch } = require('gulp');
Expected a line break after this opening brace.eslint(object-curly-newline)
Answer the question
In order to leave comments, you need to log in
The documentation says:
This rule enforces consistent line breaks inside braces of object literals or destructuring assignments.
const {
parallel, src, dest, watch
} = require('gulp');
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question