{"action":"created","issue":{"url":"https://api.github.com/repos/eslint/eslint/issues/4899","labels_url":"https://api.github.com/repos/eslint/eslint/issues/4899/labels{/name}","comments_url":"https://api.github.com/repos/eslint/eslint/issues/4899/comments","events_url":"https://api.github.com/repos/eslint/eslint/issues/4899/events","html_url":"https://github.com/eslint/eslint/issues/4899","id":125783601,"number":4899,"title":"Allow `exported` to be set in config","user":{"login":"tschaub","id":41094,"avatar_url":"https://avatars.githubusercontent.com/u/41094?v=3","gravatar_id":"","url":"https://api.github.com/users/tschaub","html_url":"https://github.com/tschaub","followers_url":"https://api.github.com/users/tschaub/followers","following_url":"https://api.github.com/users/tschaub/following{/other_user}","gists_url":"https://api.github.com/users/tschaub/gists{/gist_id}","starred_url":"https://api.github.com/users/tschaub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tschaub/subscriptions","organizations_url":"https://api.github.com/users/tschaub/orgs","repos_url":"https://api.github.com/users/tschaub/repos","events_url":"https://api.github.com/users/tschaub/events{/privacy}","received_events_url":"https://api.github.com/users/tschaub/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/eslint/eslint/labels/triage","name":"triage","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-01-09T21:49:26Z","updated_at":"2016-01-09T22:13:41Z","closed_at":"2016-01-09T22:13:41Z","body":"In #1200, support was added for `exported` in a comment, but it looks like it is not possible to apply this in a config file.\r\n\r\nI'm linting a large directory of examples that all use syntax similar to this:\r\n\r\n```js\r\nvar demo = new Demo();\r\n```\r\n\r\nRather than adding a `/* exported demo */` comment to hundreds of files, I'd prefer to add a single `.eslintrc` to the directory that allowed the `no-unused-vars` rule to be applied.\r\n\r\nWould there be support for adding `exported` in config files?  Alternatively, would it be more appropriate to add an `except` (or similar) option to the `no-unused-vars` rule?\r\n\r\n\r\n<bountysource-plugin>\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/29735950-allow-exported-to-be-set-in-config?utm_campaign=plugin&utm_content=tracker%2F282608&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F282608&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"},"comment":{"url":"https://api.github.com/repos/eslint/eslint/issues/comments/170287027","html_url":"https://github.com/eslint/eslint/issues/4899#issuecomment-170287027","issue_url":"https://api.github.com/repos/eslint/eslint/issues/4899","id":170287027,"user":{"login":"tschaub","id":41094,"avatar_url":"https://avatars.githubusercontent.com/u/41094?v=3","gravatar_id":"","url":"https://api.github.com/users/tschaub","html_url":"https://github.com/tschaub","followers_url":"https://api.github.com/users/tschaub/followers","following_url":"https://api.github.com/users/tschaub/following{/other_user}","gists_url":"https://api.github.com/users/tschaub/gists{/gist_id}","starred_url":"https://api.github.com/users/tschaub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tschaub/subscriptions","organizations_url":"https://api.github.com/users/tschaub/orgs","repos_url":"https://api.github.com/users/tschaub/repos","events_url":"https://api.github.com/users/tschaub/events{/privacy}","received_events_url":"https://api.github.com/users/tschaub/received_events","type":"User","site_admin":false},"created_at":"2016-01-09T22:13:41Z","updated_at":"2016-01-09T22:13:41Z","body":"I had completely missed the `varsIgnorePattern` option.  This fits my use case well (and seems more appropriate than a top level `exported` config property)."}}