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'