Browse Source

prettier all code

pull/7280/head
chenshuai2144 6 years ago
parent
commit
8eb7522332
  1. 4
      package.json
  2. 4
      src/pages/document.ejs

4
package.json

@ -23,10 +23,10 @@
"lint-staged:js": "eslint --ext .js,.jsx,.ts,.tsx ", "lint-staged:js": "eslint --ext .js,.jsx,.ts,.tsx ",
"lint:fix": "eslint --fix --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src && npm run lint:style", "lint:fix": "eslint --fix --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src && npm run lint:style",
"lint:js": "eslint --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src", "lint:js": "eslint --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src",
"lint:prettier": "prettier --check \"**/*\" --end-of-line auto", "lint:prettier": "prettier --check \"src/**/*\" --end-of-line auto",
"lint:style": "stylelint --fix \"src/**/*.less\" --syntax less", "lint:style": "stylelint --fix \"src/**/*.less\" --syntax less",
"precommit": "lint-staged", "precommit": "lint-staged",
"prettier": "prettier -c --write \"**/*\"", "prettier": "prettier -c --write \"src/**/*\"",
"site": "npm run fetch:blocks && npm run build", "site": "npm run fetch:blocks && npm run build",
"start": "umi dev", "start": "umi dev",
"start:dev": "cross-env REACT_APP_ENV=dev MOCK=none umi dev", "start:dev": "cross-env REACT_APP_ENV=dev MOCK=none umi dev",

4
src/pages/document.ejs

@ -200,11 +200,11 @@
></span> ></span>
</div> </div>
</div> </div>
<div style="display: flex; justify-content: center; align-items: center"> <div style="display: flex; justify-content: center; align-items: center;">
<img <img
src="https://gw.alipayobjects.com/zos/rmsportal/KDpgvguMpGfqaHPjicRK.svg" src="https://gw.alipayobjects.com/zos/rmsportal/KDpgvguMpGfqaHPjicRK.svg"
width="32" width="32"
style="margin-right: 8px" style="margin-right: 8px;"
/> />
Ant Design Ant Design
</div> </div>

Loading…
Cancel
Save