Skip to content

Commit 2817bfa

Browse files
Tecvan-feTecvan-fe
andauthored
chore: lint svg files (#115)
Co-authored-by: Tecvan-fe <tecvan.fe@qq.com>
1 parent a9cb49e commit 2817bfa

3 files changed

Lines changed: 13 additions & 1 deletion

File tree

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"changes": [
3+
{
4+
"packageName": "@coze-arch/rush-increment-run-plugin",
5+
"comment": "lint svg files",
6+
"type": "patch"
7+
}
8+
],
9+
"packageName": "@coze-arch/rush-increment-run-plugin",
10+
"email": "tecvan.fe@qq.com"
11+
}

packages/rush-plugins/increment-run/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
"stylelint": "^15.11.0"
5252
},
5353
"cozePublishConfig": {
54+
"main": "./lib/index.js",
5455
"bin": {
5556
"rush-increment-run": "./lib/index.js"
5657
}

packages/rush-plugins/increment-run/src/lint/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const LINT_BATCH_SIZE = 30;
1919
const PARALLEL_SIZE = Math.max(getCPUSize() - 1, 1);
2020

2121
const isNeedLint = (file: string) =>
22-
file?.length > 0 && /\.(js|ts|jsx|tsx|json|cjs|mjs)$/.test(file);
22+
file?.length > 0 && /\.(js|ts|jsx|tsx|json|cjs|mjs|svg)$/.test(file);
2323

2424
const DISABLED_RULES = [];
2525
const DISABLED_PACKAGES = ['@coze-arch/eslint-config'];

0 commit comments

Comments
 (0)