Commit d2577208 authored by 陈帅's avatar 陈帅

use check-prettier

parent 7993e44f
...@@ -27,4 +27,4 @@ ...@@ -27,4 +27,4 @@
"blockConfig": { "blockConfig": {
"specVersion": "0.1" "specVersion": "0.1"
} }
} }
\ No newline at end of file
...@@ -26,4 +26,4 @@ ...@@ -26,4 +26,4 @@
"blockConfig": { "blockConfig": {
"specVersion": "0.1" "specVersion": "0.1"
} }
} }
\ No newline at end of file
...@@ -58,7 +58,7 @@ function getRule( ...@@ -58,7 +58,7 @@ function getRule(
if (params.status) { if (params.status) {
const status = params.status.split(','); const status = params.status.split(',');
let filterDataSource: TableListItem[] = []; let filterDataSource: TableListItem[] = [];
status.forEach(s => { status.forEach((s: string) => {
filterDataSource = filterDataSource.concat( filterDataSource = filterDataSource.concat(
dataSource.filter(item => { dataSource.filter(item => {
if (parseInt(item.status + '', 10) === parseInt(s.split('')[0], 10)) { if (parseInt(item.status + '', 10) === parseInt(s.split('')[0], 10)) {
......
...@@ -32,6 +32,7 @@ ...@@ -32,6 +32,7 @@
"devDependencies": { "devDependencies": {
"@types/classnames": "^2.2.7", "@types/classnames": "^2.2.7",
"babel-eslint": "^10.0.1", "babel-eslint": "^10.0.1",
"check-prettier": "^1.0.1",
"glob": "^7.1.3", "glob": "^7.1.3",
"husky": "^2.2.0", "husky": "^2.2.0",
"lint-staged": "^8.1.0", "lint-staged": "^8.1.0",
...@@ -55,5 +56,10 @@ ...@@ -55,5 +56,10 @@
}, },
"peerDependencies": { "peerDependencies": {
"antd": "^3.17.0" "antd": "^3.17.0"
} },
"checkFiles": [
"**/*.ts*",
"**/*.less",
"**/*.md"
]
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment