diff --git a/README.md b/README.md index 27f6b94..9f2225c 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,7 @@ module.exports = { // *** Usage: refer to unit test documents for specific rules *** rules: { // It is forbidden to use parameters in the @Body - 'authing-nestjs/forbid_body_parameters': 'warn', // or 'error' + 'authing-nestjs/forbid_body_parameters': 'warn', // default 'error' // It is forbidden to read body from Req 'authing-nestjs/forbid_read_body_from_req': 'warn', diff --git a/src/index.ts b/src/index.ts index 02923ae..803d9d6 100644 --- a/src/index.ts +++ b/src/index.ts @@ -13,10 +13,10 @@ export const rules = { export const configs = { recommended: { rules: { - 'authing-nestjs/forbid_body_parameters': 1, - 'authing-nestjs/forbid_read_body_from_req': 1, - 'authing-nestjs/use_class_as_type_in_method_of_controller': 1, - 'authing-nestjs/use_class_validator_to_dto': 1 + 'authing-nestjs/forbid_body_parameters': 2, + 'authing-nestjs/forbid_read_body_from_req': 2, + 'authing-nestjs/use_class_as_type_in_method_of_controller': 2, + 'authing-nestjs/use_class_validator_to_dto': 2 } } }