quotes rule confused by `""''`
See original GitHub issueTell us about your environment
- ESLint Version: 4.8.0
- Node Version: 8.6.0
- npm Version: 5.5.1
What parser (default, Babel-ESLint, etc.) are you using? babel-eslint
Please show your full configuration:
Configuration
{
"env": {
"node": true
},
"parser": "babel-eslint",
"rules": {
// key: 0 = allow, 1 = warn, 2 = error
"comma-dangle": [0, "always-multiline"],
"global-strict": [0],
"no-process-exit": [0],
"no-underscore-dangle": [0],
"no-use-before-define": [0],
"quotes": [1, "single", "avoid-escape"],
"strict": [2, "never"]
}
}
What did you do? Please include the actual source code causing the issue.
const md = MarkdownIt({
quotes: `""''`,
});
What did you expect to happen?
No lints.
What actually happened? Please include the actual, raw output from ESLint.
/Users/glh/code/masochist/src/server/schema/types/MarkupType.js
68:11 warning Strings must use singlequote quotes
✖ 1 problem (0 errors, 1 warning)
0 errors, 1 warning potentially fixable with the `--fix` option.
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Quotation Marks | Rules and Examples
Quotation marks are punctuation marks used in pairs to set off speech, ... Rule 1. Use double quotation marks to set off a...
Read more >Quotation Marks (") - Rules and Examples - Grammarist
If you are using a quote between quotation marks, use the single-quote mark to avoid confusion. This single mark within quotation marks use...
Read more >Basic Grammar and Punctuation: Quotes - LibGuides
Quotes are sometimes used for titles. This can be confusing. Double-check what the style guide you are using – MLA or APA –...
Read more >Nine Rules You Need to Know About Quotation Marks
Much of the confusion is caused by opposing rules for quotation marks between the two styles of American English and British English.
Read more >Single Quotation Marks Versus Double ... - Quick and Dirty Tips
For example, “Aardvark quoted Squiggly.” “Quotation” is a noun used to describe what you are quoting, as in “Squiggly's quotation was inspiring.”
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Related: https://github.com/eslint/eslint/issues/7660
Thanks for your interest in improving ESLint. Unfortunately, it looks like this issue didn’t get consensus from the team, so I’m closing it. We define consensus as having three 👍s from team members, as well as a team member willing to champion the proposal. This is a high bar by design – we can’t realistically accept and maintain every feature request in the long term, so we only accept feature requests which are useful enough that there is consensus among the team that they’re worth adding.
Since ESLint is pluggable and can load custom rules at runtime, the lack of consensus among the ESLint team doesn’t need to be a blocker for you using this in your project, if you’d find it useful. It just means that you would need to implement the rule yourself, rather than using a bundled rule that is packaged with ESLint.