| 
									
										
										
										
											2024-04-24 03:16:30 +08:00
										 |  |  | 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
 | 
					
						
							| 
									
										
										
										
											2024-09-16 17:40:32 +08:00
										 |  |  |       ".pnp.cjs", | 
					
						
							|  |  |  |       ".pnp.loader.mjs", | 
					
						
							| 
									
										
										
										
											2024-10-13 02:46:18 +08:00
										 |  |  |       "src/main/js/plugin-setup-wizard/bootstrap-detached.js", | 
					
						
							| 
									
										
										
										
											2024-04-24 03:16:30 +08:00
										 |  |  |     ], | 
					
						
							|  |  |  |   }, | 
					
						
							|  |  |  |   { | 
					
						
							|  |  |  |     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", | 
					
						
							| 
									
										
										
										
											2024-08-14 14:27:24 +08:00
										 |  |  |         FormChecker: "readonly", | 
					
						
							| 
									
										
										
										
											2024-04-24 03:16:30 +08:00
										 |  |  |         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", | 
					
						
							| 
									
										
										
										
											2024-11-11 23:09:21 +08:00
										 |  |  |         qs: "readonly", | 
					
						
							| 
									
										
										
										
											2024-04-24 03:16:30 +08:00
										 |  |  |         refillOnChange: "readonly", | 
					
						
							|  |  |  |         refreshPart: "readonly", | 
					
						
							|  |  |  |         registerSortableDragDrop: "readonly", | 
					
						
							|  |  |  |         renderOnDemand: "readonly", | 
					
						
							|  |  |  |         rootURL: "readonly", | 
					
						
							|  |  |  |         safeValidateButton: "readonly", | 
					
						
							|  |  |  |         setupWizardExtensions: "readonly", | 
					
						
							|  |  |  |         SharedArrayBuffer: "readonly", | 
					
						
							|  |  |  |         shortenName: "readonly", | 
					
						
							|  |  |  |         Sortable: "readonly", | 
					
						
							|  |  |  |         toQueryString: "readonly", | 
					
						
							| 
									
										
										
										
											2024-11-11 23:09:21 +08:00
										 |  |  |         TryEach: "readonly", | 
					
						
							| 
									
										
										
										
											2024-04-24 03:16:30 +08:00
										 |  |  |         ts_refresh: "readonly", | 
					
						
							|  |  |  |         updateOptionalBlock: "readonly", | 
					
						
							|  |  |  |         Utilities: "readonly", | 
					
						
							|  |  |  |         UTILITIES_VERSION: "writeable", | 
					
						
							|  |  |  |         YAHOO: "readonly", | 
					
						
							|  |  |  |       }, | 
					
						
							|  |  |  |     }, | 
					
						
							|  |  |  |   }, | 
					
						
							|  |  |  |   // Uses eslint default ruleset
 | 
					
						
							|  |  |  |   js.configs.recommended, | 
					
						
							|  |  |  |   eslintConfigPrettier, | 
					
						
							|  |  |  |   { | 
					
						
							|  |  |  |     rules: { | 
					
						
							|  |  |  |       curly: "error", | 
					
						
							|  |  |  |     }, | 
					
						
							|  |  |  |   }, | 
					
						
							|  |  |  |   { | 
					
						
							|  |  |  |     files: [ | 
					
						
							|  |  |  |       "eslint.config.cjs", | 
					
						
							| 
									
										
										
										
											2024-10-13 02:46:18 +08:00
										 |  |  |       "postcss.config.js", | 
					
						
							|  |  |  |       "webpack.config.js", | 
					
						
							| 
									
										
										
										
											2024-09-16 17:40:32 +08:00
										 |  |  |       ".stylelintrc.js", | 
					
						
							| 
									
										
										
										
											2024-04-24 03:16:30 +08:00
										 |  |  |     ], | 
					
						
							|  |  |  |     languageOptions: { | 
					
						
							|  |  |  |       globals: { | 
					
						
							|  |  |  |         ...globals.node, | 
					
						
							|  |  |  |       }, | 
					
						
							|  |  |  |     }, | 
					
						
							|  |  |  |   }, | 
					
						
							|  |  |  | ]; |