{"action":"opened","issue":{"url":"https://api.github.com/repos/eslint/eslint/issues/2217","labels_url":"https://api.github.com/repos/eslint/eslint/issues/2217/labels{/name}","comments_url":"https://api.github.com/repos/eslint/eslint/issues/2217/comments","events_url":"https://api.github.com/repos/eslint/eslint/issues/2217/events","html_url":"https://github.com/eslint/eslint/issues/2217","id":66005859,"number":2217,"title":"Different parsers for different folders in my project","user":{"login":"Globegitter","id":2580254,"avatar_url":"https://avatars.githubusercontent.com/u/2580254?v=3","gravatar_id":"","url":"https://api.github.com/users/Globegitter","html_url":"https://github.com/Globegitter","followers_url":"https://api.github.com/users/Globegitter/followers","following_url":"https://api.github.com/users/Globegitter/following{/other_user}","gists_url":"https://api.github.com/users/Globegitter/gists{/gist_id}","starred_url":"https://api.github.com/users/Globegitter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Globegitter/subscriptions","organizations_url":"https://api.github.com/users/Globegitter/orgs","repos_url":"https://api.github.com/users/Globegitter/repos","events_url":"https://api.github.com/users/Globegitter/events{/privacy}","received_events_url":"https://api.github.com/users/Globegitter/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-02T20:30:13Z","updated_at":"2015-04-02T20:30:13Z","closed_at":null,"body":"Taking this PR https://github.com/balderdashy/enpeem/pull/4 as an example, I am adding [Babel](https://github.com/balderdashy/enpeem/pull/4) to the test-side of the project, so I can write my tests using the latest ES6/7 syntax, but I don't want this in the app/production code itself because it degrades performance quite a bit.\r\n\r\nSo for eslint to recognize the ES6/7 syntax properly I am using [babel-eslint](https://github.com/babel/bhttps://github.com/babel/babel-eslint) as a parser, which is great to have, but I would only want that to parse the code in my `tests` folder and everything else use the default eslint parser, so it recognizes if I accidently write ES6/7 code in the app itself.\r\n\r\nFurthermore I am running eslint via [mocha-esling](https://github.com/BadgeLabs/mocha-eslint), so may there could be some api to set the parser. So I could have babel-eslint in the `.eslintrc` file, it would use that as a default, but using the api I can overwrite the parser when it comes to the test-folders.\r\n\r\nDoes that make sense? Something worth considering?"}}