Change record status: 
Project: 
Introduced in branch: 
8.6.x
Introduced in version: 
8.6.0
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
Updates Done (doc team, etc.)
Online documentation: 
Not done
Theming guide: 
Not done
Module developer documentation: 
Not done
Examples project: 
Not done
Coder Review: 
Not done
Coder Upgrade: 
Not done
Other: 
Other updates done

Comments

andrewmacpherson’s picture

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.

fgm’s picture

Any reason why we can't have a single page about JS dev tools to use for both core and contrib ?

andrewmacpherson’s picture

I already included that as a TODO on the page itself. I'm just not the person to explain how, though.