polleverywhere/coffeelint-prefer-double-quotes

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

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

coffeelint-prefer-double-quotes

==================================

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
How to Install
  1. add "coffeelint-prefer-double-quotes": "0.1.0" as devDependencies in package.json
  2. npm install
How to Use

In your coffeelint.json, add


 other lint rules

"prefer_double_quotes": {
  "module": "coffeelint-prefer-double-quotes",
  "level": "error"
}


and run coffeelint.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.