diff --git a/CHANGELOG.md b/CHANGELOG.md index 51b80e1..908db0f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,18 @@ All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/). +## UNRELEASED + +### New features + +### New rules + +*(Estimated % of affected standard users, based on test suite in parens)* + +- 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%) + +### Changed rules + ## 13.1.0 - 2019-07-20 - Update `eslint` from `~6.0.1` to `~6.1.0` diff --git a/RULES.md b/RULES.md index db76218..d708ad2 100644 --- a/RULES.md +++ b/RULES.md @@ -37,8 +37,12 @@ your code. eslint: [`quotes`](http://eslint.org/docs/rules/quotes) ```js - console.log('hello there') - $("
") + console.log('hello there') // ✓ ok + console.log("hello there") // ✗ avoid + console.log(`hello there`) // ✗ avoid + + $("
") // ✓ ok + console.log(`hello ${name}`) // ✓ ok ``` * **No unused variables.** diff --git a/eslintrc.json b/eslintrc.json index 559f284..7861f56 100644 --- a/eslintrc.json +++ b/eslintrc.json @@ -1,3 +1,6 @@ { - "extends": ["standard", "standard-jsx"] + "extends": ["standard", "standard-jsx"], + "rules": { + "quotes": ["error", "single", { "avoidEscape": true }] + } }