using eslint in sublime3, a simple handwritten js code can detect errors and prompt errors normally.
detects complex code in a project with the following error:
C:UsersHiTlerAppDataRoamingnpmnode_moduleseslintlibignored-paths.js:200
throw e;
^
SyntaxError: Unexpected end of JSON input
at JSON.parse (<anonymous>)
at new IgnoredPaths (C:\Users\HiTler\AppData\Roaming\npm\node_modules\eslint\lib\ignored-paths.js:176:55)
at lodash.memoize.optionsObj (C:\Users\HiTler\AppData\Roaming\npm\node_modules\eslint\lib\util\glob-util.js:193:13)
at memoized (C:\Users\HiTler\AppData\Roaming\npm\node_modules\eslint\node_modules\lodash\lodash.js:10551:27)
at resolvedGlobPatterns.map.pattern (C:\Users\HiTler\AppData\Roaming\npm\node_modules\eslint\lib\util\glob-util.js:207:34)
at Array.map (<anonymous>)
at Object.listFilesToProcess (C:\Users\HiTler\AppData\Roaming\npm\node_modules\eslint\lib\util\glob-util.js:203:61)
at CLIEngine.executeOnFiles (C:\Users\HiTler\AppData\Roaming\npm\node_modules\eslint\lib\cli-engine.js:533:35)
at Object.<anonymous> (C:\Users\HiTler\AppData\Roaming\Sublime Text 3\Packages\ESLint\linter.js:31:18)
at Module._compile (module.js:652:30)
[Finished in 1.0s]
< hr > I tried to check jquery.min.js or the error above again.
what"s going on? ask for help. I haven"t found it on the Internet. Have you ever encountered it?