From fbf7d5ed5545473365f6c4071b586109f9b85509 Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Mon, 12 Aug 2019 20:47:47 -0700 Subject: [PATCH] Disallow use of the void operator (no-void) Fixes: https://github.com/standard/eslint-config-standard/pull/135 --- CHANGELOG.md | 1 + eslintrc.json | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0d22d26d3..59ca774e0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,7 @@ This project adheres to [Semantic Versioning](https://semver.org/). - JSX: Enforce no spaces before closing brackets (i.e. no `
` or `
`) [#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 diff --git a/eslintrc.json b/eslintrc.json index ec30daba1..7d0c21f4a 100644 --- a/eslintrc.json +++ b/eslintrc.json @@ -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 }],