Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
Our versions of the AirBnB JavaScript coding standards are out of date and should be updated.
Proposed resolution
Update versions of our coding standards dependencies.
Comment | File | Size | Author |
---|---|---|---|
#12 | 2878620-12.patch | 56.96 KB | GrandmaGlassesRopeMan |
#12 | interdiff-2878620-9-12.txt | 10.5 KB | GrandmaGlassesRopeMan |
#9 | upgrade-eslint-packages.patch | 52 KB | droplet |
#7 | 2878620-7.patch | 14.32 KB | GrandmaGlassesRopeMan |
coding-standards-version-bumps.patch | 6.56 KB | GrandmaGlassesRopeMan | |
Comments
Comment #2
dawehnerThank you @drpal!
Comment #3
mpdonadioIS mentions AirBnB JavaScript coding standards, but these two aren't part of those, correct? Maybe this just needs an IS update to "bump all of things for 8.4 since the other issue sat for a while".
I think a larger question is what the policy will be for keeping these up to date. Keeping in line with other things would be to bump near the beginning of the dev cycle and then keep stable so people don't have a moving target.
Probably also want to update the CR to match the final version of this patch so it will be accurate for 8.4.0.
Comment #4
GrandmaGlassesRopeMan@mpdonadio
Both
eslint-plugin-jsx-a11y
andeslint-plugin-react
are dependencies so they need to be updated as well. I'm sure we'll do this again as we get closer to 8.4 so I'll update the change record once this goes in along with a final update before 8.4.Comment #5
dawehnerMaybe a really naive question: What is the reason we don't use something like
^5.0.0
in our package.json files? We still have the yarn lock file, so its actually locked. In thecomposer.json
we actually run with them.Comment #6
droplet CreditAttribution: droplet commented@dawehner,
We can do it now. It was no lock file & Yarn. But with lock file now, do it or not seems no much diff :)
this is updated again with docs & version fixes. We can wait for one more week to see if there's any upstream quick fix on this new release.
Comment #7
GrandmaGlassesRopeMan- Updating
eslint
,eslint-config-airbnb
,eslint-plugin-import
,eslint-plugin-jsx-a11y
, andeslint-plugin-react
to their most recent versions.Comment #9
droplet CreditAttribution: droplet commentedComment #10
martin107 CreditAttribution: martin107 commentedWhen I typed
yarn outdated... just now to set my expectations
I see all the version updates I expect in the package.json file.
so + 1 from me.
BTW we are now updating
eslint-config-airbnb 14.1.0 -> 15.1.0
Comment #11
lauriiiThis causes a warning
warning "eslint-config-airbnb@15.1.0" has incorrect peer dependency "eslint-plugin-jsx-a11y@^5.1.1".
which we'll have to fix.Comment #12
GrandmaGlassesRopeMan- Fixed dependencies.
Additionally, AirBnB has some strange behavior with its dependencies.
I've done,
npm info eslint-config-airbnb@latest peerDependencies --json
,Which returns,
And then installed them, which you can do automatically,
Comment #14
dawehnerIs this issue still needed once we switch to prettier?
Comment #15
GrandmaGlassesRopeManThis is probably out of date anyways. We can close this in favor of, #2978964: Use Prettier for formatting core JavaScript