Skip to content

Commit

Permalink
prettier md demo (ant-design#16188)
Browse files Browse the repository at this point in the history
  • Loading branch information
chenshuai2144 authored and zombieJ committed Apr 21, 2019
1 parent 2b0723f commit 1569ab3
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
3 changes: 0 additions & 3 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
**/*.md
**/*.svg
**/*.ejs
**/*.html
package.json
.umi
.umi-production
3 changes: 2 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"singleQuote": true,
"trailingComma": "all",
"printWidth": 100,
"proseWrap": "never",
"overrides": [
{
"files": ".prettierrc",
Expand All @@ -10,4 +11,4 @@
}
}
]
}
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@
"pre-commit": "^1.2.2",
"preact": "^8.3.1",
"preact-compat": "^3.18.4",
"prettier": "^1.15.3",
"prettier": "^1.17.0",
"querystring": "^0.2.0",
"rc-queue-anim": "^1.6.6",
"rc-scroll-anim": "^2.5.7",
Expand Down Expand Up @@ -262,4 +262,4 @@
"lib/**/style/*",
"*.less"
]
}
}
2 changes: 1 addition & 1 deletion scripts/prettier.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ if (program.pre) {
];

// get all ts, js, less files
['**/*.ts*', '**/*.js*', '**/*.less'].forEach(pattern => {
['**/*.ts*', '**/*.js*', '**/*.less', '**/*.md', '**/*.html'].forEach(pattern => {
const matchFiles = glob.sync(pattern, {
ignore: ignoreFiles,
});
Expand Down

0 comments on commit 1569ab3

Please sign in to comment.