mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 07:05:56 +00:00
silence (or fix) a bunch of eslint warnings
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
/* global dijit */
|
||||
/* eslint-disable prefer-rest-params */
|
||||
/* global dijit, define */
|
||||
define(["dojo/_base/declare", "dijit/form/ComboButton"], function (declare) {
|
||||
return declare("fox.form.ComboButton", dijit.form.ComboButton, {
|
||||
startup: function() {
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
/* global dijit */
|
||||
/* eslint-disable prefer-rest-params */
|
||||
/* global dijit, define */
|
||||
define(["dojo/_base/declare", "dijit/form/DropDownButton"], function (declare) {
|
||||
return declare("fox.form.DropDownButton", dijit.form.DropDownButton, {
|
||||
startup: function() {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* global dijit */
|
||||
/* global dijit, define */
|
||||
define(["dojo/_base/declare", "dijit/form/Select"], function (declare) {
|
||||
return declare("fox.form.Select", dijit.form.Select, {
|
||||
focus: function() {
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
// 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"],
|
||||
function(declare, lang, SimpleTextarea, ValidationTextBox) {
|
||||
@@ -8,6 +10,7 @@ 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);
|
||||
|
||||
Reference in New Issue
Block a user