Skip to content

Commit 38974ad

Browse files
committed
Disallow use of the void operator (no-void)
Fixes: standard/eslint-config-standard#135
1 parent a2d5af5 commit 38974ad

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ This project adheres to [Semantic Versioning](https://semver.org/).
1818
- 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%)
1919
- 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%)
2020
- 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%)
21+
- 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%)
2122

2223
### Changed rules
2324

eslintrc.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
}],
2121
"lines-between-class-members": ["error", "always", { "exceptAfterSingleLine": true }],
2222
"no-self-assign": ["error", { "props": true }],
23+
"no-void": "error",
2324
"operator-linebreak": ["error", "after", { "overrides": { "?": "before", ":": "before", "|>": "before" } }],
2425
"quotes": ["error", "single", { "avoidEscape": true }],
2526

0 commit comments

Comments
 (0)