chore: update package dependencies and add linting scripts

This commit is contained in:
punitverma123 2025-03-22 21:33:55 +05:30
parent e97b5e5350
commit 146e35ccb4
2 changed files with 23 additions and 21 deletions

42
package-lock.json generated
View file

@ -5130,9 +5130,9 @@
} }
}, },
"node_modules/@wordpress/babel-preset-default": { "node_modules/@wordpress/babel-preset-default": {
"version": "8.11.0", "version": "8.20.0",
"resolved": "https://registry.npmjs.org/@wordpress/babel-preset-default/-/babel-preset-default-8.11.0.tgz", "resolved": "https://registry.npmjs.org/@wordpress/babel-preset-default/-/babel-preset-default-8.20.0.tgz",
"integrity": "sha512-allmuNraEE8R2hu4GV65GLF4EHAqkPZHTMNZZs7ujBy/JYYmVRYrg5WQOG6W9addQyjo6Ugx9s2R6Vh8fnYv/A==", "integrity": "sha512-UGfPuNFjN8RG1BsFc04jOHoJFi3ZINYo4nsmrrUx1PFSFD2qpttmV03dWFWfqSvLvrMlYPQPMkYyK5KS6THxVQ==",
"dev": true, "dev": true,
"dependencies": { "dependencies": {
"@babel/core": "7.25.7", "@babel/core": "7.25.7",
@ -5141,8 +5141,8 @@
"@babel/preset-env": "7.25.7", "@babel/preset-env": "7.25.7",
"@babel/preset-typescript": "7.25.7", "@babel/preset-typescript": "7.25.7",
"@babel/runtime": "7.25.7", "@babel/runtime": "7.25.7",
"@wordpress/browserslist-config": "*", "@wordpress/browserslist-config": "^6.20.0",
"@wordpress/warning": "*", "@wordpress/warning": "^3.20.0",
"browserslist": "^4.21.10", "browserslist": "^4.21.10",
"core-js": "^3.31.0", "core-js": "^3.31.0",
"react": "^18.3.0" "react": "^18.3.0"
@ -5468,9 +5468,9 @@
} }
}, },
"node_modules/@wordpress/browserslist-config": { "node_modules/@wordpress/browserslist-config": {
"version": "6.11.0", "version": "6.20.0",
"resolved": "https://registry.npmjs.org/@wordpress/browserslist-config/-/browserslist-config-6.11.0.tgz", "resolved": "https://registry.npmjs.org/@wordpress/browserslist-config/-/browserslist-config-6.20.0.tgz",
"integrity": "sha512-wUDbJ3x7c8iMZLtwo+7VlWZ/vDc47PDW2eSAKW18RrQBSTdaNmWi4qiyFYi7Ye2XkyfUd2gp71MTJjZi6n/V2A==", "integrity": "sha512-n9Q1UN3QL4DuZLySZpbJoZbQvBTjMjRV5yaxnmQaEpOyqablX4GnYq39fwTY72hBN/c1b0oyOFcsbhsrx0wqzg==",
"dev": true, "dev": true,
"engines": { "engines": {
"node": ">=18.12.0", "node": ">=18.12.0",
@ -5775,20 +5775,20 @@
} }
}, },
"node_modules/@wordpress/eslint-plugin": { "node_modules/@wordpress/eslint-plugin": {
"version": "21.4.0", "version": "22.6.0",
"resolved": "https://registry.npmjs.org/@wordpress/eslint-plugin/-/eslint-plugin-21.4.0.tgz", "resolved": "https://registry.npmjs.org/@wordpress/eslint-plugin/-/eslint-plugin-22.6.0.tgz",
"integrity": "sha512-8V/cpGDDTG0loqWUjmz2mqVG55hKYTfSRC43xh2aqRIGyeKfMiqaHxD/BgEi94HFdcAhAX6DYwlPnHR18Dc/tw==", "integrity": "sha512-OzYAFXfq7la+73+DmsHRJgsEmQ/ACWCa8MWmsmullc2lHz06032gr2z/6tpehNvFtERpXhxywr9ZCYVdmC1DhA==",
"dev": true, "dev": true,
"dependencies": { "dependencies": {
"@babel/eslint-parser": "7.25.7", "@babel/eslint-parser": "7.25.7",
"@typescript-eslint/eslint-plugin": "^6.4.1", "@typescript-eslint/eslint-plugin": "^6.4.1",
"@typescript-eslint/parser": "^6.4.1", "@typescript-eslint/parser": "^6.4.1",
"@wordpress/babel-preset-default": "*", "@wordpress/babel-preset-default": "^8.20.0",
"@wordpress/prettier-config": "*", "@wordpress/prettier-config": "^4.20.0",
"cosmiconfig": "^7.0.0", "cosmiconfig": "^7.0.0",
"eslint-config-prettier": "^8.3.0", "eslint-config-prettier": "^8.3.0",
"eslint-plugin-import": "^2.25.2", "eslint-plugin-import": "^2.25.2",
"eslint-plugin-jest": "^27.2.3", "eslint-plugin-jest": "^27.4.3",
"eslint-plugin-jsdoc": "^46.4.6", "eslint-plugin-jsdoc": "^46.4.6",
"eslint-plugin-jsx-a11y": "^6.5.1", "eslint-plugin-jsx-a11y": "^6.5.1",
"eslint-plugin-playwright": "^0.15.3", "eslint-plugin-playwright": "^0.15.3",
@ -5806,7 +5806,7 @@
"@babel/core": ">=7", "@babel/core": ">=7",
"eslint": ">=8", "eslint": ">=8",
"prettier": ">=3", "prettier": ">=3",
"typescript": ">=4" "typescript": ">=5"
}, },
"peerDependenciesMeta": { "peerDependenciesMeta": {
"prettier": { "prettier": {
@ -6103,9 +6103,9 @@
} }
}, },
"node_modules/@wordpress/prettier-config": { "node_modules/@wordpress/prettier-config": {
"version": "4.11.0", "version": "4.20.0",
"resolved": "https://registry.npmjs.org/@wordpress/prettier-config/-/prettier-config-4.11.0.tgz", "resolved": "https://registry.npmjs.org/@wordpress/prettier-config/-/prettier-config-4.20.0.tgz",
"integrity": "sha512-Aoc8+xWOyiXekodjaEjS44z85XK877LzHZqsQuhC0kNgneDLrKkwI5qNgzwzAMbJ9jI58MPqVISCOX0bDLUPbw==", "integrity": "sha512-YucOkFoglNTe96CcmorzmFVX94r+mEjXQZZWkZgLwq8dvdeRM3UO39+dETYAfo8HZ4BYx6KfpREIV7tZ8PDHmQ==",
"dev": true, "dev": true,
"engines": { "engines": {
"node": ">=18.12.0", "node": ">=18.12.0",
@ -6373,9 +6373,9 @@
} }
}, },
"node_modules/@wordpress/warning": { "node_modules/@wordpress/warning": {
"version": "3.11.0", "version": "3.20.0",
"resolved": "https://registry.npmjs.org/@wordpress/warning/-/warning-3.11.0.tgz", "resolved": "https://registry.npmjs.org/@wordpress/warning/-/warning-3.20.0.tgz",
"integrity": "sha512-tXCsxlMAYXbRCgZmVHsBkoBGnrytZPGGezGXANRTsyJ00QoQJgxvnH6u22Rs/NOIVHQ5o65/9jKC3g0e6qn7PA==", "integrity": "sha512-IQRvlWwNWO6kncZ/qQEX/KCvsrm/0FIcuCXrTXlGP4OslRG7XtU9xs2lOP34Y6G3onMwhpD8mXFUK7udq305EQ==",
"engines": { "engines": {
"node": ">=18.12.0", "node": ">=18.12.0",
"npm": ">=8.19.2" "npm": ">=8.19.2"

View file

@ -8,7 +8,9 @@
"scripts": { "scripts": {
"build": "wp-scripts build", "build": "wp-scripts build",
"format": "wp-scripts format", "format": "wp-scripts format",
"format:src": "wp-scripts format ./src",
"lint:css": "wp-scripts lint-style", "lint:css": "wp-scripts lint-style",
"lint:css:fix": "wp-scripts lint-style --fix",
"lint:js": "wp-scripts lint-js", "lint:js": "wp-scripts lint-js",
"lint:js:fix": "wp-scripts lint-js --fix", "lint:js:fix": "wp-scripts lint-js --fix",
"packages-update": "wp-scripts packages-update", "packages-update": "wp-scripts packages-update",