chore(v2): upgrade devDependencies (#2538)

* chore(v2): upgrade devDependencies

* chore(v2): upgrade devDependencies

* chore: prettier
This commit is contained in:
Yangshun Tay 2020-04-05 19:07:44 +08:00 committed by GitHub
parent ea8c916528
commit b07507c9cc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
148 changed files with 2385 additions and 1975 deletions

View file

@ -57,7 +57,7 @@ describe('slug plugin', () => {
test('should not overwrite `data` on headings', () => {
const result = process('# Normal\n', [
function() {
function () {
function transform(tree) {
tree.children[0].data = {foo: 'bar'};
}
@ -80,7 +80,7 @@ describe('slug plugin', () => {
test('should not overwrite `data.hProperties` on headings', () => {
const result = process('# Normal\n', [
function() {
function () {
function transform(tree) {
tree.children[0].data = {hProperties: {className: ['foo']}};
}
@ -110,7 +110,7 @@ describe('slug plugin', () => {
'## Something also',
].join('\n\n'),
[
function() {
function () {
function transform(tree) {
tree.children[1].data = {hProperties: {id: 'here'}};
tree.children[3].data = {hProperties: {id: 'something'}};

View file

@ -12,7 +12,7 @@ const toString = require('mdast-util-to-string');
const slugs = require('github-slugger')();
function slug() {
const transformer = ast => {
const transformer = (ast) => {
slugs.reset();
function visitor(headingNode) {