mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-26 00:27:28 +02:00
docs: Small change to test lint staging
This commit is contained in:
@@ -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'],
|
||||
}
|
||||
|
@@ -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'
|
||||
|
Reference in New Issue
Block a user