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.
By GrandmaGlassesRopeMan on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
8.6.x
Introduced in version:
8.6.0
Issue links:
Description:
Drupal 8.6 comes with Prettier. This is an effort to standardize the formatting of our JavaScript in addition to the rules provided by ESLint.
Future patches should follow this workflow,
// Set-up.
cd core
yarn install
// Run Prettier
yarn run prettier
// Run ESLint - This is the passing ruleset with more problematic rules turned off.
yarn run lint:core-js-passing
// Build JavaScript
yarn run build:js
Comments
Javascript developer tools handbook page
I've started a handbook page: Javascript Developer tools for Drupal core. It will gather details of the JS dev tools from this change record (and others). It still needs work, contributions welcome.
Any reason why we can't have
Any reason why we can't have a single page about JS dev tools to use for both core and contrib ?
I already included that as a
I already included that as a TODO on the page itself. I'm just not the person to explain how, though.