Top "Eslint" questions

The pluggable linting utility for JavaScript and related frameworks.

Parsing Error The Keyword import is Reserved (SublimeLinter-contrib-eslint)

I have a problem with eslint, it gives me [Parsing Error The keyword import is reserve] this is only occur …

javascript parsing sublimetext eslint
ESLint dollar($) is not defined. (no-undef)

$("#ID").hide(); i add ESLint to my project . everything is fine, except symbol $. i get error: [eslint] '$' is …

jquery eslint
Error: EACCES: permission denied when trying to install ESLint using npm

I'm trying to install ESLint with npm by going: npm install -g eslint However I get the following error: Deans-Air:~ …

node.js macos npm eslint
ESLint Unexpected use of isNaN

I'm trying to use the isNaN global function inside an arrow function in a Node.js module but I'm getting …

javascript eslint
How to manually add a path to be resolved in eslintrc

I have a folder in my project main that I am resolving like a module. For instance import x from …

webpack eslint resolve
ESLint's "no-undef" rule is calling my use of Underscore an undefined variable

I am using Grunt as my Build Tool and ESLint as my linting tool for an app I am working …

javascript angularjs gruntjs underscore.js eslint
Global variables in Javascript and ESLint

I have got multiple javascript files and I have defined some global variable in a file which loads before the …

javascript variables global eslint
ESLint with React gives `no-unused-vars` errors

I've setup eslint & eslint-plugin-react. When I run ESLint, the linter returns no-unused-vars errors for each React component. I'm assuming …

javascript reactjs jsx eslint
How to disable JavaScript build error in Visual Studio 2017?

I just updated Visual Studio 2017 from RC to final. I didn’t get the following error but recently I get …

javascript visual-studio visual-studio-2017 eslint
how to solve the ` Component should be written as a pure function ` error in eslint-react?

class Option extends React.Component { constructor(props) { super(props); this.handleClickOption = this.handleClickOption.bind(this); } handleClickOption() { // some code } render() { return ( &…

reactjs eslint