eslint-config-shiny
Version:
An eslint config that makes your code so clean and polished that it shines!
2 lines (1 loc) • 1.08 kB
JavaScript
import r from"@microsoft/eslint-plugin-sdl";import e from"eslint-plugin-compat";import t from"eslint-plugin-no-unsanitized";import o from"globals";var n=["addEventListener","blur","close","closed","confirm","defaultStatus","defaultstatus","event","external","find","focus","frameElement","frames","history","innerHeight","innerWidth","length","location","locationbar","menubar","moveBy","moveTo","name","onblur","onerror","onfocus","onload","onresize","onunload","open","opener","opera","outerHeight","outerWidth","pageXOffset","pageYOffset","parent","print","removeEventListener","resizeBy","resizeTo","screen","screenLeft","screenTop","screenX","screenY","scroll","scrollbars","scrollBy","scrollTo","scrollX","scrollY","self","status","statusbar","stop","toolbar","top"];function s(){return{apply:{sdl:r},extends:["base"],languageOptions:{globals:[o.browser,o.serviceworker]},name:"web",plugins:{compat:e,"no-unsanitized":t},rules:[e.configs["flat/recommended"],{"no-restricted-globals":[2,...n],"no-unsanitized/method":2,"no-unsanitized/property":2}]}}export{s as default};