소스 검색

feat: 111

lanjianrong 5 년 전
부모
커밋
4147c44d5d
2개의 변경된 파일10개의 추가작업 그리고 10개의 파일을 삭제
  1. 8 8
      .prettierrc.js
  2. 2 2
      package.json

+ 8 - 8
.prettierrc.js

@@ -1,14 +1,14 @@
-const fabric = require('@umijs/fabric')
+const fabric = require("@umijs/fabric")
 
 module.exports = {
   ...fabric.prettier,
-  eslintIntegration: false,
-  stylelintIntegration: false,
+  eslintIntegration: true,
+  stylelintIntegration: true,
   semi: false,
-  quoteProps: 'consistent',
-  htmlWhitespaceSensitivity: 'ignore',
+  quoteProps: "consistent",
+  htmlWhitespaceSensitivity: "ignore",
   jsxBracketSameLine: true,
-  trailingComma: 'none', // 末尾逗号
-  bracketSpacing: true, // 字面量对象包括数组对象括号中的空格,默认true
-  arrowParens: 'avoid' // 箭头函数中的括号 “avoid” - 在有需要的时候使用. Example: x => x
+  trailingComma: "none",
+  bracketSpacing: true,
+  arrowParens: "avoid"
 }

+ 2 - 2
package.json

@@ -88,7 +88,7 @@
     "cross-port-killer": "^1.1.1",
     "detect-installer": "^1.0.1",
     "enzyme": "^3.11.0",
-    "eslint": "^7.1.0",
+    "eslint": "^7.18.0",
     "express": "^4.17.1",
     "gh-pages": "^3.0.0",
     "jsdom-global": "^3.0.2",
@@ -97,7 +97,7 @@
     "prettier": "^2.2.1",
     "pro-download": "1.0.1",
     "puppeteer-core": "^5.0.0",
-    "stylelint": "^13.0.0",
+    "stylelint": "^13.9.0",
     "typescript": "^4.0.3"
   },
   "engines": {