Skip to content

Commit

Permalink
feat: use 'error' instead of 'warning'
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaoyiming0803 committed Feb 7, 2022
1 parent 62638ba commit 2207a54
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
8 changes: 4 additions & 4 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
}

0 comments on commit 2207a54

Please sign in to comment.