Upgrading eslint 4 to 5
Breaking4.19.1 → 5.16.0Breaking20Security2Deprecated1New16Changed72Fixed76Other224
20 breaking changes and 2 security fixes.
- New object-curly-newline/no-self-assign default.
- Remove TDZ scopes.
- Remove extra check in getScope (fixes ).
- Remove deprecated browser/jest/node globals.
eslint publishes an official migration guide for version 5. It covers more than the release notes do.
Migration guide ↗Node.js requirement changed in 5.0.0-alpha.1: >=4 → ^6.14.0 || ^8.10.0 || >=9.10.0.
Adds @babel/code-frame ^7.0.0, eslint-utils ^1.3.1, import-fresh ^3.0.0.
Drops babel-code-frame, concat-stream, is-resolvable, pluralize, require-uncached.
Installs 118 packages in all (was 130).
Also installs @babel/helper-validator-identifier, astral-regex, emoji-regex, flatted, nice-try, parent-module, path-key, picocolors, punycode, rxjs, tslib, uri-js.
No longer installs ajv-keywords, buffer-from, caller-path, circular-json, co, core-util-is, graceful-fs, has-ansi, isarray, lru-cache, object-assign, process-nextick-args, pseudomap, readable-stream, rx-lite and 6 more.
Moves acorn 3.3.0, 5.7.4 → 6.4.2, acorn-jsx 3.0.1 → 5.3.2, ajv 5.5.2 → 6.15.0, ansi-regex 2.1.1, 3.0.1 → 3.0.1, 4.1.1, ansi-styles 2.2.1, 3.2.1 → 3.2.1, callsites 0.2.0 → 3.1.0, chalk 1.1.3, 2.4.2 → 2.4.2, chardet 0.4.2 → 0.7.0, cross-spawn 5.1.0 → 6.0.6, debug 3.2.7 → 4.4.3, doctrine 2.1.0 → 3.0.0, eslint-scope 3.7.3 → 4.0.3, espree 3.5.4 → 5.0.1, external-editor 2.2.0 → 3.1.0, fast-deep-equal 1.1.0 → 3.1.3 and 14 more. Your build may pick other versions.
What you must change
sourcecontext._linterparent