Skip to content

Commit

Permalink
lint: Remove 133 instances of /* global {pgk} */
Browse files Browse the repository at this point in the history
globally defined packages are specified in eslint config

Issue #2096
  • Loading branch information
robyngit committed May 20, 2024
1 parent 506bd31 commit 7264677
Show file tree
Hide file tree
Showing 134 changed files with 4 additions and 146 deletions.
6 changes: 0 additions & 6 deletions .vscode/settings.json

This file was deleted.

2 changes: 0 additions & 2 deletions src/js/app.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/*global require */
/*jshint unused:false */
"use strict";

MetacatUI.recaptchaURL =
Expand Down
1 change: 0 additions & 1 deletion src/js/collections/Citations.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* global define */
"use strict";

define(["jquery", "underscore", "backbone", "models/CitationModel"], function (
Expand Down
3 changes: 1 addition & 2 deletions src/js/collections/DataPackage.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/* global define */
"use strict";
"use strict";

define([
"jquery",
Expand Down
1 change: 0 additions & 1 deletion src/js/collections/ObjectFormats.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* global define */
"use strict";

define([
Expand Down
1 change: 0 additions & 1 deletion src/js/collections/ProjectList.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* global define */
"use strict";
define(["jquery", "backbone", "models/projects/Project"], function (
$,
Expand Down
1 change: 0 additions & 1 deletion src/js/collections/QualityReport.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* global define */
define([
"jquery",
"underscore",
Expand Down
1 change: 0 additions & 1 deletion src/js/collections/SolrResults.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/*global define */
define([
"jquery",
"underscore",
Expand Down
1 change: 0 additions & 1 deletion src/js/collections/UserGroup.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/*global define */
define(["jquery", "underscore", "backbone", "models/UserModel"], function (
$,
_,
Expand Down
1 change: 0 additions & 1 deletion src/js/collections/queryFields/QueryFields.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* global define */
define([
"jquery",
"underscore",
Expand Down
1 change: 0 additions & 1 deletion src/js/common/IconUtilities.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/*global define */
define([
"models/portals/PortalImage",
"showdown",
Expand Down
1 change: 0 additions & 1 deletion src/js/common/Utilities.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/*global define */
define(["jquery", "underscore"], function ($, _) {
"use strict";

Expand Down
1 change: 0 additions & 1 deletion src/js/models/AccessRule.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/*global define */
define(["jquery", "underscore", "backbone"], function ($, _, Backbone) {
"use strict";

Expand Down
1 change: 0 additions & 1 deletion src/js/models/AppModel.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/*global define */
define(["jquery", "underscore", "backbone"], function ($, _, Backbone) {
"use strict";

Expand Down
1 change: 0 additions & 1 deletion src/js/models/CitationModel.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* global define */
"use strict";

define(["jquery", "underscore", "backbone", "collections/Citations"], function (
Expand Down
1 change: 0 additions & 1 deletion src/js/models/CollectionModel.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* global define */
define([
"jquery",
"underscore",
Expand Down
1 change: 0 additions & 1 deletion src/js/models/DataONEObject.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* global define */
define([
"jquery",
"underscore",
Expand Down
1 change: 0 additions & 1 deletion src/js/models/LogsSearch.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/*global define */
define(["jquery", "underscore", "backbone", "models/Search"], function (
$,
_,
Expand Down
1 change: 0 additions & 1 deletion src/js/models/LookupModel.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/*global define */
define(["jquery", "jqueryui", "underscore", "backbone"], function (
$,
$ui,
Expand Down
1 change: 0 additions & 1 deletion src/js/models/Map.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/*global define */
define(["jquery", "underscore", "backbone", "gmaps"], function (
$,
_,
Expand Down
1 change: 0 additions & 1 deletion src/js/models/MetricsModel.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/*global define */
define(["jquery", "underscore", "backbone"], function ($, _, Backbone) {
"use strict";

Expand Down
1 change: 0 additions & 1 deletion src/js/models/NodeModel.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/*global define */
define(["jquery", "underscore", "backbone"], function ($, _, Backbone) {
"use strict";

Expand Down
1 change: 0 additions & 1 deletion src/js/models/PackageModel.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/*global define */
define([
"jquery",
"underscore",
Expand Down
1 change: 0 additions & 1 deletion src/js/models/QualityCheckModel.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* global define */
"use strict";

define(["jquery", "underscore", "backbone"], function ($, _, Backbone) {
Expand Down
1 change: 0 additions & 1 deletion src/js/models/Search.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/*global define */
define([
"jquery",
"underscore",
Expand Down
1 change: 0 additions & 1 deletion src/js/models/SolrHeader.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/*global define */
define(["jquery", "underscore", "backbone"], function ($, _, Backbone) {
"use strict";

Expand Down
1 change: 0 additions & 1 deletion src/js/models/SolrResult.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/*global define */
define(["jquery", "underscore", "backbone"], function ($, _, Backbone) {
/**
* @class SolrResult
Expand Down
1 change: 0 additions & 1 deletion src/js/models/Stats.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/*global define */
define(["jquery", "underscore", "backbone", "promise"], function (
$,
_,
Expand Down
1 change: 0 additions & 1 deletion src/js/models/UserModel.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/*global define */
define([
"jquery",
"underscore",
Expand Down
1 change: 0 additions & 1 deletion src/js/models/analytics/Analytics.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* global define */
define(["backbone"], function (Backbone) {
/**
* @class Analytics
Expand Down
1 change: 0 additions & 1 deletion src/js/models/analytics/GoogleAnalytics.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* global define */
define(["models/analytics/Analytics"], function (Analytics) {
/**
* @class GoogleAnalytics
Expand Down
1 change: 0 additions & 1 deletion src/js/models/bookkeeper/Quota.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* global define */
define(["jquery", "underscore", "backbone"], function ($, _, Backbone) {
/**
* @classdesc A Quota Model represents a single instance of a Quota object from the
Expand Down
1 change: 0 additions & 1 deletion src/js/models/bookkeeper/Subscription.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* global define */
define(["jquery", "underscore", "backbone"], function ($, _, Backbone) {
/**
* @classdesc A Subscription Model represents a single instance of a Subscription object from the
Expand Down
1 change: 0 additions & 1 deletion src/js/models/bookkeeper/Usage.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* global define */
define(["jquery", "underscore", "backbone"], function ($, _, Backbone) {
/**
* @classdesc A Usage Model represents a single instance of a Usage object from the
Expand Down
1 change: 0 additions & 1 deletion src/js/models/connectors/Filters-Map.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/*global define */
define(["backbone", "collections/Filters", "models/maps/Map"], function (
Backbone,
Filters,
Expand Down
1 change: 0 additions & 1 deletion src/js/models/connectors/Filters-Search.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/*global define */
define([
"backbone",
"collections/Filters",
Expand Down
1 change: 0 additions & 1 deletion src/js/models/connectors/GeoPoints-Cesium.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"use strict";

/*global define */
define([
"backbone",
"cesium",
Expand Down
1 change: 0 additions & 1 deletion src/js/models/connectors/GeoPoints-CesiumPoints.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"use strict";

/*global define */
define(["cesium", "models/connectors/GeoPoints-Cesium"], function (
Cesium,
GeoPointsCesiumConnector,
Expand Down
1 change: 0 additions & 1 deletion src/js/models/connectors/GeoPoints-CesiumPolygon.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"use strict";

/*global define */
define(["cesium", "models/connectors/GeoPoints-Cesium"], function (
Cesium,
GeoPointsCesiumConnector,
Expand Down
1 change: 0 additions & 1 deletion src/js/models/connectors/Map-Search-Filters.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/*global define */
define([
"backbone",
"models/maps/Map",
Expand Down
1 change: 0 additions & 1 deletion src/js/models/connectors/Map-Search.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/*global define */
define(["backbone", "models/maps/Map", "collections/SolrResults"], function (
Backbone,
Map,
Expand Down
1 change: 0 additions & 1 deletion src/js/models/filters/BooleanFilter.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* global define */
define(["jquery", "underscore", "backbone", "models/filters/Filter"], function (
$,
_,
Expand Down
1 change: 0 additions & 1 deletion src/js/models/filters/ChoiceFilter.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* global define */
define(["jquery", "underscore", "backbone", "models/filters/Filter"], function (
$,
_,
Expand Down
1 change: 0 additions & 1 deletion src/js/models/filters/DateFilter.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* global define */
define(["jquery", "underscore", "backbone", "models/filters/Filter"], function (
$,
_,
Expand Down
1 change: 0 additions & 1 deletion src/js/models/filters/Filter.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* global define */
define(["jquery", "underscore", "backbone"], function ($, _, Backbone) {
/**
* @class Filter
Expand Down
1 change: 0 additions & 1 deletion src/js/models/filters/FilterGroup.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* global define */
define([
"jquery",
"underscore",
Expand Down
1 change: 0 additions & 1 deletion src/js/models/filters/NumericFilter.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* global define */
define(["jquery", "underscore", "backbone", "models/filters/Filter"], function (
$,
_,
Expand Down
1 change: 0 additions & 1 deletion src/js/models/filters/ToggleFilter.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* global define */
define(["jquery", "underscore", "backbone", "models/filters/Filter"], function (
$,
_,
Expand Down
1 change: 0 additions & 1 deletion src/js/models/formats/ObjectFormat.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* global define */
"use strict";

define(["jquery", "underscore", "backbone"], function ($, _, Backbone) {
Expand Down
3 changes: 1 addition & 2 deletions src/js/models/metadata/ScienceMetadata.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/* global define */
define(["jquery", "underscore", "backbone", "models/DataONEObject"], function (
define(["jquery", "underscore", "backbone", "models/DataONEObject"], function (
$,
_,
Backbone,
Expand Down
1 change: 0 additions & 1 deletion src/js/models/metadata/eml/EMLMethodStep.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* global define */
var required = [
"jquery",
"underscore",
Expand Down
1 change: 0 additions & 1 deletion src/js/models/metadata/eml/EMLSpecializedText.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* global define */
define([
"jquery",
"underscore",
Expand Down
1 change: 0 additions & 1 deletion src/js/models/metadata/eml211/EML211.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* global define */
define([
"jquery",
"underscore",
Expand Down
1 change: 0 additions & 1 deletion src/js/models/metadata/eml211/EMLDistribution.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* global define */
define(["jquery", "underscore", "backbone", "models/DataONEObject"], function (
$,
_,
Expand Down
1 change: 0 additions & 1 deletion src/js/models/metadata/eml211/EMLGeoCoverage.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* global define */
define(["jquery", "underscore", "backbone", "models/DataONEObject"], function (
$,
_,
Expand Down
1 change: 0 additions & 1 deletion src/js/models/metadata/eml211/EMLKeywordSet.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* global define */
define(["jquery", "underscore", "backbone", "models/DataONEObject"], function (
$,
_,
Expand Down
1 change: 0 additions & 1 deletion src/js/models/metadata/eml211/EMLMethods.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* global define */
define([
"jquery",
"underscore",
Expand Down
1 change: 0 additions & 1 deletion src/js/models/metadata/eml211/EMLParty.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* global define */
define(["jquery", "underscore", "backbone", "models/DataONEObject"], function (
$,
_,
Expand Down
1 change: 0 additions & 1 deletion src/js/models/metadata/eml211/EMLProject.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* global define */
define([
"jquery",
"underscore",
Expand Down
1 change: 0 additions & 1 deletion src/js/models/metadata/eml211/EMLTaxonCoverage.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* global define */
define(["jquery", "underscore", "backbone", "models/DataONEObject"], function (
$,
_,
Expand Down
1 change: 0 additions & 1 deletion src/js/models/metadata/eml211/EMLTemporalCoverage.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* global define */
define(["jquery", "underscore", "backbone", "models/DataONEObject"], function (
$,
_,
Expand Down
1 change: 0 additions & 1 deletion src/js/models/metadata/eml211/EMLText.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* global define */
define(["jquery", "underscore", "backbone", "models/DataONEObject"], function (
$,
_,
Expand Down
1 change: 0 additions & 1 deletion src/js/models/metadata/eml220/EMLText.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* global define */
define([
"jquery",
"underscore",
Expand Down
1 change: 0 additions & 1 deletion src/js/models/portals/PortalImage.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* global define */
define(["jquery", "underscore", "backbone", "models/DataONEObject"], function (
$,
_,
Expand Down
1 change: 0 additions & 1 deletion src/js/models/portals/PortalModel.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/**
* @exports PortalModel
*/
/* global define */
define([
"jquery",
"underscore",
Expand Down
1 change: 0 additions & 1 deletion src/js/models/portals/PortalSectionModel.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* global define */
define([
"jquery",
"underscore",
Expand Down
1 change: 0 additions & 1 deletion src/js/models/portals/PortalVizSectionModel.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* global define */
define([
"jquery",
"underscore",
Expand Down
1 change: 0 additions & 1 deletion src/js/models/queryFields/QueryField.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* global define */
define(["jquery", "underscore", "backbone"], function ($, _, Backbone) {
"use strict";

Expand Down
1 change: 0 additions & 1 deletion src/js/routers/router.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/*global Backbone */
"use strict";

define(["jquery", "underscore", "backbone"], function ($, _, Backbone) {
Expand Down
1 change: 0 additions & 1 deletion src/js/themes/arctic/models/Map.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/*global define */
define(["jquery", "underscore", "backbone", "gmaps"], function (
$,
_,
Expand Down
1 change: 0 additions & 1 deletion src/js/themes/arctic/routers/router.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/*global Backbone */
"use strict";

define(["jquery", "underscore", "backbone"], function ($, _, Backbone) {
Expand Down
1 change: 0 additions & 1 deletion src/js/themes/dataone/routers/router.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/*global Backbone */
"use strict";

define(["jquery", "underscore", "backbone", "routers/BaseRouter"], function (
Expand Down
1 change: 0 additions & 1 deletion src/js/views/AltHeaderView.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/*global define */
define([
"jquery",
"underscore",
Expand Down
1 change: 0 additions & 1 deletion src/js/views/AnnotationView.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/*global define */
define([
"jquery",
"underscore",
Expand Down
3 changes: 1 addition & 2 deletions src/js/views/AppView.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/*global define */
define([
define([
"jquery",
"underscore",
"backbone",
Expand Down
1 change: 0 additions & 1 deletion src/js/views/BarChartView.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/*global define */
define(["jquery", "underscore", "backbone", "d3"], function (
$,
_,
Expand Down
Loading

0 comments on commit 7264677

Please sign in to comment.