{"action":"closed","issue":{"url":"https://api.github.com/repos/AtomLinter/linter-eslint/issues/587","repository_url":"https://api.github.com/repos/AtomLinter/linter-eslint","labels_url":"https://api.github.com/repos/AtomLinter/linter-eslint/issues/587/labels{/name}","comments_url":"https://api.github.com/repos/AtomLinter/linter-eslint/issues/587/comments","events_url":"https://api.github.com/repos/AtomLinter/linter-eslint/issues/587/events","html_url":"https://github.com/AtomLinter/linter-eslint/issues/587","id":156134713,"number":587,"title":"linter-eslint appears to delete .eslintcache when an error is found","user":{"login":"dominicbarnes","id":160197,"avatar_url":"https://avatars.githubusercontent.com/u/160197?v=3","gravatar_id":"","url":"https://api.github.com/users/dominicbarnes","html_url":"https://github.com/dominicbarnes","followers_url":"https://api.github.com/users/dominicbarnes/followers","following_url":"https://api.github.com/users/dominicbarnes/following{/other_user}","gists_url":"https://api.github.com/users/dominicbarnes/gists{/gist_id}","starred_url":"https://api.github.com/users/dominicbarnes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dominicbarnes/subscriptions","organizations_url":"https://api.github.com/users/dominicbarnes/orgs","repos_url":"https://api.github.com/users/dominicbarnes/repos","events_url":"https://api.github.com/users/dominicbarnes/events{/privacy}","received_events_url":"https://api.github.com/users/dominicbarnes/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-05-22T04:47:14Z","updated_at":"2016-05-23T02:43:40Z","closed_at":"2016-05-23T02:43:40Z","body":"I'm running ESLint with the `--cache` flag in my repo from my `package.json`, doing so generates a `.eslintcache` file at the root of my project.\r\n\r\nWhen a `.eslintcache` file exists, and I make a change to my file that introduces a lint error, (such as removing a semicolon) it deletes the `.eslintcache` file around the time that it displays the lint error in the editor. (which I didn't expect)\r\n\r\nI only get this behavior from linter-eslint, not from ESLint itself. To demonstrate this, I ran ESLint and generated the cache file. Using another editor I introduced a lint error, then ran ESLint again, and the file was not deleted. If I disable `linter-eslint`, the behavior goes away. (I've also tried tweaking several configs to see if they change this behavior, to no avail)\r\n\r\nI looked through the source code and didn't find any mention of `.eslintcache`, so I'm not entirely sure how this behavior is coming about.\r\n\r\nIn short, it would be great if the `.eslintcache` file was not deleted by linter-eslint. (or maybe it's linter, as I said it's not super-clear where the logic for deleting this file is coming from)"}}
{"actor":{"display_login":"Arcanemagus"}}