Skip to content

Commit

Permalink
Default to not raising errors for no-print
Browse files Browse the repository at this point in the history
  • Loading branch information
philippe-elsass-deltatre committed May 13, 2021
1 parent 4f48ec8 commit 6bdfe90
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ Default rules:
"condition-style": "no-group",
"named-function-style": "auto",
"anon-function-style": "auto",
"no-print": "off",

"type-annotations": "off",

Expand Down Expand Up @@ -125,6 +126,8 @@ Default rules:
- `auto`: use `sub` for `Void` functions, otherwise use `function` (**default**)
- `off`: no not validate

- `no-print`: prevent usage of `print` statements in code (`error | warn | info | off`)

### Strictness rules

- `type-annotations`: validation of presence of `as` type annotations, for function
Expand Down
2 changes: 1 addition & 1 deletion src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export function getDefaultRules(): BsLintConfig['rules'] {
'named-function-style': 'auto',
'anon-function-style': 'auto',
'type-annotations': 'off',
'no-print': 'warn'
'no-print': 'off'
};
}

Expand Down

0 comments on commit 6bdfe90

Please sign in to comment.