Skip to content

Commit

Permalink
Fix eslint with jsdoc errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mooeypoo committed May 2, 2021
1 parent 900a8bc commit 10a4574
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
16 changes: 12 additions & 4 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"extends": [
"wikimedia/server"
],
"parser": "babel-eslint",
"parser": "babel-eslint",
"globals": {
"SpreadsheetApp": "readonly",
"ContentService": "readonly"
Expand All @@ -14,13 +14,13 @@
"jsdoc"
],
"ignorePatterns": [
"test/*",
"demos/*",
"test/*",
"demos/*",
"node_modules/*",
"docs/*"
],
"rules": {
"indent": ["error", 2],
"indent": ["error", 2],
"camelcase": [
"error",
{
Expand All @@ -43,6 +43,14 @@
"as-needed"
],
"jsdoc/check-alignment": 1,
"jsdoc/no-undefined-types": [
"error",
{
"definedTypes": [
"Document"
]
}
],
"jsdoc/require-jsdoc": [
"error",
{
Expand Down
4 changes: 2 additions & 2 deletions src/DomWordReplacer.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ class DomWordReplacer {
*/
replace(htmlString, dictKeyFrom, dictKeyTo, options = {}) {
return this.manager.replace(
htmlString,
dictKeyFrom,
htmlString,
dictKeyFrom,
dictKeyTo,
options
);
Expand Down

0 comments on commit 10a4574

Please sign in to comment.