Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Framework: Upgrade ESLint dependencies #3187

Merged
merged 2 commits into from
Oct 27, 2017
Merged

Framework: Upgrade ESLint dependencies #3187

merged 2 commits into from
Oct 27, 2017

Conversation

aduth
Copy link
Member

@aduth aduth commented Oct 26, 2017

This pull request seeks to upgrade ESLint dependencies to their latest versions. This brings some improvements to capturing false negatives and in some cases stricter rules. Upgrading eslint-config-wordpress brings with it some additional rules, some of which are respected here (multi-line ternaries) and some disabled (yoda which, until recently, was optional; probably worth a chat about).

Implementation notes:

Most changes should be purely cosmetic, except:

  • In token field, I removed a ref which was applied and used in tests. These tests fail already in master and may arguably be better off removed since they're skipped except when passing an environment variable. I did my best to restore basic functionality. As far as I can tell, the ref was not used anywhere except in these tests.

Testing instructions:

Verify that no errors or warnings are logged on lint:

npm run lint

Review code to verify all renamings are broadly applied, and no regressions occur in basic usage of the editor application.

@aduth aduth added the Framework Issues related to broader framework topics, especially as it relates to javascript label Oct 26, 2017
@codecov
Copy link

codecov bot commented Oct 26, 2017

Codecov Report

Merging #3187 into master will not change coverage.
The diff coverage is 48.57%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #3187   +/-   ##
=======================================
  Coverage   31.56%   31.56%           
=======================================
  Files         221      221           
  Lines        6311     6311           
  Branches     1121     1121           
=======================================
  Hits         1992     1992           
  Misses       3631     3631           
  Partials      688      688
Impacted Files Coverage Δ
editor/writing-flow/index.js 0% <ø> (ø) ⬆️
editor/document-title/index.js 0% <ø> (ø) ⬆️
editor/meta-boxes/meta-boxes-panel/index.js 0% <ø> (ø) ⬆️
editor/block-toolbar/index.js 0% <ø> (ø) ⬆️
blocks/library/gallery/gallery-image.js 55.55% <ø> (ø) ⬆️
date/index.js 17.3% <ø> (ø) ⬆️
components/form-token-field/suggestions-list.js 3.7% <ø> (ø) ⬆️
blocks/library/categories/index.js 3.22% <ø> (ø) ⬆️
components/navigable-menu/index.js 25.92% <ø> (ø) ⬆️
blocks/library/html/index.js 23.07% <ø> (ø) ⬆️
... and 24 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d951c5f...f5a3622. Read the comment docs.

aduth added 2 commits October 27, 2017 09:44
Recommended combobox aria-controls is non-configurable and may recommend a poorer experience.

See: #469
See: http://www.heydonworks.com/article/aria-controls-is-poop
@aduth aduth force-pushed the update/eslint-4-x branch from 7d9abbd to f5a3622 Compare October 27, 2017 13:45
@aduth
Copy link
Member Author

aduth commented Oct 27, 2017

I'm going to merge this sooner than later to avoid combatting constant merge conflicts.

@aduth aduth merged commit a8b176b into master Oct 27, 2017
@aduth aduth deleted the update/eslint-4-x branch October 27, 2017 13:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Framework Issues related to broader framework topics, especially as it relates to javascript
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant