{"action":"closed","issue":{"url":"https://api.github.com/repos/eslint/eslint/issues/11127","repository_url":"https://api.github.com/repos/eslint/eslint","labels_url":"https://api.github.com/repos/eslint/eslint/issues/11127/labels{/name}","comments_url":"https://api.github.com/repos/eslint/eslint/issues/11127/comments","events_url":"https://api.github.com/repos/eslint/eslint/issues/11127/events","html_url":"https://github.com/eslint/eslint/issues/11127","id":384424551,"node_id":"MDU6SXNzdWUzODQ0MjQ1NTE=","number":11127,"title":"Enforce parser usage from a plugin","user":{"login":"bradzacher","id":7462525,"node_id":"MDQ6VXNlcjc0NjI1MjU=","avatar_url":"https://avatars1.githubusercontent.com/u/7462525?v=4","gravatar_id":"","url":"https://api.github.com/users/bradzacher","html_url":"https://github.com/bradzacher","followers_url":"https://api.github.com/users/bradzacher/followers","following_url":"https://api.github.com/users/bradzacher/following{/other_user}","gists_url":"https://api.github.com/users/bradzacher/gists{/gist_id}","starred_url":"https://api.github.com/users/bradzacher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bradzacher/subscriptions","organizations_url":"https://api.github.com/users/bradzacher/orgs","repos_url":"https://api.github.com/users/bradzacher/repos","events_url":"https://api.github.com/users/bradzacher/events{/privacy}","received_events_url":"https://api.github.com/users/bradzacher/received_events","type":"User","site_admin":false},"labels":[{"id":82922548,"node_id":"MDU6TGFiZWw4MjkyMjU0OA==","url":"https://api.github.com/repos/eslint/eslint/labels/core","name":"core","color":"c7def8","default":false},{"id":45711352,"node_id":"MDU6TGFiZWw0NTcxMTM1Mg==","url":"https://api.github.com/repos/eslint/eslint/labels/enhancement","name":"enhancement","color":"84b6eb","default":true},{"id":255319420,"node_id":"MDU6TGFiZWwyNTUzMTk0MjA=","url":"https://api.github.com/repos/eslint/eslint/labels/evaluating","name":"evaluating","color":"fef2c0","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-11-26T17:02:16Z","updated_at":"2018-11-27T19:00:05Z","closed_at":"2018-11-27T19:00:05Z","author_association":"NONE","body":"**The problem you want to solve.**\r\nRight now, if a plugin requires certain config to run correctly, it must have a readme listing out the requirements, and each user must copy out the config (and install any additional dependencies, if required).\r\n\r\nFor example, `eslint-plugin-typescript` has a hard dependency on `typescript-eslint-parser`, and it *must* be defined in the config as the parser.\r\n\r\nIf plugins had a way to provide this when it is included, this could ease the friction of configuring, and also make it easier for a plugin to manage its dependencies.\r\n\r\n**Your take on the correct solution to problem.**\r\nI would consider adding it to the [`environments`](https://eslint.org/docs/developer-guide/working-with-plugins#environments-in-plugins) export for plugins.\r\n\r\nRight now `environments` supports `globals` and `parserOptions`.\r\n\r\n**Are you willing to submit a pull request to implement this change?**\r\n👍 \t\r\n"}}
{"actor":{"display_login":"bradzacher"}}