mirror of
https://git.tt-rss.org/fox/tt-rss.git
synced 2025-10-14 20:40:59 +02:00
Clean up unnecessary eslint-disable directives (per ESLint).
This commit is contained in:
parent
7211d34684
commit
cde120b3d7
@ -1,6 +1,5 @@
|
||||
'use strict';
|
||||
|
||||
/* eslint-disable new-cap */
|
||||
/* global __, Article, Headlines, Filters, fox */
|
||||
/* global xhr, PluginHost, Notify, Feeds, Cookie */
|
||||
/* global CommonDialogs, Plugins */
|
||||
|
@ -1,6 +1,5 @@
|
||||
'use strict'
|
||||
|
||||
/* eslint-disable no-new */
|
||||
/* global __, ngettext, App, Headlines, xhr, PluginHost, Notify, fox */
|
||||
|
||||
const Article = {
|
||||
|
@ -1,8 +1,5 @@
|
||||
'use strict'
|
||||
|
||||
/* eslint-disable new-cap */
|
||||
/* eslint-disable no-new */
|
||||
|
||||
/* global __, Notify, App, Feeds, xhr, Tables, fox */
|
||||
|
||||
/* exported CommonDialogs */
|
||||
|
@ -1,7 +1,5 @@
|
||||
'use strict'
|
||||
|
||||
/* eslint-disable no-new */
|
||||
|
||||
/* global __, App, Article, Lists, fox */
|
||||
/* global xhr, Notify, Feeds */
|
||||
|
||||
|
@ -1,4 +1,3 @@
|
||||
/* eslint-disable prefer-rest-params */
|
||||
/* global __, define, App, Feeds, CommonDialogs */
|
||||
|
||||
define(["dojo/_base/declare", "dojo/dom-construct", "dojo/_base/array", "dojo/cookie", "dijit/Tree", "dijit/Menu"], function (declare, domConstruct, array, cookie) {
|
||||
@ -208,7 +207,6 @@ define(["dojo/_base/declare", "dojo/dom-construct", "dojo/_base/array", "dojo/co
|
||||
return [item.updated, item.error].filter((x) => x && x !== "").join(" - ");
|
||||
},
|
||||
getIconClass: function (item, opened) {
|
||||
// eslint-disable-next-line no-nested-ternary
|
||||
return (!item || this.model.mayHaveChildren(item)) ? (opened ? "dijitFolderOpened" : "dijitFolderClosed") : "feed-icon";
|
||||
},
|
||||
getLabelClass: function (item/* , opened */) {
|
||||
|
@ -228,7 +228,6 @@ const Headlines = {
|
||||
} else if (event.ctrlKey) {
|
||||
Headlines.select('invert', id);
|
||||
} else {
|
||||
// eslint-disable-next-line no-lonely-if
|
||||
if (App.isCombinedMode()) {
|
||||
|
||||
if (event.altKey && !in_body) {
|
||||
@ -268,7 +267,6 @@ const Headlines = {
|
||||
|
||||
return in_body;
|
||||
} else {
|
||||
// eslint-disable-next-line no-lonely-if
|
||||
if (event.altKey) {
|
||||
Article.openInNewWindow(id);
|
||||
Headlines.toggleUnread(id, 0);
|
||||
|
@ -1,4 +1,3 @@
|
||||
/* eslint-disable prefer-rest-params */
|
||||
/* global __, lib, define, CommonDialogs, Notify, Tables, xhr, fox, App */
|
||||
|
||||
define(["dojo/_base/declare", "dojo/dom-construct", "lib/CheckBoxTree", "dojo/_base/array", "dojo/cookie"],
|
||||
@ -143,7 +142,6 @@ define(["dojo/_base/declare", "dojo/dom-construct", "lib/CheckBoxTree", "dojo/_b
|
||||
return rc;
|
||||
},
|
||||
getIconClass: function (item, opened) {
|
||||
// eslint-disable-next-line no-nested-ternary
|
||||
return (!item || this.model.store.getValue(item, 'type') === 'category') ? (opened ? "dijitFolderOpened" : "dijitFolderClosed") : "feed-icon";
|
||||
},
|
||||
reload: function() {
|
||||
|
@ -1,4 +1,3 @@
|
||||
/* eslint-disable prefer-rest-params */
|
||||
/* global __, define, lib, xhr, App, Notify, Filters */
|
||||
|
||||
define(["dojo/_base/declare", "dojo/dom-construct", "lib/CheckBoxTree"], function (declare, domConstruct) {
|
||||
@ -71,7 +70,6 @@ define(["dojo/_base/declare", "dojo/dom-construct", "lib/CheckBoxTree"], functio
|
||||
return label;
|
||||
},
|
||||
getIconClass: function (item, opened) {
|
||||
// eslint-disable-next-line no-nested-ternary
|
||||
return (!item || this.model.mayHaveChildren(item)) ? (opened ? "dijitFolderOpened" : "dijitFolderClosed") : "invisible";
|
||||
},
|
||||
getRowClass: function (item, opened) {
|
||||
|
@ -1,6 +1,5 @@
|
||||
'use strict';
|
||||
|
||||
/* eslint-disable no-new */
|
||||
/* global __, Tables, Notify, xhr, App, fox */
|
||||
|
||||
const Helpers = {
|
||||
|
@ -1,4 +1,3 @@
|
||||
/* eslint-disable prefer-rest-params */
|
||||
/* global __, define, lib, xhr, Notify, fox, App */
|
||||
|
||||
define(["dojo/_base/declare", "dojo/dom-construct", "lib/CheckBoxTree", "dijit/form/DropDownButton"], function (declare, domConstruct) {
|
||||
@ -40,7 +39,6 @@ define(["dojo/_base/declare", "dojo/dom-construct", "lib/CheckBoxTree", "dijit/f
|
||||
return tnode;
|
||||
},
|
||||
getIconClass: function (item, opened) {
|
||||
// eslint-disable-next-line no-nested-ternary
|
||||
return (!item || this.model.mayHaveChildren(item)) ? (opened ? "dijitFolderOpened" : "dijitFolderClosed") : "invisible";
|
||||
},
|
||||
getSelectedLabels: function() {
|
||||
|
@ -1,4 +1,3 @@
|
||||
/* eslint-disable prefer-rest-params */
|
||||
/* global define */
|
||||
define(["dojo/_base/declare", "dijit/Dialog"], function (declare) {
|
||||
return declare("fox.SingleUseDialog", dijit.Dialog, {
|
||||
|
@ -1,7 +1,6 @@
|
||||
'use strict';
|
||||
|
||||
/* global App, __csrf_token */
|
||||
/* eslint-disable no-new */
|
||||
|
||||
/* exported __ */
|
||||
function __(msg) {
|
||||
|
@ -1,4 +1,3 @@
|
||||
/* eslint-disable prefer-rest-params */
|
||||
/* global define */
|
||||
define(["dojo/_base/declare", "dijit/form/ComboButton"], function (declare) {
|
||||
return declare("fox.form.ComboButton", dijit.form.ComboButton, {
|
||||
|
@ -1,4 +1,3 @@
|
||||
/* eslint-disable prefer-rest-params */
|
||||
/* global define */
|
||||
define(["dojo/_base/declare", "dijit/form/DropDownButton"], function (declare) {
|
||||
return declare("fox.form.DropDownButton", dijit.form.DropDownButton, {
|
||||
|
@ -1,4 +1,3 @@
|
||||
/* eslint-disable prefer-rest-params */
|
||||
/* global define */
|
||||
// FIXME: there probably is a better, more dojo-like notation for custom data- properties
|
||||
define(["dojo/_base/declare",
|
||||
|
@ -1,5 +1,4 @@
|
||||
// https://stackoverflow.com/questions/19317258/how-to-use-dijit-textarea-validation-dojo-1-9
|
||||
/* eslint-disable no-new */
|
||||
/* global define */
|
||||
|
||||
define(["dojo/_base/declare", "dojo/_base/lang", "dijit/form/SimpleTextarea", "dijit/form/ValidationTextBox"],
|
||||
@ -10,7 +9,6 @@ define(["dojo/_base/declare", "dojo/_base/lang", "dijit/form/SimpleTextarea", "d
|
||||
this.constraints = {};
|
||||
this.baseClass += ' dijitValidationTextArea';
|
||||
},
|
||||
// eslint-disable-next-line no-template-curly-in-string
|
||||
templateString: "<textarea ${!nameAttrSetting} data-dojo-attach-point='focusNode,containerNode,textbox' autocomplete='off'></textarea>",
|
||||
validator: function(value, constraints) {
|
||||
//console.log(this, value, constraints);
|
||||
|
Loading…
x
Reference in New Issue
Block a user