mirror of
https://gitee.com/openharmony/developtools_ace_ets2bundle
synced 2024-11-23 08:29:55 +00:00
@Link check warn upgrade to ERROR Signed-off-by: bojiang <jiangbo91@huawei.com> Change-Id: I4568971eec8931b7feb1fe4810b2ad670f243448
This commit is contained in:
parent
0a6d321844
commit
49a861fd2e
@ -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",
|
||||
|
@ -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()
|
||||
|
@ -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.",
|
||||
|
Loading…
Reference in New Issue
Block a user