Skip to content

Commit 4c0bb94

Browse files
committed
Remove some globals from .eslintrc.json file
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
1 parent f7addc2 commit 4c0bb94

18 files changed

Lines changed: 38 additions & 14 deletions

.eslintrc.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,8 @@
1515
"jquery": true
1616
},
1717
"globals": {
18-
"Cookies": "readonly",
1918
"Functions": "readonly",
20-
"Messages": "readonly",
21-
"Navigation": "readonly",
22-
"OpenLayers": "readonly",
23-
"Sql": "readonly"
19+
"Messages": "readonly"
2420
},
2521
"rules": {
2622
"valid-jsdoc": ["error", {

js/src/ajax.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/* global Navigation */
2+
13
/**
24
* This object handles ajax requests for pages. It also
35
* handles the reloading of the main menu and scripts.

js/src/common.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/* global Navigation */
2+
13
/**
24
* Holds common parameters such as server, db, table, etc
35
*

js/src/database/events.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/* global Navigation */
2+
13
window.AJAX.registerTeardown('database/events.js', function () {
24
$(document).off('click', 'a.ajax.add_anchor, a.ajax.edit_anchor');
35
$(document).off('click', 'a.ajax.export_anchor');

js/src/database/operations.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/* global Navigation */
2+
13
/**
24
* @fileoverview function used in server privilege pages
35
* @name Database Operations

js/src/database/routines.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/* global Navigation */
2+
13
window.AJAX.registerTeardown('database/routines.js', function () {
24
$(document).off('click', 'a.ajax.add_anchor');
35
$(document).off('click', 'a.ajax.edit_anchor');

js/src/database/structure.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/* global Navigation */
2+
13
/**
24
* @fileoverview functions used on the database structure page
35
* @name Database Structure

js/src/database/triggers.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/* global Navigation */
2+
13
window.AJAX.registerTeardown('database/triggers.js', function () {
24
$(document).off('click', 'a.ajax.add_anchor, a.ajax.edit_anchor');
35
$(document).off('click', 'a.ajax.export_anchor');

js/src/functions.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* global Navigation */
12
/* global isStorageSupported */ // js/config.js
23
/* global ChartType, ColumnType, DataTable, JQPlotChartFactory */ // js/chart.js
34
/* global DatabaseStructure */ // js/database/structure.js

js/src/indexes.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/* global Navigation */
2+
13
/**
24
* @fileoverview function used for index manipulation pages
35
* @name Table Structure

0 commit comments

Comments
 (0)