I saw the way to suppress this with jsLint, tried it, it did not work. I need the 'new' keyword or my script does notwork. How can I suppress it in .eslintrc?
I configured .eslintrc.json in Nx/nrwl monorepo for React project. When I add group to pattern attribute to no-restricted-import "rules": { "no-restricted-i
I have the Code for some iterations and it works well. After installing eslint, One of my code generates an error by eslint. My code is: for (const column of
In my class, eslint is complaining "Expected 'this' to be used by class method 'getUrlParams' Here is my class: class PostSearch extends React.Component { c
ESLint is giving me this error on a react project. Component should be written as a pure function (react prefer/stateless function) It points to the first lin
This is my code: const func = () => { return ( <div > you're free </div> )} Somehow eslint flags the line "you're free" w
Is it possible to have different rules applied to files based on their files extension? For example I have [test].spec.js test spec files residing along my sour
My eslint version is 4.18.2, it would give a warning like this: Unexpected unnamed function Expected an assignment or function call and instead saw an ex
I know you can define rules in an .eslintrc file, but what if I just want to run eslint and check for one specific rule? E.g. $ eslint helpme.js --rule some-im
In my Chai tests I often find myself wanting to use their assertions that are something like .to.be.empty, .to.be.true e.t.c., because I find them to be cleaner
I have the same error as this answer, except instead of it just occurring in one file it is occurring in many; once I fix it for one file, another just pops up
I was updating react-scripts to latest version i.e. 5.0.0 and started seeing above error. One article suggested to upgrade @typescript-eslint to version ^5.0.0
Our code has become a bit of a maintenance nightmare due to previous developers being liberal with single letter variables and little documentation. The latter
I want to write a couple of scripts to automatically detect missing imports and import them based upon a root directory. Is it better to write this script as a
for (var items in _selectedContexts) { var downloadModel = __parsed[__parsed[items].toString().split("/")[1]][__parsed[items].toString().split("/")[2]]; var
I have a very simple vue project: <template> <div class="text-breakdown"> <h3 class = "title">Text Breakdown</h3>
When I run ESLint I get the following errors: 1:13 error 'joi' should be listed in the project's dependencies. Run 'npm i -S joi' to add it import/no-
I am trying to configure eslint for my REACT-TypeScript project. It was previously using tslint which is going to deprecate soon. I have gone through the web an
I have 2 typescript interfaces that have a member that is of the type of the other interface (circular reference). My linter complains that I cannot use an inte
I'm making a custom hook that have a toogle when some state change. You should be able to pass any state in an array. import { useState, useEffect } from 'rea