Very often I end up writing loops with awaits inside of them, in order to perform some tasks sequentially or achieve a certain interval between iterations.
For example:
for (const item of items) {
await doSomthing(item);
}
or:
while(true) {
…
I'm VERY new to ESLint, but I love the possibilities of using it as a tool. I have a folder in a Vue project that is the base for my project and I've configured linting for it. When I run it it lints great but I noticed one rule I didn't like was…
I'm quite new to react and webpack but have used eslint and javascript for years but this is really driving me insane.
I've created my project and have a actions.js file in my redux folder and in that file all I currently have is
export default…
I'm trying to install the Airbnb JavaScript style guide into my environment. I'm using gulp to show linting errors as I save my .js files but it does not show it. If I do 'eslint main.js' it shows me the errors.
Is there any way I can show it…
I’m trying to setup an ES6 starter project/template/workflow here and I’m trying to include Airbnb’s ESLint/javascript style guide. I currently have ESLint setup in the project.
I am on Windows 7, node v8.11.1, npm v4.1.2.
Per instructions at…
I have the following error in the line of "import React" in each file.
import React, { Component } from 'react'
The error is the following:
Error while running ESlint: Cannot read property file: "path"
I already tried a solution to a similar…
I created the react-native project and was doing some experiments with style guides and plugin, I created some mistakes to check how eslint error description work. Here is some code which I wrote and put an error(a comma) in app.js file.…
Has anyone made eslint work with create-react-native-app in vscode on Windows 10? It is so unstable it's making my skin itch!
Latest npm doesn't work with create-react-native-app so I installed yarn. Now I can create an app. But I have to do this…
I have a javascript application with eslint set-up and the needed Node modules, all in the same project folder. Node is only used so that eslint works.
The whole thing is pushed to GitHub and I'm noticing now the whole node-modules is getting…
When trying to run my linter standalone from the command line eslint ., everything works as expected. The issue comes when I try to run an "eslint" task via gulp.
My .eslintrc extends airbnb-base which is where the error is being…
I have a method in my vue js app.
resetFilter: function() {
$('.person').fadeIn(500);
this.toggleDepartments;
},
The error is "Block is redundant: no lone blocks:
How do I rewrite this in ES6 to fix the…
I'm running
node_modules/.bin/eslint app.jsx
and it returns nothing. I know there are errors on the page however. Anyone know what is going on? I don't even get a message on screen.
If I run:
node_modules/.bin/eslint --ext=js --ext=jsx
I'll see…
I'm trying to use ESLint + Airbnb and I'm receiving the error message:
Failed to load plugin react: Cannot find module 'eslint-plugin-react'
But I'm not using eslint-plugin-react see above my .eslintrc.js
module.exports = {
extends:…
I get the following warnings on every eslint run with config following config. What is it caused by and how do I get rid of it?
eslint warnings
can't resolve reference #/definitions/basicConfig from id #
can't resolve reference…
This is my eslintrc. It complains about
let state = {dataObjects: insurances } not being correct.
What should I do to fix this? The code is running without errors otherwise.
.eslintrc
{
"extends": "airbnb",
"env": {
"es6": true
},
…