You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.
JSHint returned a point that did not exist in the document being edited.
Rule: W033
Requested start point: 6:16
Just updated to the latest Atom and got this error.
code:
// Testing for localStorage// Wanted to use localStorage instead of a database because the data is just very small text files// Testing code can be found here: MDN Github https://github.com/mdn/dom-examples/blob/master/web-storage/main.jsfunctionstorageAvailable(type){'use strict'try{varstorage=window[type],x="__storage_test__";storage.setItem(x,x);storage.removeItem(x);returntrue;}catch(e){return(einstanceofDOMException&&// everything except Firefox(e.code===22||// Firefoxe.code===1014||// test name field too, because code might not be present // everything except Firefoxe.name==="QuotaExceededError"||// Firefoxe.name==="NS_ERROR_DOM_QUOTA_REACHED")&&// acknowledge QuotaExceededError only if there's something already storedstorage.length!==0);}}console.log(storageAvailable());// Example functions to populate storage and set styles.// Can comment out or edit// Using so that I can see if the browser is capabale of calling localStorage on the DOM.// Commenting out for now so that I can editvarhtmlElem=document.querySelector('html');varpElem=document.querySelector('p');varbgcolorForm=document.getElementById('bgcolor');varfontForm=document.getElementById('font');// Test for localStorageif(!localStorage.getItem('bgcolor')){populateStorage();}else{setStyles();}functionpopulateStorage(){localStorage.setItem('bgcolor',document.getElementById('bgcolor').value);localStorage.setItem('font',document.getElementById('font').value);localStorage.setItem('image',document.getElementById('image').value);setStyles();}functionsetStyles(){varcurrentColor=localStorage.getItem('bgcolor');varcurrentFont=localStorage.getItem('font');document.getElementById('bgcolor').value=currentColor;document.getElementById('font').value=currentFont;htmlElem.style.backgroundColor='#'+currentColor;pElem.style.fontFamily=currentFont;}bgcolorForm.onchange=populateStorage;fontForm.onchange=populateStorage;/* App Starts Here */$('#texts').val('New Text');$('#texts').trigger('autoresize');varwriteGood=require('write-good');varsuggestions=writeGood(userInput,{weasel: false});
suggestions: [{}];
Debug information:
Atom version: 1.18.0
linter-jshint version: v3.1.4
JSHint version: jshint v2.9.5
Hours since last Atom restart: 0.2
Platform: darwin
Current file's scopes: [
"source.js",
"comment.line.double-slash.js",
"punctuation.definition.comment.js"
]
linter-jshint configuration: {
"disableWhenNoJshintrcFileInPath": true,
"executablePath": "",
"lintInlineJavaScript": false,
"scopes": [
"source.js",
"source.js-semantic"
],
"jshintFileName": ".jshintrc",
"jshintignoreFilename": ".jshintignore"
}
The text was updated successfully, but these errors were encountered:
Since your example code is indented using tabs, you are hitting a bug in JSHint where almost (?) all rules are broken when using tabs. Please follow jshint/jshint#3151 for further updates on getting this fixed in JSHint.
JSHint returned a point that did not exist in the document being edited.
Rule:
W033
Requested start point: 6:16
Just updated to the latest Atom and got this error.
code:
Debug information:
The text was updated successfully, but these errors were encountered: