';
const testReportTitle = testConfig.reportTitle === undefined ? 'Test Execution Report' : testConfig.reportTitle;
testSummaryTable += testReportTitle + ' |
';
diff --git a/packages/react-styles/.eslintrc.json b/packages/react-styles/.eslintrc.json
deleted file mode 100644
index eb95cf4405d..00000000000
--- a/packages/react-styles/.eslintrc.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "rules": {
- "camelcase": "off"
- }
-}
diff --git a/packages/react-tokens/scripts/writeTokens.js b/packages/react-tokens/scripts/writeTokens.js
index 8c023b71d02..3f8b7eebe1f 100644
--- a/packages/react-tokens/scripts/writeTokens.js
+++ b/packages/react-tokens/scripts/writeTokens.js
@@ -38,7 +38,7 @@ const allIndex = {};
const componentIndex = [];
const outputIndex = (index, indexFile) => {
- const esmIndexString = index.map(file => `export { ${file} } from './${file}';`).join('\n');
+ const esmIndexString = index.map((file) => `export { ${file} } from './${file}';`).join('\n');
outputFileSync(join(outDir, 'esm', indexFile), esmIndexString);
outputFileSync(
join(outDir, 'js', indexFile),
@@ -48,7 +48,7 @@ function __export(m) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
exports.__esModule = true;
-${index.map(file => `__export(require('./${file}'));`).join('\n')}
+${index.map((file) => `__export(require('./${file}'));`).join('\n')}
`.trim()
);
outputFileSync(join(outDir, 'esm', indexFile.replace('.js', '.d.ts')), esmIndexString);
@@ -72,7 +72,7 @@ function writeTokens(tokens) {
// Legacy token support -- values may be incorrect.
Object.values(tokenValue)
- .map(values => Object.entries(values))
+ .map((values) => Object.entries(values))
.reduce((acc, val) => acc.concat(val), []) // flatten
.forEach(([oldTokenName, { name, value }]) => {
const isChart = oldTokenName.includes('chart');
diff --git a/plopfile.js b/plopfile.js
index d565ba9cdbd..86f4e0f5468 100644
--- a/plopfile.js
+++ b/plopfile.js
@@ -3,7 +3,7 @@ const { setHelpers } = require('./scripts/generators/helpers');
const setPFGenerators = require('./scripts/generators/patternfly-component');
const setPackageGenerators = require('./scripts/generators/package');
-module.exports = plop => {
+module.exports = (plop) => {
setHelpers(plop);
setActionTypes(plop);
diff --git a/scripts/generators/helpers.js b/scripts/generators/helpers.js
index 07d414a5a0e..ce320befff7 100644
--- a/scripts/generators/helpers.js
+++ b/scripts/generators/helpers.js
@@ -1,7 +1,7 @@
const REMOVE_NPM_SCOPE = 'removeNPMScope';
function setHelpers(plop) {
- plop.setHelper(REMOVE_NPM_SCOPE, text => text.replace(/^@patternfly\//i, ''));
+ plop.setHelper(REMOVE_NPM_SCOPE, (text) => text.replace(/^@patternfly\//i, ''));
}
module.exports = {
diff --git a/scripts/generators/package/index.js b/scripts/generators/package/index.js
index 5125990718d..a31360391c6 100644
--- a/scripts/generators/package/index.js
+++ b/scripts/generators/package/index.js
@@ -23,7 +23,7 @@ function setPackageGenerators(plop) {
message: 'Does this build with Typescript?'
}
],
- actions: answers => {
+ actions: (answers) => {
const packageBaseTemplate = join(packagesRoot, `./{{${REMOVE_NPM_SCOPE} name}}/`);
return [
@@ -39,20 +39,17 @@ function setPackageGenerators(plop) {
? join(packageBaseTemplate, 'src/index.ts')
: join(packageBaseTemplate, 'lib/index.js')
},
- answers.buildsWithTypescript &&
- {
+ answers.buildsWithTypescript && {
type: 'add',
path: join(packageBaseTemplate, `.npmignore`),
templateFile: resolve(__dirname, './.npmignore')
},
- answers.buildsWithTypescript &&
- {
+ answers.buildsWithTypescript && {
type: 'add',
path: join(packageBaseTemplate, `tsconfig.json`),
templateFile: resolve(__dirname, './tsconfig.json')
},
- answers.buildsWithTypescript &&
- {
+ answers.buildsWithTypescript && {
type: 'add',
path: join(packageBaseTemplate, `tsconfig.cjs.json`),
templateFile: resolve(__dirname, './tsconfig.cjs.json')
diff --git a/yarn.lock b/yarn.lock
index afe6fb540a1..70b88fe9828 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -1849,6 +1849,13 @@ __metadata:
languageName: node
linkType: hard
+"@eslint/compat@npm:^1.1.1":
+ version: 1.1.1
+ resolution: "@eslint/compat@npm:1.1.1"
+ checksum: 10c0/ca8aa3811fa22d45913f5724978e6f3ae05fb7685b793de4797c9db3b0e22b530f0f492011b253754bffce879d7cece65762cc3391239b5d2249aef8230edc9a
+ languageName: node
+ linkType: hard
+
"@eslint/eslintrc@npm:^2.1.4":
version: 2.1.4
resolution: "@eslint/eslintrc@npm:2.1.4"
@@ -1873,6 +1880,13 @@ __metadata:
languageName: node
linkType: hard
+"@eslint/js@npm:^9.7.0":
+ version: 9.7.0
+ resolution: "@eslint/js@npm:9.7.0"
+ checksum: 10c0/73fc10666f6f4aed6f58e407e09f42ceb0d42fa60c52701c64ea9f59a81a6a8ad5caecdfd423d03088481515fe7ec17eb461acb4ef1ad70b649b6eae465b3164
+ languageName: node
+ linkType: hard
+
"@fortawesome/fontawesome-common-types@npm:^0.2.36":
version: 0.2.36
resolution: "@fortawesome/fontawesome-common-types@npm:0.2.36"
@@ -3280,6 +3294,8 @@ __metadata:
"@babel/plugin-transform-modules-commonjs": "npm:^7.24.7"
"@babel/preset-react": "npm:^7.24.7"
"@babel/preset-typescript": "npm:^7.24.7"
+ "@eslint/compat": "npm:^1.1.1"
+ "@eslint/js": "npm:^9.7.0"
"@octokit/rest": "npm:^20.1.1"
"@rollup/plugin-commonjs": "npm:^26.0.1"
"@rollup/plugin-node-resolve": "npm:^15.2.3"
@@ -3293,8 +3309,6 @@ __metadata:
"@types/node": "npm:^20.14.10"
"@types/react": "npm:^18.3.3"
"@types/react-dom": "npm:^18.3.0"
- "@typescript-eslint/eslint-plugin": "npm:^7.16.0"
- "@typescript-eslint/parser": "npm:^7.16.0"
babel-jest: "npm:^29.7.0"
concurrently: "npm:^8.2.2"
eslint: "npm:^8.57.0"
@@ -3304,6 +3318,7 @@ __metadata:
eslint-plugin-testing-library: "npm:^6.2.2"
fs-extra: "npm:^11.2.0"
glob: "npm:^10.4.5"
+ globals: "npm:^15.8.0"
husky: "npm:^9.0.11"
jest: "npm:^29.7.0"
jest-environment-jsdom: "npm:^29.7.0"
@@ -3324,6 +3339,7 @@ __metadata:
ts-node: "npm:^10.9.2"
ts-patch: "npm:^3.2.1"
typescript: "npm:^5.4.5"
+ typescript-eslint: "npm:^7.16.1"
languageName: unknown
linkType: soft
@@ -4757,15 +4773,15 @@ __metadata:
languageName: node
linkType: hard
-"@typescript-eslint/eslint-plugin@npm:^7.16.0":
- version: 7.16.0
- resolution: "@typescript-eslint/eslint-plugin@npm:7.16.0"
+"@typescript-eslint/eslint-plugin@npm:7.16.1":
+ version: 7.16.1
+ resolution: "@typescript-eslint/eslint-plugin@npm:7.16.1"
dependencies:
"@eslint-community/regexpp": "npm:^4.10.0"
- "@typescript-eslint/scope-manager": "npm:7.16.0"
- "@typescript-eslint/type-utils": "npm:7.16.0"
- "@typescript-eslint/utils": "npm:7.16.0"
- "@typescript-eslint/visitor-keys": "npm:7.16.0"
+ "@typescript-eslint/scope-manager": "npm:7.16.1"
+ "@typescript-eslint/type-utils": "npm:7.16.1"
+ "@typescript-eslint/utils": "npm:7.16.1"
+ "@typescript-eslint/visitor-keys": "npm:7.16.1"
graphemer: "npm:^1.4.0"
ignore: "npm:^5.3.1"
natural-compare: "npm:^1.4.0"
@@ -4776,25 +4792,25 @@ __metadata:
peerDependenciesMeta:
typescript:
optional: true
- checksum: 10c0/a6c4c93bd7ec1604079018b95416d8ac28af3345d50620f815ffd36e705c4964d88edc434e710ef8722690497f1eeab1e9a0f48faa6d448405980f5d05c888b7
+ checksum: 10c0/3d0d8fa7e00dff4deb70f41432030e4e0e0bc1e4415ae7be969b77bb216fd0797507ed852baaf6d12f6ae022f69ac6356201f6b4129ddfd57b232bfc6715ac8a
languageName: node
linkType: hard
-"@typescript-eslint/parser@npm:^7.16.0":
- version: 7.16.0
- resolution: "@typescript-eslint/parser@npm:7.16.0"
+"@typescript-eslint/parser@npm:7.16.1":
+ version: 7.16.1
+ resolution: "@typescript-eslint/parser@npm:7.16.1"
dependencies:
- "@typescript-eslint/scope-manager": "npm:7.16.0"
- "@typescript-eslint/types": "npm:7.16.0"
- "@typescript-eslint/typescript-estree": "npm:7.16.0"
- "@typescript-eslint/visitor-keys": "npm:7.16.0"
+ "@typescript-eslint/scope-manager": "npm:7.16.1"
+ "@typescript-eslint/types": "npm:7.16.1"
+ "@typescript-eslint/typescript-estree": "npm:7.16.1"
+ "@typescript-eslint/visitor-keys": "npm:7.16.1"
debug: "npm:^4.3.4"
peerDependencies:
eslint: ^8.56.0
peerDependenciesMeta:
typescript:
optional: true
- checksum: 10c0/bf809c5a59dddc72fc2f11a5d10c78825fa2ffbec72a711e3f783b022d77266a1b709ad450912ebbff24ca9ac20c6baae1d12477735e00aafce662fdbdfa66ef
+ checksum: 10c0/f0c731d9f22ccbcc2a15eb33376ae09cdcdcb4c69fcce425e8e7e5e3ccce51c4ee431d350109a02a09f40df81349c59eddd0264fe53a4194f326c0e0e2e3e83a
languageName: node
linkType: hard
@@ -4808,22 +4824,22 @@ __metadata:
languageName: node
linkType: hard
-"@typescript-eslint/scope-manager@npm:7.16.0":
- version: 7.16.0
- resolution: "@typescript-eslint/scope-manager@npm:7.16.0"
+"@typescript-eslint/scope-manager@npm:7.16.1":
+ version: 7.16.1
+ resolution: "@typescript-eslint/scope-manager@npm:7.16.1"
dependencies:
- "@typescript-eslint/types": "npm:7.16.0"
- "@typescript-eslint/visitor-keys": "npm:7.16.0"
- checksum: 10c0/e00f57908a1b30fb93ae0e35c46a798669782428e98f927a4d39ef3b1e7d5ad4a48e4e121bd136ed9732c2d1c09cf0b99e4029b1a1a11aadf6f2b92e1003f41c
+ "@typescript-eslint/types": "npm:7.16.1"
+ "@typescript-eslint/visitor-keys": "npm:7.16.1"
+ checksum: 10c0/5105edd927fd45097eb9c16f235ba48c2d9f2f3a3948fbdc4ffdc9a9fc5f130fa46c32d9188fe4bb303bd99508d7f0aad342c2ec0d9ad887aa1416dd54edeb66
languageName: node
linkType: hard
-"@typescript-eslint/type-utils@npm:7.16.0":
- version: 7.16.0
- resolution: "@typescript-eslint/type-utils@npm:7.16.0"
+"@typescript-eslint/type-utils@npm:7.16.1":
+ version: 7.16.1
+ resolution: "@typescript-eslint/type-utils@npm:7.16.1"
dependencies:
- "@typescript-eslint/typescript-estree": "npm:7.16.0"
- "@typescript-eslint/utils": "npm:7.16.0"
+ "@typescript-eslint/typescript-estree": "npm:7.16.1"
+ "@typescript-eslint/utils": "npm:7.16.1"
debug: "npm:^4.3.4"
ts-api-utils: "npm:^1.3.0"
peerDependencies:
@@ -4831,7 +4847,7 @@ __metadata:
peerDependenciesMeta:
typescript:
optional: true
- checksum: 10c0/91ef86e173d2d86487d669ddda7a0f754485e82a671a64cfbf7790639dfb4c691f6f002ae19d4d82a90e4cca9cd7563e38100c1dfabab461632b0da1eac2b39b
+ checksum: 10c0/7551566185ca372dbc3d53b8ab047ea7e2c50b25d9a9293d5163498fb87c4b16a585d267a4a99df57d70326754acf168aad726ee5e8b9c0d4e59f1b8653d951d
languageName: node
linkType: hard
@@ -4842,10 +4858,10 @@ __metadata:
languageName: node
linkType: hard
-"@typescript-eslint/types@npm:7.16.0":
- version: 7.16.0
- resolution: "@typescript-eslint/types@npm:7.16.0"
- checksum: 10c0/5d7080991241232072c50c1e1be35976631f764fe0f4fd43cf1026a2722aab772a14906dfaa322183b040c6ca8ae4494a78f653dd3b22bcdbdfe063a301240b0
+"@typescript-eslint/types@npm:7.16.1":
+ version: 7.16.1
+ resolution: "@typescript-eslint/types@npm:7.16.1"
+ checksum: 10c0/5ab7bfcac81adb01672057270d0273da98dcf50d2add5819b4787b5973f6624d11ad33d6fb495f80fe628fefa3a5ed319b433ed57e9121e444cfc002e1e48625
languageName: node
linkType: hard
@@ -4867,12 +4883,12 @@ __metadata:
languageName: node
linkType: hard
-"@typescript-eslint/typescript-estree@npm:7.16.0":
- version: 7.16.0
- resolution: "@typescript-eslint/typescript-estree@npm:7.16.0"
+"@typescript-eslint/typescript-estree@npm:7.16.1":
+ version: 7.16.1
+ resolution: "@typescript-eslint/typescript-estree@npm:7.16.1"
dependencies:
- "@typescript-eslint/types": "npm:7.16.0"
- "@typescript-eslint/visitor-keys": "npm:7.16.0"
+ "@typescript-eslint/types": "npm:7.16.1"
+ "@typescript-eslint/visitor-keys": "npm:7.16.1"
debug: "npm:^4.3.4"
globby: "npm:^11.1.0"
is-glob: "npm:^4.0.3"
@@ -4882,21 +4898,21 @@ __metadata:
peerDependenciesMeta:
typescript:
optional: true
- checksum: 10c0/2b4e7cbdb1b43d937d1dde057ab18111e0f2bb16cb2d3f48a60c5611ff81d0b64455b325475bcce6213c54653b6c4d3b475526f7ffcf8f74014ab9b64a3d6d92
+ checksum: 10c0/979269e9d42d75c0e49f47c7bb5e9554bd29041339c6fecfe5c76726699bce25132bef8b54210769e4f0abb858a278923340d3e4decc6551406e2c5ec065fe04
languageName: node
linkType: hard
-"@typescript-eslint/utils@npm:7.16.0":
- version: 7.16.0
- resolution: "@typescript-eslint/utils@npm:7.16.0"
+"@typescript-eslint/utils@npm:7.16.1":
+ version: 7.16.1
+ resolution: "@typescript-eslint/utils@npm:7.16.1"
dependencies:
"@eslint-community/eslint-utils": "npm:^4.4.0"
- "@typescript-eslint/scope-manager": "npm:7.16.0"
- "@typescript-eslint/types": "npm:7.16.0"
- "@typescript-eslint/typescript-estree": "npm:7.16.0"
+ "@typescript-eslint/scope-manager": "npm:7.16.1"
+ "@typescript-eslint/types": "npm:7.16.1"
+ "@typescript-eslint/typescript-estree": "npm:7.16.1"
peerDependencies:
eslint: ^8.56.0
- checksum: 10c0/1b835cbd243a4266a84655bcfcd08a14003e9740efbb032d60ab4403f03838280e7ad759b1f362d88939beaee08d7a1752fa6b049aad8d33793758853469fe76
+ checksum: 10c0/22fbf17eec064d1e67f2a4bf512f62d5369a22fe11226f043cbeb0fe79cd18006b04f933e5025f4e5c2f82047248dac52cc97199e495ad17d564084210099d17
languageName: node
linkType: hard
@@ -4928,13 +4944,13 @@ __metadata:
languageName: node
linkType: hard
-"@typescript-eslint/visitor-keys@npm:7.16.0":
- version: 7.16.0
- resolution: "@typescript-eslint/visitor-keys@npm:7.16.0"
+"@typescript-eslint/visitor-keys@npm:7.16.1":
+ version: 7.16.1
+ resolution: "@typescript-eslint/visitor-keys@npm:7.16.1"
dependencies:
- "@typescript-eslint/types": "npm:7.16.0"
+ "@typescript-eslint/types": "npm:7.16.1"
eslint-visitor-keys: "npm:^3.4.3"
- checksum: 10c0/a3c614cdc2e9c37e007e15e1ee169a9ad040fac189d0abd2b840f78910b499b362493bbf0019c5979785567ae30839a799b4dd219f70a668bac930fd79fdc5d3
+ checksum: 10c0/060bc6770ba3ea271c6a844501f4dfee1b8842a0c405e60d2a258466b1b4e66086234a3fddac8745bb1a39a89eab29afeaf16133ad925bd426ac8fdb13fb7f94
languageName: node
linkType: hard
@@ -11027,6 +11043,13 @@ __metadata:
languageName: node
linkType: hard
+"globals@npm:^15.8.0":
+ version: 15.8.0
+ resolution: "globals@npm:15.8.0"
+ checksum: 10c0/b96ec86e1244806920a80a1a7c4d64b68c55336887cfa1b52886927e0f9035133e4acd354fcda63b49e53df2089c41a11dd2b02281a6439a58cbc0d63ae083cb
+ languageName: node
+ linkType: hard
+
"globalthis@npm:^1.0.3":
version: 1.0.4
resolution: "globalthis@npm:1.0.4"
@@ -20228,6 +20251,22 @@ __metadata:
languageName: node
linkType: hard
+"typescript-eslint@npm:^7.16.1":
+ version: 7.16.1
+ resolution: "typescript-eslint@npm:7.16.1"
+ dependencies:
+ "@typescript-eslint/eslint-plugin": "npm:7.16.1"
+ "@typescript-eslint/parser": "npm:7.16.1"
+ "@typescript-eslint/utils": "npm:7.16.1"
+ peerDependencies:
+ eslint: ^8.56.0
+ peerDependenciesMeta:
+ typescript:
+ optional: true
+ checksum: 10c0/293af275e79d3ece210471c24c807f44d6c82896b99f59dfa3be6fc4ef9cbbc2e8737cec83f70fb416450c4adf3b27a4bee5791e7e06be3fe89cf8a05dda1779
+ languageName: node
+ linkType: hard
+
"typescript@npm:4.3.5":
version: 4.3.5
resolution: "typescript@npm:4.3.5"