Make WordPress Core

Changeset 59848


Ignore:
Timestamp:
02/20/2025 08:00:20 PM (2 months ago)
Author:
jorbin
Message:

Build/Test: Fix JavaScript linting scripts

wp-prettier was out of date and no longer compatible with wp-scripts. Additionally, many generated files and plugins were not being properly ignored which could cause linting to take so long that it was basically unusable.

Props ankitkumarshah, jorbin.
See #62935.

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/.eslintignore

    r49978 r59848  
    1 # Files and folders related to build/test tools
     1# Files and folders related to build/test tools including generated files
    22/build
    33/node_modules
     
    55/vendor
    66/tools
     7/jsdoc
     8/artifacts
     9/coverage
     10.cache/*
     11/src/wp-includes/blocks/**/*.js
     12/src/wp-includes/blocks/**/*.js.map
     13/src/wp-admin/js
     14/src/wp-includes/js
    715
    816# Excluded files and folders based on `jsdoc.conf.json` exclusions
    917/src/js/_enqueues/vendor
    1018
    11 # Webpack built files
    12 /src/wp-includes/js/media-*
     19# Themes
     20src/wp-content/themes
    1321
    14 # Themes
    15 src/wp-content/themes/
     22# Files and folders that get created in wp-content
     23/src/wp-content/plugins
     24/src/wp-content/mu-plugins
     25/src/wp-content/upgrade
     26/src/wp-content/uploads
  • trunk/package-lock.json

    r59797 r59848  
    142142                "install-changed": "1.1.0",
    143143                "postcss": "8.4.49",
    144                 "prettier": "npm:wp-prettier@2.6.2",
     144                "prettier": "npm:wp-prettier@3.0.3",
    145145                "qunit": "~2.23.1",
    146146                "react-refresh": "0.14.0",
     
    94509450            }
    94519451        },
    9452         "node_modules/@wordpress/scripts/node_modules/prettier": {
    9453             "name": "wp-prettier",
    9454             "version": "3.0.3",
    9455             "resolved": "https://registry.npmjs.org/wp-prettier/-/wp-prettier-3.0.3.tgz",
    9456             "integrity": "sha512-X4UlrxDTH8oom9qXlcjnydsjAOD2BmB6yFmvS4Z2zdTzqqpRWb+fbqrH412+l+OUXmbzJlSXjlMFYPgYG12IAA==",
    9457             "dev": true,
    9458             "bin": {
    9459                 "prettier": "bin/prettier.cjs"
    9460             },
    9461             "engines": {
    9462                 "node": ">=14"
    9463             },
    9464             "funding": {
    9465                 "url": "https://github.com/prettier/prettier?sponsor=1"
    9466             }
    9467         },
    94689452        "node_modules/@wordpress/scripts/node_modules/read-pkg-up": {
    94699453            "version": "7.0.1",
     
    2879028774        "node_modules/prettier": {
    2879128775            "name": "wp-prettier",
    28792             "version": "2.6.2",
    28793             "resolved": "https://registry.npmjs.org/wp-prettier/-/wp-prettier-2.6.2.tgz",
    28794             "integrity": "sha512-AV33EzqiFJ3fj+mPlKABN59YFPReLkDxQnj067Z3uEOeRQf3g05WprL0RDuqM7UBhSRo9W1rMSC2KvZmjE5UOA==",
    28795             "dev": true
     28776            "version": "3.0.3",
     28777            "resolved": "https://registry.npmjs.org/wp-prettier/-/wp-prettier-3.0.3.tgz",
     28778            "integrity": "sha512-X4UlrxDTH8oom9qXlcjnydsjAOD2BmB6yFmvS4Z2zdTzqqpRWb+fbqrH412+l+OUXmbzJlSXjlMFYPgYG12IAA==",
     28779            "dev": true,
     28780            "license": "MIT",
     28781            "bin": {
     28782                "prettier": "bin/prettier.cjs"
     28783            },
     28784            "engines": {
     28785                "node": ">=14"
     28786            },
     28787            "funding": {
     28788                "url": "https://github.com/prettier/prettier?sponsor=1"
     28789            }
    2879628790        },
    2879728791        "node_modules/prettier-linter-helpers": {
  • trunk/package.json

    r59797 r59848  
    6363        "install-changed": "1.1.0",
    6464        "postcss": "8.4.49",
    65         "prettier": "npm:wp-prettier@2.6.2",
     65        "prettier": "npm:wp-prettier@3.0.3",
    6666        "qunit": "~2.23.1",
    6767        "react-refresh": "0.14.0",
Note: See TracChangeset for help on using the changeset viewer.