Verified Commit 5f701ace authored by Dave Long's avatar Dave Long
Browse files

task: #3607173 Update prettier

By: longwave
By: godotislate
By: quietone
parent 5b6a1827
Loading
Loading
Loading
Loading
Loading
+2 −1
Changes for core/.prettierignore: 2 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -3,8 +3,9 @@ node_modules/**/*
**/build/**/*
**/js_test_files/**/*
**/css_test_files/**/*.css
modules/locale/tests/locale_test.js
modules/locale/tests/js/locale_test.js
*.yml
themes/default_admin/migration/js/scroll_sync.js
misc/jquery.form.js

# Temporary until they are brought up to standards
+0 −2
Changes for core/misc/ajax.js: 0 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -1252,11 +1252,9 @@
        !(
          // We can not consider HTML comments or whitespace text as separate
          // roots, since they do not cause visual regression with effect.
          (
          $newContent[i].nodeName === '#comment' ||
          ($newContent[i].nodeName === '#text' &&
            /^(\s|\n|\r)*$/.test($newContent[i].textContent))
          )
        ),
    ).length > 1
      ? Drupal.theme('ajaxWrapperMultipleRootElements', $newContent)
+4 −8
Changes for core/modules/views_ui/js/views-admin.js: 4 added lines, 8 removed lines.
Original line number Diff line number Diff line
@@ -260,12 +260,10 @@
      const $context = $(context);
      let $form = $context;
      // The add handler form may have an id of views-ui-add-handler-form--n.
      if (
        !(
      if (!(
        context instanceof HTMLElement &&
        context.matches('form[id^="views-ui-add-handler-form"]')
        )
      ) {
      )) {
        $form = $context.find('form[id^="views-ui-add-handler-form"]');
      }
      if (once('views-ui-add-handler-form', $form).length) {
@@ -456,12 +454,10 @@
      const $context = $(context);
      let $form = $context;
      // The add handler form may have an id of views-ui-add-handler-form--n.
      if (
        !(
      if (!(
        context instanceof HTMLElement &&
        context.matches('form[id^="views-ui-add-handler-form"]')
        )
      ) {
      )) {
        $form = $context.find('form[id^="views-ui-add-handler-form"]');
      }
      // Make sure we don't add more than one event handler to the same form.
+1 −1
Changes for core/package.json: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -66,7 +66,7 @@
    "postcss-preset-env": "^10.4.0",
    "postcss-pxtorem": "^6.1.0",
    "postcss-url": "^10.1.3",
    "prettier": "^3.6.2",
    "prettier": "^3.9.7",
    "sortablejs": "^1.15.6",
    "stylelint": "^16.25.0",
    "stylelint-checkstyle-formatter": "^0.1.2",
+7 −1
Changes for core/themes/default_admin/migration/js/media_embed_ckeditor.theme.js: 7 added lines, 1 removed line.
Original line number Diff line number Diff line
((Drupal) => {
  Drupal.theme.mediaEmbedPreviewError = () => {
    return '<div class="media-embed-error media-embed-error--preview-error">' + Drupal.t('An error occurred while trying to preview the media. You should save your work and reload this page.') + '</div>';
    return (
      '<div class="media-embed-error media-embed-error--preview-error">' +
      Drupal.t(
        'An error occurred while trying to preview the media. You should save your work and reload this page.',
      ) +
      '</div>'
    );
  };
})(Drupal);
Loading