I’m trying to use the isNaN global function inside an arrow function in a Node.js module but I’m getting this error: [eslint] Unexpected use of 'isNaN'. (no-restricted-globals) This is...
I created a new React Native project with --template typescript I deleted the template directory which came as part of the boilerplate. I then proceeded to add ESLint: module.exports...
I am assigning a property to the global window object, but when I run eslint, I get this: “window” is not defined I see this here in the eslint...
I am using React and Redux to develop a webapp and when I started up my project I got this: Line 13: Unexpected use of 'location' no-restricted-globals Search for...
I recently started seeing, what seems like, TSLint errors. They look like this: Not using the local TSLint version found for ‘/Users/myname/myproject/client/src/app/likes/likee/likee.component.ts’. To enable code execution from the current...
When using eslint in the gulp project i have encountered a problem with error like this Expected linebreaks to be 'LF' but found 'CRLF' linebreak-style and I am using...
With this code: import React from 'react'; import { Link } from 'react-router'; import { View, NavBar } from 'amazeui-touch'; import * as Pages from '../components'; const { Home,...
I have this import in my file app.spec.ts: import app from './app'; Which causes this Typescript error 2:17 error Unable to resolve path to module './app' import/no-unresolved ./app.ts does...
Is there a way to disable specific rules for a folder? For example, I don’t want to have required JSDoc comments for all my test files in the test...
I am getting this error from ESLint: error Parsing error: The keyword 'const' is reserved from this code: const express = require('express'); const app = express(); const _ =...