Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
130 changes: 130 additions & 0 deletions .vscode/rushx-config.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,130 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"codecov": {
"$ref": "#/definitions/codecov",
"description": "Unit test-related configurations, such as threshold gates and diff directory settings."
},
"team": {
"type": "array",
"description": "The associated team.",
"items": [
{
"type": "string"
}
]
},
"level": {
"type": "array",
"description": "The classification level of the package.",
"items": [
{
"type": "string"
}
]
},
"packageAudit": {
"$ref": "#/definitions/packageAudit",
"description": "Configurations related to the package quality detection tools."
},
"dupCheck": {
"$ref": "#/definitions/dupCheck",
"description": "Configurations related to code duplication detection."
}
},
"definitions": {
"codecov": {
"type": "object",
"properties": {
"coverage": {
"type": "number",
"description": "Coverage threshold."
},
"incrementCoverage": {
"type": "number",
"description": "Incremental coverage threshold."
},
"ignoreDiff": {
"type": "array",
"description": "Configure directories to ignore in incremental coverage calculation; glob pattern matching is supported.",
"items": [
{
"type": "string"
}
]
},
"level-0": {
"$ref": "#/definitions/level"
},
"level-1": {
"$ref": "#/definitions/level"
},
"level-2": {
"$ref": "#/definitions/level"
},
"level-3": {
"$ref": "#/definitions/level"
},
"level-4": {
"$ref": "#/definitions/level"
}
}
},
"level": {
"type": "object",
"properties": {
"coverage": {
"type": "number",
"description": "Coverage threshold."
},
"incrementCoverage": {
"type": "number",
"description": "Incremental coverage threshold."
}
}
},
"packageAudit": {
"type": "object",
"description": "Configurations related to scanning rules.",
"properties": {
"enable": { "type": "boolean" },
"rules": {
"type": "array",
"items": [
{
"type": "array",
"items": [
{
"type": "string",
"description": "Rule names; currently supports these three types: owners, rule-project.json, essential-config-file.",
"enum": [
"rule-project.json",
"owners",
"essential-config-file"
]
},
{ "type": "string", "enum": ["error", "warn"] },
{
"type": "object",
"description": "Supplementary configuration for rules; can be of a nullable type."
}
]
}
]
}
}
},
"dupCheck": {
"type": "object",
"description": "Configurations related to code duplication detection.",
"properties": {
"ignoreGlobPatterns": {
"title": "Glob patterns to be ignored for detection (relative to the current package directory, not the configuration file directory).",
"type": "array",
"items": { "type": "string" }
}
}
}
}
}
18 changes: 14 additions & 4 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,19 @@
"stylelint.validate": ["css", "scss", "less"],
"stylelint.stylelintPath": "frontend/config/stylelint-config/node_modules/stylelint",
"emmet.triggerExpansionOnTab": true,
"svg.preview.background": "white",
"git.openRepositoryInParentFolders": "always",
"references.preferredLocation": "view",
"json.schemas": [
{
"fileMatch": ["rushx-config.json"],
"url": "./.vscode/rushx-config.schema.json"
},
{
"fileMatch": ["rush-project.json"],
"url": "https://developer.microsoft.com/json-schemas/rush/v5/rush-project.schema.json"
}
],
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
Expand Down Expand Up @@ -174,8 +187,5 @@
},
"[sql]": {
"editor.defaultFormatter": "adpyke.vscode-sql-formatter"
},
"svg.preview.background": "white",
"git.openRepositoryInParentFolders": "always",
"references.preferredLocation": "view"
}
}
1 change: 0 additions & 1 deletion frontend/config/ts-config/config/rushx-config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"$schema": "../../../rushx-config.schema.json",
"packageAudit": {
"enable": true,
"rules": [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"$schema": "../../../../rushx-config.schema.json",
"dupCheck": {
"ignoreGlobPatterns": ["src/**"]
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"$schema": "../../../../rushx-config.schema.json",
"dupCheck": {
"ignoreGlobPatterns": ["src/**", "i18n/**"]
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"$schema": "../../../../rushx-config.schema.json",
"dupCheck": {
"ignoreGlobPatterns": ["src/**"]
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"$schema": "../../../../rushx-config.schema.json",
"dupCheck": {
"ignoreGlobPatterns": ["src/**"]
}
Expand Down
1 change: 0 additions & 1 deletion frontend/packages/cozeloop/env/config/rushx-config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"$schema": "../../../../rushx-config.schema.json",
"dupCheck": {
"ignoreGlobPatterns": ["src/**", "i18n/**"]
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"$schema": "../../../../rushx-config.schema.json",
"dupCheck": {
"ignoreGlobPatterns": ["stories/**"]
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"$schema": "../../../../rushx-config.schema.json",
"dupCheck": {
"ignoreGlobPatterns": ["stories/**"]
}
Expand Down
1 change: 0 additions & 1 deletion frontend/packages/cozeloop/i18n/config/rushx-config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"$schema": "../../../../rushx-config.schema.json",
"dupCheck": {
"ignoreGlobPatterns": ["script/*"]
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"$schema": "../../../../rushx-config.schema.json",
"dupCheck": {
"ignoreGlobPatterns": ["stories/**"]
}
Expand Down
1 change: 0 additions & 1 deletion frontend/packages/cozeloop/route/config/rushx-config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"$schema": "../../../../rushx-config.schema.json",
"dupCheck": {
"ignoreGlobPatterns": ["src/**"]
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"$schema": "../../../../../rushx-config.schema.json",
"dupCheck": {
"ignoreGlobPatterns": ["src/**"]
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"$schema": "../../../../rushx-config.schema.json",
"dupCheck": {
"ignoreGlobPatterns": ["src/**"]
}
Expand Down
Loading