Skip to content

Commit

Permalink
Disallow use of the void operator (no-void)
Browse files Browse the repository at this point in the history
  • Loading branch information
feross committed Aug 13, 2019
1 parent 745b3ed commit fbf7d5e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ This project adheres to [Semantic Versioning](https://semver.org/).
- JSX: Enforce no spaces before closing brackets (i.e. no `<div >` or `</div >`) [#1348](https://github.com/standard/standard/issues/1348) [eslint-config-standard-jsx/38](https://github.com/standard/eslint-config-standard-jsx/pull/38) (0%)
- Disallow template literals when placeholders or tagged template features are not used. ([quotes](https://eslint.org/docs/rules/quotes)) [#838](https://github.com/standard/standard/issues/838) [eslint-config-standard/#151](https://github.com/standard/eslint-config-standard/pull/151) (1%)
- Pipeline operators should appear at the start of a line ([operator-linebreak](https://eslint.org/docs/rules/operator-linebreak)) [eslint-config-standard/#121](https://github.com/standard/eslint-config-standard/pull/121) (0%)
- Disallow use of the void operator ([no-void](https://eslint.org/docs/rules/no-void)) [eslint-config-standard/#135](https://github.com/standard/eslint-config-standard/pull/135) (0%)

### Changed rules

Expand Down
1 change: 1 addition & 0 deletions eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
}],
"lines-between-class-members": ["error", "always", { "exceptAfterSingleLine": true }],
"no-self-assign": ["error", { "props": true }],
"no-void": "error",
"operator-linebreak": ["error", "after", { "overrides": { "?": "before", ":": "before", "|>": "before" } }],
"quotes": ["error", "single", { "avoidEscape": true }],

Expand Down

0 comments on commit fbf7d5e

Please sign in to comment.