Files
jenkins/eslint.config.cjs
T
Jan Faracik f972b9d819 Refine the 'New Item' screen (#26031)
* Refine the 'New Item' screen

* Simplify SCSS

* Fix submission, fix some tests, improve tabbing + focus states

* Fix more tests

* Simplify JS + hopefully fix test

* Update pom.xml

* Update Jenkinsfile

* Fix issue noticed in #26069

* Restore Jenkinsfile/test pom

* Simplify JS

* Restore ability to have headings

* Fix focus state in Firefox/Chrome

* Add separator between items and 'Duplicate an item'
2026-02-09 11:13:17 -07:00

106 lines
2.7 KiB
JavaScript

const eslintConfigPrettier = require("eslint-config-prettier");
const globals = require("globals");
const js = require("@eslint/js");
module.exports = [
// Global ignores
{
ignores: [
"**/target/",
"**/work/",
// Node
"**/node/",
// Generated JavaScript Bundles
"**/jsbundles/",
// External scripts
".pnp.cjs",
".pnp.loader.mjs",
"src/main/js/plugin-setup-wizard/bootstrap-detached.js",
],
},
{
languageOptions: {
ecmaVersion: 2022,
sourceType: "module",
globals: {
...globals.browser,
applyTooltip: "readonly",
AutoScroller: "readonly",
Behaviour: "readonly",
breadcrumbs: "readonly",
buildFormTree: "readonly",
CodeMirror: "readonly",
ComboBox: "readonly",
COMBOBOX_VERSION: "writeable",
crumb: "readonly",
dialog: "readonly",
ensureVisible: "readonly",
escapeHTML: "readonly",
findAncestor: "readonly",
findAncestorClass: "readonly",
findElementsBySelector: "readonly",
findFormParent: "readonly",
fireEvent: "readonly",
Form: "readonly",
FormChecker: "readonly",
getElementOverflowParams: "readonly",
hoverNotification: "readonly",
iota: "writeable",
isInsideRemovable: "readonly",
isPageVisible: "readonly",
isRunAsTest: "readonly",
layoutUpdateCallback: "readonly",
loadScript: "readonly",
makeButton: "readonly",
notificationBar: "readonly",
object: "readonly",
objectToUrlFormEncoded: "readonly",
onSetupWizardInitialized: "readonly",
qs: "readonly",
refillOnChange: "readonly",
refreshPart: "readonly",
registerSortableDragDrop: "readonly",
renderOnDemand: "readonly",
rootURL: "readonly",
safeValidateButton: "readonly",
setupWizardExtensions: "readonly",
SharedArrayBuffer: "readonly",
shortenName: "readonly",
Sortable: "readonly",
toQueryString: "readonly",
TryEach: "readonly",
ts_refresh: "readonly",
updateOptionalBlock: "readonly",
Utilities: "readonly",
UTILITIES_VERSION: "writeable",
YAHOO: "readonly",
updateValidationArea: "readonly",
},
},
},
// Uses eslint default ruleset
js.configs.recommended,
eslintConfigPrettier,
{
rules: {
curly: "error",
},
},
{
files: [
"eslint.config.cjs",
"postcss.config.js",
"webpack.config.js",
".stylelintrc.js",
],
languageOptions: {
globals: {
...globals.node,
},
},
},
];