Skip to content

Commit

Permalink
add eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
liquidely committed May 2, 2024
1 parent b807da4 commit 288e963
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 2 deletions.
33 changes: 33 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -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"
}
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"license": "MIT",
"private": true,
"devDependencies": {
"eslint-config-wikimedia": "*",
"stylelint-config-wikimedia": "*"
},
"scripts": {
Expand Down
3 changes: 1 addition & 2 deletions resources/scripts/ext.networknotice.Notice.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,4 @@
}
} );
}

} ( window, document ) );
}( window, document ) );

0 comments on commit 288e963

Please sign in to comment.