mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2024-06-07 21:20:49 +00:00
eslintrc: mark most globals read-only
This commit is contained in:
parent
958d68fb14
commit
247f371d3e
58
.eslintrc.js
58
.eslintrc.js
@ -49,41 +49,41 @@ module.exports = {
|
||||
},
|
||||
globals: {
|
||||
//script.js
|
||||
gradioApp: "writable",
|
||||
onUiLoaded: "writable",
|
||||
onUiUpdate: "writable",
|
||||
onOptionsChanged: "writable",
|
||||
gradioApp: "readonly",
|
||||
onUiLoaded: "readonly",
|
||||
onUiUpdate: "readonly",
|
||||
onOptionsChanged: "readonly",
|
||||
uiCurrentTab: "writable",
|
||||
uiElementIsVisible: "writable",
|
||||
uiElementInSight: "writable",
|
||||
executeCallbacks: "writable",
|
||||
uiElementIsVisible: "readonly",
|
||||
uiElementInSight: "readonly",
|
||||
executeCallbacks: "readonly",
|
||||
//ui.js
|
||||
opts: "writable",
|
||||
all_gallery_buttons: "writable",
|
||||
selected_gallery_button: "writable",
|
||||
selected_gallery_index: "writable",
|
||||
args_to_array: "writable",
|
||||
switch_to_txt2img: "writable",
|
||||
switch_to_img2img_tab: "writable",
|
||||
switch_to_img2img: "writable",
|
||||
switch_to_sketch: "writable",
|
||||
switch_to_inpaint: "writable",
|
||||
switch_to_inpaint_sketch: "writable",
|
||||
switch_to_extras: "writable",
|
||||
get_tab_index: "writable",
|
||||
create_submit_args: "writable",
|
||||
restart_reload: "writable",
|
||||
updateInput: "writable",
|
||||
all_gallery_buttons: "readonly",
|
||||
selected_gallery_button: "readonly",
|
||||
selected_gallery_index: "readonly",
|
||||
args_to_array: "readonly",
|
||||
switch_to_txt2img: "readonly",
|
||||
switch_to_img2img_tab: "readonly",
|
||||
switch_to_img2img: "readonly",
|
||||
switch_to_sketch: "readonly",
|
||||
switch_to_inpaint: "readonly",
|
||||
switch_to_inpaint_sketch: "readonly",
|
||||
switch_to_extras: "readonly",
|
||||
get_tab_index: "readonly",
|
||||
create_submit_args: "readonly",
|
||||
restart_reload: "readonly",
|
||||
updateInput: "readonly",
|
||||
//extraNetworks.js
|
||||
requestGet: "writable",
|
||||
popup: "writable",
|
||||
requestGet: "readonly",
|
||||
popup: "readonly",
|
||||
// from python
|
||||
localization: "writable",
|
||||
localization: "readonly",
|
||||
// progrssbar.js
|
||||
randomId: "writable",
|
||||
requestProgress: "writable",
|
||||
randomId: "readonly",
|
||||
requestProgress: "readonly",
|
||||
// imageviewer.js
|
||||
modalPrevImage: "writable",
|
||||
modalNextImage: "writable",
|
||||
modalPrevImage: "readonly",
|
||||
modalNextImage: "readonly",
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user