“parserOptions.project” has been set for @typescript-eslint/parser

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 = { parser: “@typescript-eslint/parser”, plugins: [“@typescript-eslint”], extends: [“airbnb-typescript-prettier”] }; However, when I open babel.config.js, I get this error Parsing error: “parserOptions.project” has been set for @typescript-eslint/parser. … Read more

TSLint extension throwing errors in my Angular application running in Visual Studio Code

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 workspace you must enable workspace library execution. I’m seeing them in my .ts files when I open them and it shows a yellow squiggly line on … Read more

Expected linebreaks to be ‘LF’ but found ‘CRLF’ linebreak-style

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 Windows environment for the running gulp and the entire error log is given below Kiran (master *) Lesson 4 $ gulp Using gulpfile c:\Users\Sai\Desktop\web-build-tools\4\ gulpfile.js Starting … Read more

ESLint Parsing error: Unexpected token

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, …Components } = Pages; I get this eslint error: 7:16 error Parsing error: Unexpected token .. Why? Here is my eslint config: { “extends”: “airbnb”, “rules”: … Read more

eslint: error Parsing error: The keyword ‘const’ is reserved

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 _ = require(‘underscore’); I’ve tried removing node_modules and reinstalling all npm packages (as suggested here), but to no avail. 8 Answers 8