Name: coffeelint-prefer-double-quotes
Owner: Poll Everywhere
Description: A coffeelint plugin that prefers double quotes over single quotes
Created: 2015-02-19 21:56:51.0
Updated: 2017-10-01 15:11:41.0
Pushed: 2015-02-19 22:51:19.0
Homepage: null
Size: 104
Language: CoffeeScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
==================================
Influenced by https://github.com/parakeety/coffeelint-prefer-english-operator. and https://github.com/clutchski/coffeelint/blob/5d818a5a4b4310cc147614e54d972b23f47cad88/src/rules/no_unnecessary_double_quotes.coffee
coffeelint-prefer-double-quotes is a plugin of coffeelint. It insists that all strings use double quotes unless they:
lo" # yes
lo" # no
lo #{myVar}" # yes
lo #{myVar}' # yes, but note that it prints out something different than the above line.
said, "Hello" to me' # yes
said, 'Hello' to me" # yes
"coffeelint-prefer-double-quotes": "0.1.0"
as devDependencies
in package.json
npm install
In your coffeelint.json
, add
other lint rules
"prefer_double_quotes": {
"module": "coffeelint-prefer-double-quotes",
"level": "error"
}
and run coffeelint
.