Kaynağa Gözat

prettier all code

chenshuai2144 5 yıl önce
ebeveyn
işleme
8eb7522332
2 değiştirilmiş dosya ile 4 ekleme ve 4 silme
  1. 2 2
      package.json
  2. 2 2
      src/pages/document.ejs

+ 2 - 2
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",

+ 2 - 2
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>