1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-26 16:44:22 +02:00

docs: Small change to test lint staging

This commit is contained in:
Sunny Hirai
2021-07-08 22:45:47 -07:00
parent 7ea482c3e3
commit e377c8f6d2
2 changed files with 6 additions and 4 deletions

View File

@@ -11,10 +11,10 @@ const escape = require('shell-quote').quote
*/ */
module.exports = { 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 => `prettier --check "${escape([filename])}"`),
...filenames.map(filename => `git add "${filename}"`), ...filenames.map(filename => `git add "${filename}"`),
], ],
'*.{ts,tsx,js}': ['eslint'], '*.{ts,tsx,js,md}': ['eslint'],
'*.{ts,tsx,css}': ['stylelint'], '*.{ts,tsx,css,md}': ['stylelint'],
} }

View File

@@ -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 ```javascript
import { Element } from 'slate' import { Element } from 'slate'