diff --git a/.eslintrc.json b/.eslintrc.json new file mode 100644 index 0000000..b6eb35d --- /dev/null +++ b/.eslintrc.json @@ -0,0 +1,33 @@ +{ + "extends": [ + "wikimedia/client", + "wikimedia/jquery", + "wikimedia/mediawiki", + "wikimedia/client-es6" + ], + "globals": { + "require": "readonly", + "module": "readonly", + "OO": "readonly", + "jQuery": "readonly" + }, + "rules": { + "space-before-function-paren": "off", + "no-jquery/no-global-selector": "off", + "vars-on-top": "off", + "one-var": "off", + "no-use-before-define": "off", + "mediawiki/class-doc": "off", + "mediawiki/no-nodelist-unsupported-methods": "off", + "jsdoc/require-param-type": "off", + "es-x/no-classes": "off", + "es-x/no-block-scoped-variables": "off", + "es-x/no-spread-elements": "off", + "es-x/no-default-parameters": "off", + "es-x/no-array-prototype-includes": "off", + "es-x/no-string-prototype-includes": "off", + "es-x/no-array-from": "off", + "es-x/no-template-literals": "off", + "es-x/no-for-of-loops": "off" + } +} diff --git a/package.json b/package.json index f03a704..1450360 100644 --- a/package.json +++ b/package.json @@ -7,6 +7,7 @@ "license": "MIT", "private": true, "devDependencies": { + "eslint-config-wikimedia": "*", "stylelint-config-wikimedia": "*" }, "scripts": { diff --git a/resources/scripts/ext.networknotice.Notice.js b/resources/scripts/ext.networknotice.Notice.js index fccb94c..7f6812e 100644 --- a/resources/scripts/ext.networknotice.Notice.js +++ b/resources/scripts/ext.networknotice.Notice.js @@ -52,5 +52,4 @@ } } ); } - -} ( window, document ) ); +}( window, document ) );