{"action":"created","issue":{"url":"https://api.github.com/repos/eslint/eslint/issues/2135","labels_url":"https://api.github.com/repos/eslint/eslint/issues/2135/labels{/name}","comments_url":"https://api.github.com/repos/eslint/eslint/issues/2135/comments","events_url":"https://api.github.com/repos/eslint/eslint/issues/2135/events","html_url":"https://github.com/eslint/eslint/issues/2135","id":63878596,"number":2135,"title":"Intent to support allowed variables in no-underscore-dangle","user":{"login":"jonathanKingston","id":338988,"avatar_url":"https://avatars.githubusercontent.com/u/338988?v=3","gravatar_id":"","url":"https://api.github.com/users/jonathanKingston","html_url":"https://github.com/jonathanKingston","followers_url":"https://api.github.com/users/jonathanKingston/followers","following_url":"https://api.github.com/users/jonathanKingston/following{/other_user}","gists_url":"https://api.github.com/users/jonathanKingston/gists{/gist_id}","starred_url":"https://api.github.com/users/jonathanKingston/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonathanKingston/subscriptions","organizations_url":"https://api.github.com/users/jonathanKingston/orgs","repos_url":"https://api.github.com/users/jonathanKingston/repos","events_url":"https://api.github.com/users/jonathanKingston/events{/privacy}","received_events_url":"https://api.github.com/users/jonathanKingston/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":4,"created_at":"2015-03-24T01:57:23Z","updated_at":"2015-03-25T00:56:02Z","closed_at":null,"body":"Certain libraries use underscores half privately, half as a requirement. Ember _super is used to reference the parent class.\r\n\r\nhttp://eslint.org/docs/rules/no-underscore-dangle.html\r\n\r\nWould there be any interest in supporting a property where the user can specify allowed variables like:\r\n```\r\n\"no-underscore-dangle\": [2, { \"allowed\": [\"_super\"]}]\r\n```"},"comment":{"url":"https://api.github.com/repos/eslint/eslint/issues/comments/85766992","html_url":"https://github.com/eslint/eslint/issues/2135#issuecomment-85766992","issue_url":"https://api.github.com/repos/eslint/eslint/issues/2135","id":85766992,"user":{"login":"jonathanKingston","id":338988,"avatar_url":"https://avatars.githubusercontent.com/u/338988?v=3","gravatar_id":"","url":"https://api.github.com/users/jonathanKingston","html_url":"https://github.com/jonathanKingston","followers_url":"https://api.github.com/users/jonathanKingston/followers","following_url":"https://api.github.com/users/jonathanKingston/following{/other_user}","gists_url":"https://api.github.com/users/jonathanKingston/gists{/gist_id}","starred_url":"https://api.github.com/users/jonathanKingston/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonathanKingston/subscriptions","organizations_url":"https://api.github.com/users/jonathanKingston/orgs","repos_url":"https://api.github.com/users/jonathanKingston/repos","events_url":"https://api.github.com/users/jonathanKingston/events{/privacy}","received_events_url":"https://api.github.com/users/jonathanKingston/received_events","type":"User","site_admin":false},"created_at":"2015-03-25T00:56:01Z","updated_at":"2015-03-25T00:56:01Z","body":"Both explicitly and globally'?\r\n```\r\n\"no-underscore-dangle\": [2, {permitted: { \"function\": [\"_super\"]}}]\r\n```\r\nor:\r\n```\r\n\"no-underscore-dangle\": [2, { \"all\": [\"_super\"]}]\r\n```\r\n\r\nAllowing to globally disable all per type (as you suggested) would likely be comprehensive enough for my use case now as I won't be validating the library itself however someone will at some point I suspect. For globally validating 'all' would be most useful.\r\n\r\nJust so it is noted, I'm not a massive fan of a whitelists either; I am completely open to other suggestions to solve this. Perhaps 'allowKeywords' similar to 'dot-notation'?"}}