{"action":"created","issue":{"url":"https://api.github.com/repos/eslint/eslint/issues/2961","labels_url":"https://api.github.com/repos/eslint/eslint/issues/2961/labels{/name}","comments_url":"https://api.github.com/repos/eslint/eslint/issues/2961/comments","events_url":"https://api.github.com/repos/eslint/eslint/issues/2961/events","html_url":"https://github.com/eslint/eslint/issues/2961","id":94103159,"number":2961,"title":"Inconsistent rule configuration with new eslint.CLIEngine","user":{"login":"vladikoff","id":128755,"avatar_url":"https://avatars.githubusercontent.com/u/128755?v=3","gravatar_id":"","url":"https://api.github.com/users/vladikoff","html_url":"https://github.com/vladikoff","followers_url":"https://api.github.com/users/vladikoff/followers","following_url":"https://api.github.com/users/vladikoff/following{/other_user}","gists_url":"https://api.github.com/users/vladikoff/gists{/gist_id}","starred_url":"https://api.github.com/users/vladikoff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vladikoff/subscriptions","organizations_url":"https://api.github.com/users/vladikoff/orgs","repos_url":"https://api.github.com/users/vladikoff/repos","events_url":"https://api.github.com/users/vladikoff/events{/privacy}","received_events_url":"https://api.github.com/users/vladikoff/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/eslint/eslint/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-09T17:07:11Z","updated_at":"2015-07-09T17:09:53Z","closed_at":null,"body":"I'm trying to make a smaller proof of bug here, but here is what I have so far:\r\n\r\n## STR\r\n\r\n```\r\ngit clone https://github.com/mozilla/fxa-content-server#e29f5d654e8359051507314fb14efcf1e109bf46\r\ncd fxa-content-server\r\nnpm install\r\n```\r\n\r\n1) Run\r\n```\r\nnode_modules/.bin/grunt eslint\r\n```\r\nruns all tasks (including the one below), everything passes\r\n\r\n2) Run\r\n```\r\nnode_modules/.bin/grunt eslint:tests\r\n```\r\n\r\nThrows the error:\r\n```\r\ntests/functional/force_auth.js\r\n  23:2  error  Designated alias 'self' is not assigned to 'this'  consistent-this\r\n  32:2  error  Designated alias 'self' is not assigned to 'this'  consistent-this\r\n\r\n✖ 2 problems (2 errors, 0 warnings)\r\n```\r\n\r\n## End of STR\r\n\r\nFrom my investigation the options that are passed via the grunt task in https://github.com/sindresorhus/grunt-eslint/blob/master/tasks/eslint.js#L46 are identical \r\n\r\nThe traversal has a different rule setting in 1) and 2):\r\n![image](https://cloud.githubusercontent.com/assets/128755/8601592/e8dd4200-263a-11e5-8038-fbc1f05075d7.png)\r\n\r\nGrunt task configuration here: https://github.com/mozilla/fxa-content-server/blob/master/grunttasks/eslint.js#L24\r\n\r\nAt this moment it seems that eslint has some global state of linting rules that merges itself instead of being independent for each `var engine = new eslint.CLIEngine(opts);`\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/eslint/eslint/issues/comments/120074373","html_url":"https://github.com/eslint/eslint/issues/2961#issuecomment-120074373","issue_url":"https://api.github.com/repos/eslint/eslint/issues/2961","id":120074373,"user":{"login":"ilyavolodin","id":1380062,"avatar_url":"https://avatars.githubusercontent.com/u/1380062?v=3","gravatar_id":"","url":"https://api.github.com/users/ilyavolodin","html_url":"https://github.com/ilyavolodin","followers_url":"https://api.github.com/users/ilyavolodin/followers","following_url":"https://api.github.com/users/ilyavolodin/following{/other_user}","gists_url":"https://api.github.com/users/ilyavolodin/gists{/gist_id}","starred_url":"https://api.github.com/users/ilyavolodin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ilyavolodin/subscriptions","organizations_url":"https://api.github.com/users/ilyavolodin/orgs","repos_url":"https://api.github.com/users/ilyavolodin/repos","events_url":"https://api.github.com/users/ilyavolodin/events{/privacy}","received_events_url":"https://api.github.com/users/ilyavolodin/received_events","type":"User","site_admin":false},"created_at":"2015-07-09T17:09:53Z","updated_at":"2015-07-09T17:09:53Z","body":"Are you saying this is specific to CLIEngine? Or do you have the same issue if you bypass grunt and run eslint directly?"}}