From e377c8f6d233cdec82df04b40eace3ee3c000834 Mon Sep 17 00:00:00 2001 From: Sunny Hirai Date: Thu, 8 Jul 2021 22:45:47 -0700 Subject: [PATCH] docs: Small change to test lint staging --- .lintstagedrc.js | 6 +++--- docs/concepts/01-interfaces.md | 4 +++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.lintstagedrc.js b/.lintstagedrc.js index 1d706b574..73bd49575 100644 --- a/.lintstagedrc.js +++ b/.lintstagedrc.js @@ -11,10 +11,10 @@ const escape = require('shell-quote').quote */ module.exports = { - '*.{ts,tsx,js,json,css}': filenames => [ + '*.{ts,tsx,js,json,css,md}': filenames => [ ...filenames.map(filename => `prettier --check "${escape([filename])}"`), ...filenames.map(filename => `git add "${filename}"`), ], - '*.{ts,tsx,js}': ['eslint'], - '*.{ts,tsx,css}': ['stylelint'], + '*.{ts,tsx,js,md}': ['eslint'], + '*.{ts,tsx,css,md}': ['stylelint'], } diff --git a/docs/concepts/01-interfaces.md b/docs/concepts/01-interfaces.md index 42d181f99..63e352d58 100644 --- a/docs/concepts/01-interfaces.md +++ b/docs/concepts/01-interfaces.md @@ -93,7 +93,9 @@ const isImageElement = element => { } ``` -You can define these as one-off functions easily. But you might also bundle them up into namespaces, just like the core interfaces do, and use them instead. For example: +You can define these as one-off functions easily. But you might also bundle them up into namespaces, just like the core interfaces do, and use them instead. + +For example: ```javascript import { Element } from 'slate'