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