@Link check warn upgrade to ERROR

Signed-off-by: bojiang <jiangbo91@huawei.com>
Change-Id: I4568971eec8931b7feb1fe4810b2ad670f243448
This commit is contained in:
bojiang 2024-01-24 20:09:55 +08:00
parent 0a6d321844
commit 49a861fd2e
3 changed files with 3 additions and 3 deletions

View File

@ -13,7 +13,7 @@
"build": "npm run generateKitConfigs && npm run generateDeclarations && ./node_modules/.bin/babel ./src --out-dir lib --extensions .ts && node uglify-source.js lib",
"create": "node ./lib/create.js --env projectName",
"compile": "webpack --config webpack.config.js --env buildMode=debug projectName",
"test": "npm run build && mocha test/test.js && mocha test/test.js --partialUpdate && mocha test/test.js --assertError && npm run arkTest",
"test": "npm run build && mocha test/test.js && mocha test/test.js --partialUpdate && mocha test/test.js --assertError",
"test:coverage": "npm run generateDeclarations && ./node_modules/.bin/babel ./src --out-dir lib --extensions .ts && mocha test/test.js && mocha test/test.js --partialUpdate && mocha test/test.js --assertError",
"generateDeclarations": "node ./build_declarations_file.js ../../../interface/sdk-js/api/@internal/component/ets ./declarations ./lib false",
"postinstall": "node npm-install.js",

View File

@ -889,7 +889,7 @@ function validateMandatoryToInitViaParam(node: ts.CallExpression, customComponen
mandatoryToInitViaParamSet.forEach(item => {
if (item && !curChildProps.has(item)) {
log.push({
type: LogType.WARN,
type: LogType.ERROR,
message: `Property '${item}' in the custom component '${customComponentName}'` +
` is missing (mandatory to specify).`,
pos: node.getStart()

View File

@ -143,7 +143,7 @@
},
"validateMandatoryToInitViaParam": {
"message": "Property 'message' in the custom component 'Child' is missing (mandatory to specify).",
"type": "WARN"
"type": "ERROR"
},
"validateInitDecorator": {
"message": "Property 'message' must be initialized through the component constructor.",