{"action":"created","issue":{"url":"https://api.github.com/repos/sagiegurari/grunt-markdownlint/issues/5","repository_url":"https://api.github.com/repos/sagiegurari/grunt-markdownlint","labels_url":"https://api.github.com/repos/sagiegurari/grunt-markdownlint/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/sagiegurari/grunt-markdownlint/issues/5/comments","events_url":"https://api.github.com/repos/sagiegurari/grunt-markdownlint/issues/5/events","html_url":"https://github.com/sagiegurari/grunt-markdownlint/issues/5","id":306499863,"number":5,"title":"Provide alternative means (or document) use with `.markdownlint.json`","user":{"login":"plroebuck","id":16603429,"avatar_url":"https://avatars1.githubusercontent.com/u/16603429?v=4","gravatar_id":"","url":"https://api.github.com/users/plroebuck","html_url":"https://github.com/plroebuck","followers_url":"https://api.github.com/users/plroebuck/followers","following_url":"https://api.github.com/users/plroebuck/following{/other_user}","gists_url":"https://api.github.com/users/plroebuck/gists{/gist_id}","starred_url":"https://api.github.com/users/plroebuck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/plroebuck/subscriptions","organizations_url":"https://api.github.com/users/plroebuck/orgs","repos_url":"https://api.github.com/users/plroebuck/repos","events_url":"https://api.github.com/users/plroebuck/events{/privacy}","received_events_url":"https://api.github.com/users/plroebuck/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-03-19T15:00:53Z","updated_at":"2018-03-19T18:39:03Z","closed_at":null,"author_association":"NONE","body":"#### Problem Description\r\nGrunt task ignores `.markdownlint.json` and only processes rules placed within its `options.config`.\r\nA \"markdownlint-cli\" user with an existing configuration file (or someone wishing to store tool configuration externally) is SOL. Propose adding `options.configFile` to simplify external configuration; it would read the file's contents and store within `options.config`.\r\n\r\n##### Proposed `Gruntfile.coffee` modification (partial)\r\n````coffeescript\r\n  grunt.initConfig\r\n    readme: 'README.md'\r\n    markdownlint:\r\n      options:\r\n        configFile: '.markdownlint.json'\r\n      default:\r\n        src: [\r\n          '<%= readme %>'\r\n        ]\r\n````\r\n\r\nAlternatively (or meanwhile), document use of external file configuration.\r\n\r\n##### `Gruntfile.coffee` using existing codebase without modification (partial)\r\n\r\n````coffeescript\r\n  grunt.initConfig\r\n    readme: 'README.md'\r\n    markdownlint:\r\n      options:\r\n        config: require './.markdownlint.json'\r\n      default:\r\n        src: [\r\n          '<%= readme %>'\r\n        ]\r\n````\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/sagiegurari/grunt-markdownlint/issues/comments/374320909","html_url":"https://github.com/sagiegurari/grunt-markdownlint/issues/5#issuecomment-374320909","issue_url":"https://api.github.com/repos/sagiegurari/grunt-markdownlint/issues/5","id":374320909,"user":{"login":"plroebuck","id":16603429,"avatar_url":"https://avatars1.githubusercontent.com/u/16603429?v=4","gravatar_id":"","url":"https://api.github.com/users/plroebuck","html_url":"https://github.com/plroebuck","followers_url":"https://api.github.com/users/plroebuck/followers","following_url":"https://api.github.com/users/plroebuck/following{/other_user}","gists_url":"https://api.github.com/users/plroebuck/gists{/gist_id}","starred_url":"https://api.github.com/users/plroebuck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/plroebuck/subscriptions","organizations_url":"https://api.github.com/users/plroebuck/orgs","repos_url":"https://api.github.com/users/plroebuck/repos","events_url":"https://api.github.com/users/plroebuck/events{/privacy}","received_events_url":"https://api.github.com/users/plroebuck/received_events","type":"User","site_admin":false},"created_at":"2018-03-19T18:39:03Z","updated_at":"2018-03-19T18:39:03Z","author_association":"NONE","body":"So I believe my issue stands, backed up by #1. If you don't want to add `configFile`, fine -- add the second code-fence to the `README.md` and we'll call it a day. :)"}}
{"actor":{"display_login":"plroebuck"}}