Skip to content

Tag: eslint

Build error while compiling create-react-app

I am new to Reactjs and am started learning it. I have been trying to start a basic hello world program but its failing at compilation level. Created a start up hello-word program with create-react-app hello-world it gave me a nice folder structure with bunch of files. And Here you can see the compilation err…

How can I use ESLint no-unused-vars for a block of code?

I need to disable some variable checks in ESLint. Currently, I am using this code, but am not getting the desired result: Two questions: Is there a variant which can enable no-unused-vars for a block of code? Something like… Or could I make Hey a global variable so that it can be ignored everywhere? Ans…

How to configure eslint indent for WebStorm?

How to set “indent” in .eslintr.json to match the default used in WebStorm? Everything I’ve tried so far, as per the official documentation can’t match it: “indent”: [“error”, 2] – gives many Expected indentation of 2 spaces but found 4 “indent&#8221…