Skip to content

Commit

Permalink
fix(check-examples): disable no-new for check-examples and defa…
Browse files Browse the repository at this point in the history
…ult param checking
  • Loading branch information
brettz9 committed Jan 3, 2021
1 parent eef2a27 commit 590d54e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions .README/rules/check-examples.md
Expand Up @@ -155,6 +155,7 @@ expression-oriented rules will be used by default as well:
* `quotes` - Will insist on "double".
* `semi` - Will insist on "never"
* `strict` - Disabled.
* `no-new` - Disabled.
* `no-unused-expressions` - Disabled.

##### Options for checking other than `@example` (`checkDefaults`, `checkParams`, or `checkProperties`)
Expand Down
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -1044,6 +1044,7 @@ expression-oriented rules will be used by default as well:
* `quotes` - Will insist on "double".
* `semi` - Will insist on "never"
* `strict` - Disabled.
* `no-new` - Disabled.
* `no-unused-expressions` - Disabled.

<a name="eslint-plugin-jsdoc-rules-check-examples-options-for-determining-eslint-rule-applicability-allowinlineconfig-nodefaultexamplerules-matchingfilename-configfile-checkeslintrc-and-baseconfig-options-for-checking-other-than-example-checkdefaults-checkparams-or-checkproperties"></a>
Expand Down
1 change: 1 addition & 0 deletions src/rules/checkExamples.js
Expand Up @@ -76,6 +76,7 @@ const defaultMdRules = {

const defaultExpressionRules = {
...defaultMdRules,
'no-new': 'off',
'no-unused-expressions': 'off',
quotes: ['error', 'double'],
semi: ['error', 'never'],
Expand Down

0 comments on commit 590d54e

Please sign in to comment.