Commit 95b1f3ac9f7e10684dfa2b9694211f0753179625

Authored by ww
1 parent 36f46c76

chore: add git commmit hook

  1 +module.exports = {
  2 + '*.{js,jsx,ts,tsx}': ['eslint --fix', 'prettier --write'],
  3 + '{!(package)*.json,*.code-snippets,.!(browserslist)*rc}': ['prettier --write--parser json'],
  4 + 'package.json': ['prettier --write'],
  5 + '*.vue': ['eslint --fix', 'prettier --write', 'stylelint --fix'],
  6 + '*.{scss,less,styl,html}': ['stylelint --fix', 'prettier --write'],
  7 + '*.md': ['prettier --write'],
  8 +};
... ...
  1 +#!/usr/bin/env sh
  2 +. "$(dirname -- "$0")/_/husky.sh"
  3 +
  4 +npm run lint:lint-staged
... ...
... ... @@ -44,7 +44,7 @@
44 44 </div>
45 45 </div>
46 46 <div v-else style="display: flex; justify-content: center; align-items: center">
47   - <div style="position: relative; left: 0rem; top: 3rem">暂无数据</div>
  47 + <div style="position: relative; left: 0; top: 3rem">暂无数据</div>
48 48 </div>
49 49 </Spin>
50 50 </div>
... ... @@ -78,7 +78,7 @@
78 78 defineEmits(['register']);
79 79 const heightNum = ref(800);
80 80
81   - let currentRecord: ExecuteReportRecord = {};
  81 + let currentRecord: ExecuteReportRecord = {} as unknown as ExecuteReportRecord;
82 82
83 83 const chartInstance = ref<
84 84 { device: string; name: string; attributes: string[]; active?: string }[]
... ... @@ -265,6 +265,7 @@
265 265 </script>
266 266 <style lang="less" scoped>
267 267 @import url('./ReportPreviewModal.less');
  268 +
268 269 .chart-style {
269 270 display: flex;
270 271 flex-wrap: wrap;
... ...