-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
16 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
module.exports = { | ||
'*.{js,ts}': ['eslint --fix', 'prettier --write'], | ||
'package.json': ['prettier --write'], | ||
'*.vue': ['eslint --fix', 'prettier --write', 'stylelint --fix'], | ||
'*.scss': ['stylelint --fix', 'prettier --write'], | ||
'*.md': ['prettier --write'], | ||
} | ||
'*.{js,ts,tsx,jsx}': ['eslint --fix', 'prettier --write'], | ||
'package.json': ['prettier --write'], | ||
'*.vue': ['eslint --fix', 'prettier --write', 'stylelint --fix'], | ||
'*.{scss,less,styl,html}': ['stylelint --fix', 'prettier --write'], | ||
'*.md': ['prettier --write'], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
module.exports = { | ||
plugins: [require('autoprefixer'), require('postcss-import')], | ||
} | ||
plugins: [require('autoprefixer'), require('postcss-import')], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,16 @@ | ||
module.exports = { | ||
// 每行最多多少个字符换行 | ||
printWidth: 100, | ||
// 使用分号, 默认true | ||
semi: true, | ||
// 是否缩进Vue 文件中的代码<script>和<style>标签 | ||
vueIndentScriptAndStyle: true, | ||
// 使用单引号, 默认false(在jsx中配置无效, 默认都是双引号) | ||
singleQuote: true, | ||
// 在对象或数组最后一个元素后面是否加逗号 | ||
trailingComma: 'all', | ||
proseWrap: 'never', | ||
// 为 HTML、Vue、Angular 和 Handlebars 指定全局空白敏感度 | ||
htmlWhitespaceSensitivity: 'strict', | ||
endOfLine: 'auto', | ||
}; |