Skip to content

Commit

Permalink
fix linter errors (wikimedia-gadgets#357)
Browse files Browse the repository at this point in the history
  • Loading branch information
NovemLinguae authored May 14, 2024
1 parent 1bb0b91 commit d4d8ef6
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
5 changes: 0 additions & 5 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@
"rules": {
"camelcase": "off",
"eqeqeq": "warn",
"jsdoc/require-param": "warn",
"jsdoc/require-param-type": "warn",
"jsdoc/require-returns": "warn",
"max-len": "off",
"no-console": "off",
"no-global-assign": "warn",
Expand All @@ -27,8 +24,6 @@
"no-shadow": "off",
"no-undef": "warn",
"no-underscore-dangle": "off",
"no-unused-vars": "warn",
"no-use-before-define": "warn",
"security/detect-non-literal-regexp": "off",
"security/detect-unsafe-regex": "off",
"unicorn/prefer-string-slice": "off"
Expand Down
2 changes: 1 addition & 1 deletion src/modules/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -1806,7 +1806,7 @@
* If there is no match, return false
*
* @param {string} string string to parse
* @param mwstyle
* @param {boolean} mwstyle convert to a mediawiki-style timestamp?
* @return {Date|number}
*/
parseForTimestamp: function ( string, mwstyle ) {
Expand Down
3 changes: 3 additions & 0 deletions src/modules/submissions.js
Original file line number Diff line number Diff line change
Expand Up @@ -673,6 +673,7 @@
* specified by `new`
*
* @param {string} newCode
* @return {string}
*/
AFCH.Text.prototype.updateAfcTemplates = function ( newCode ) {
this.removeAfcTemplates();
Expand Down Expand Up @@ -1332,6 +1333,8 @@
);

// Show a link to the next random submissions
// We need "new" here because Element uses "this." and needs the right context.
// eslint-disable-next-line no-new
new AFCH.status.Element( 'Continue to next $1 or $2 »', {
$1: AFCH.makeLinkElementToCategory( 'Pending AfC submissions', 'random submission' ),
$2: AFCH.makeLinkElementToCategory( 'AfC pending submissions by age/0 days ago', 'zero-day-old submission' )
Expand Down
2 changes: 2 additions & 0 deletions tests/scaffold.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
* the actual tests themselves.
*/

/* eslint-env jest, node */

jest.autoMockOff();

fs = require( 'fs' );
Expand Down

0 comments on commit d4d8ef6

Please sign in to comment.