Skip to content
This repository has been archived by the owner on Apr 26, 2021. It is now read-only.

DarkAce65/cra-eslint-warnings

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Note: the directory names refer to the version of react-scripts

TLDR: having both react-scripts@4.0.2 and eslint-webpack-plugin@2.5.0 causes no warnings to appear

Setup (eslint-webpack-plugin@2.4.3)

The main branch uses a base TypeScript template built using create-react-app --template typescript. The only change was adding const unused = 5; to App.tsx.

  • Both apps on this branch use the dependencies initially installed by create-react-app
  • Notably, eslint-webpack-plugin is at version 2.4.3

Result

Both apps correctly show the expected warning from eslint:

warning

Setup (eslint-webpack-plugin@2.5.0)

The updated branch uses the same base templates which have been upgraded by running the following commands:

  • rm -rf node_modules yarn.lock
  • yarn install
  • Notably, eslint-webpack-plugin is at version 2.5.0

Result

v4.0.1 correctly shows the expected warning:

warning

v4.0.2 doesn't show any warnings:

no_warning

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks