mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-01 04:50:27 +02:00
Lint JSON, CSS and Markdown files with Prettier (#1612)
* Process and Lint CSS, Markdown and JSON files with Prettier * Run `yarn prettier` to re-format Markdown, CSS and JSON files
This commit is contained in:
committed by
Ian Storm Taylor
parent
fc264841b6
commit
de4c9e478a
@@ -82,9 +82,9 @@
|
||||
"build": "rollup --config",
|
||||
"clean": "lerna run clean && rm -rf ./node_modules ./dist ./examples/build.*.js",
|
||||
"gh-pages": "cross-env NODE_ENV=production yarn build && gh-pages --dist ./examples",
|
||||
"lint": "eslint packages/*/src packages/*/test examples/*/*.js examples/dev/*/*.js && prettier --list-different '**/*.{js,jsx}'",
|
||||
"lint": "eslint packages/*/src packages/*/test examples/*/*.js examples/dev/*/*.js && prettier --list-different '**/*.{js,jsx,md,json,css}'",
|
||||
"open": "open http://localhost:8080/dev.html",
|
||||
"prettier": "prettier --write '**/*.{js,jsx}'",
|
||||
"prettier": "prettier --write '**/*.{js,jsx,md,json,css}'",
|
||||
"release": "yarn test && yarn lint && lerna publish && yarn gh-pages",
|
||||
"server": "http-server ./examples",
|
||||
"start": "npm-run-all --parallel --print-label watch server",
|
||||
|
Reference in New Issue
Block a user