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: {
|
globals: {
|
||||||
//script.js
|
//script.js
|
||||||
gradioApp: "writable",
|
gradioApp: "readonly",
|
||||||
onUiLoaded: "writable",
|
onUiLoaded: "readonly",
|
||||||
onUiUpdate: "writable",
|
onUiUpdate: "readonly",
|
||||||
onOptionsChanged: "writable",
|
onOptionsChanged: "readonly",
|
||||||
uiCurrentTab: "writable",
|
uiCurrentTab: "writable",
|
||||||
uiElementIsVisible: "writable",
|
uiElementIsVisible: "readonly",
|
||||||
uiElementInSight: "writable",
|
uiElementInSight: "readonly",
|
||||||
executeCallbacks: "writable",
|
executeCallbacks: "readonly",
|
||||||
//ui.js
|
//ui.js
|
||||||
opts: "writable",
|
opts: "writable",
|
||||||
all_gallery_buttons: "writable",
|
all_gallery_buttons: "readonly",
|
||||||
selected_gallery_button: "writable",
|
selected_gallery_button: "readonly",
|
||||||
selected_gallery_index: "writable",
|
selected_gallery_index: "readonly",
|
||||||
args_to_array: "writable",
|
args_to_array: "readonly",
|
||||||
switch_to_txt2img: "writable",
|
switch_to_txt2img: "readonly",
|
||||||
switch_to_img2img_tab: "writable",
|
switch_to_img2img_tab: "readonly",
|
||||||
switch_to_img2img: "writable",
|
switch_to_img2img: "readonly",
|
||||||
switch_to_sketch: "writable",
|
switch_to_sketch: "readonly",
|
||||||
switch_to_inpaint: "writable",
|
switch_to_inpaint: "readonly",
|
||||||
switch_to_inpaint_sketch: "writable",
|
switch_to_inpaint_sketch: "readonly",
|
||||||
switch_to_extras: "writable",
|
switch_to_extras: "readonly",
|
||||||
get_tab_index: "writable",
|
get_tab_index: "readonly",
|
||||||
create_submit_args: "writable",
|
create_submit_args: "readonly",
|
||||||
restart_reload: "writable",
|
restart_reload: "readonly",
|
||||||
updateInput: "writable",
|
updateInput: "readonly",
|
||||||
//extraNetworks.js
|
//extraNetworks.js
|
||||||
requestGet: "writable",
|
requestGet: "readonly",
|
||||||
popup: "writable",
|
popup: "readonly",
|
||||||
// from python
|
// from python
|
||||||
localization: "writable",
|
localization: "readonly",
|
||||||
// progrssbar.js
|
// progrssbar.js
|
||||||
randomId: "writable",
|
randomId: "readonly",
|
||||||
requestProgress: "writable",
|
requestProgress: "readonly",
|
||||||
// imageviewer.js
|
// imageviewer.js
|
||||||
modalPrevImage: "writable",
|
modalPrevImage: "readonly",
|
||||||
modalNextImage: "writable",
|
modalNextImage: "readonly",
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user