Skip to content

Commit

Permalink
enable no-var rule
Browse files Browse the repository at this point in the history
  • Loading branch information
dimaMachina committed Feb 25, 2023
1 parent c4b480e commit d0ed108
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ module.exports = {
'sonarjs/no-identical-functions': 'error',
'sonarjs/no-unused-collection': 'error',
'sonarjs/no-extra-arguments': 'error',

'no-var': 'error',
// Strict Mode (http://eslint.org/docs/rules/#strict-mode)
strict: 0,

Expand Down
6 changes: 3 additions & 3 deletions packages/graphiql/resources/renderExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
*/

// Parse the search string to get url parameters.
var parameters = {};
const parameters = {};
window.location.search
.substr(1)
.split('&')
.forEach(function (entry) {
var eq = entry.indexOf('=');
const eq = entry.indexOf('=');
if (eq >= 0) {
parameters[decodeURIComponent(entry.slice(0, eq))] = decodeURIComponent(
entry.slice(eq + 1),
Expand Down Expand Up @@ -52,7 +52,7 @@ function onTabChange(tabsState) {
}

function updateURL() {
var newSearch =
const newSearch =
'?' +
Object.keys(parameters)
.filter(function (key) {
Expand Down

0 comments on commit d0ed108

Please sign in to comment.