DarkAce65/cra-eslint-warnings

★ 1Forks 0TypeScriptGitHub ↗Compare

README

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

TLDR: having both [email protected] and [email protected] causes no warnings to appear

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

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

Contributors

DarkAce65

Issues