mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-10-26 19:15:09 +00:00
* Update eslint monorepo to v10 * Assign buildInfo a useful initial value to avoid ESLint useless assignment warning * Ignore useless assignment warning on intentional null of variable https://stackoverflow.com/questions/10864544/javascript-gc-and-assigning-objects-to-null notes that this is a common technique to release references to JavaScript objects. https://stackoverflow.com/questions/6326778/javascript-memory-leaks-why-would-assigning-object-to-null-work also has a good discussion of the technique for more exotic cases. * Ignore ESLint useless assignment warning to avoid added code complexity The useless assignment probably could be eliminated, but the later conditionals will probably make the resulting code more difficult to read. Better to keep the code simple to read and accept that we suppress the ESLint warning. * Ignore ESLint useless assignment warning for code consistency The p variable is used as a distinct counter in this code and each call that references it also increments it. The last call could be replaced by `p + 1` instead of `++p`, but the next addition after that would then need to change this line to `++p` and adjust the newly added line to `p + 1`. The code is easier to read with the consistent use of `++p`. * Ignore ESLint useless assignment warning to avoid added code complexity https://github.com/jenkinsci/jenkins/pull/26294#discussion_r2795027889 recommends the revert. No problem for me to switch from a change of initialization order to a comment. --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Mark Waite <mark.earl.waite@gmail.com>
73 lines
2.2 KiB
JSON
73 lines
2.2 KiB
JSON
{
|
|
"name": "jenkins-ui",
|
|
"version": "1.0.0",
|
|
"description": "Jenkins User Interface",
|
|
"license": "MIT",
|
|
"author": {
|
|
"name": "Tom Fennelly",
|
|
"email": "tom.fennelly@gmail.com",
|
|
"url": "https://github.com/tfennelly"
|
|
},
|
|
"private": true,
|
|
"scripts": {
|
|
"dev": "webpack --config webpack.config.js",
|
|
"prod": "webpack --config webpack.config.js --mode=production",
|
|
"build": "yarn prod",
|
|
"start": "yarn dev --watch",
|
|
"lint:js": "eslint . && prettier --check .",
|
|
"lint:js-ci": "eslint . -f checkstyle -o target/eslint-warnings.xml",
|
|
"lint:css": "stylelint src/main/scss",
|
|
"lint:css-ci": "stylelint src/main/scss --custom-formatter stylelint-checkstyle-reporter -o target/stylelint-warnings.xml",
|
|
"lint:ci": "yarn lint:js-ci && yarn lint:css-ci",
|
|
"lint:fix": "eslint --fix . && prettier --write . && stylelint src/main/scss --fix",
|
|
"lint": "yarn lint:js && yarn lint:css"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/cli": "7.28.6",
|
|
"@babel/core": "7.29.0",
|
|
"@babel/preset-env": "7.29.0",
|
|
"@eslint/js": "10.0.1",
|
|
"babel-loader": "10.0.0",
|
|
"clean-webpack-plugin": "4.0.0",
|
|
"css-loader": "7.1.3",
|
|
"css-minimizer-webpack-plugin": "7.0.4",
|
|
"eslint": "10.0.0",
|
|
"eslint-config-prettier": "10.1.8",
|
|
"eslint-formatter-checkstyle": "9.0.1",
|
|
"globals": "17.3.0",
|
|
"handlebars-loader": "1.7.3",
|
|
"mini-css-extract-plugin": "2.10.0",
|
|
"postcss": "8.5.6",
|
|
"postcss-loader": "8.2.0",
|
|
"postcss-preset-env": "11.1.3",
|
|
"postcss-scss": "4.0.9",
|
|
"prettier": "3.8.1",
|
|
"sass": "1.97.3",
|
|
"sass-loader": "16.0.7",
|
|
"style-loader": "4.0.0",
|
|
"stylelint": "17.3.0",
|
|
"stylelint-checkstyle-reporter": "1.1.1",
|
|
"stylelint-config-standard-scss": "17.0.0",
|
|
"webpack": "5.105.2",
|
|
"webpack-cli": "6.0.1",
|
|
"webpack-remove-empty-scripts": "1.1.1"
|
|
},
|
|
"dependencies": {
|
|
"handlebars": "4.7.8",
|
|
"hotkeys-js": "3.12.2",
|
|
"jquery": "4.0.0",
|
|
"lodash": "4.17.23",
|
|
"sortablejs": "1.15.7",
|
|
"tippy.js": "6.3.7",
|
|
"window-handle": "1.0.1"
|
|
},
|
|
"browserslist": [
|
|
"defaults",
|
|
"not IE 11"
|
|
],
|
|
"engines": {
|
|
"node": ">=24.0.0"
|
|
},
|
|
"packageManager": "yarn@4.12.0"
|
|
}
|