mirror of
https://github.com/documentationjs/documentation.git
synced 2026-01-18 14:17:30 +00:00
* style(prettier): Use prettier for code formatting This saves us style issues. Also adds husky and lint-staged for pre-commit testing Refs https://github.com/documentationjs/documentation/issues/709
19 lines
413 B
JavaScript
19 lines
413 B
JavaScript
'use strict';
|
|
var walk = require('../lib/walk');
|
|
|
|
module.exports = function(comments) {
|
|
return walk(comments, function(comment) {
|
|
var hasGithub = !!comment.context.github;
|
|
var path = comment.context.path;
|
|
comment.context = {
|
|
loc: comment.context.loc
|
|
};
|
|
if (hasGithub) {
|
|
comment.context.github = '[github]';
|
|
}
|
|
if (path) {
|
|
comment.context.path = path;
|
|
}
|
|
});
|
|
};
|