[eslint config] add rule link and defaults to jsx-quotes rule

This commit is contained in:
Jordan Harband
2015-12-15 13:06:28 -08:00
parent 09bf5e8301
commit 28476a25d8

View File

@@ -26,7 +26,8 @@ module.exports = {
// https://github.com/eslint/eslint/blob/master/docs/rules/indent.md
'indent': [2, 2, { "SwitchCase": 1, "VariableDeclarator": 1 }],
// specify whether double or single quotes should be used in JSX attributes
'jsx-quotes': 2,
// http://eslint.org/docs/rules/jsx-quotes
'jsx-quotes': [2, 'prefer-double'],
// enforces spacing between keys and values in object literal properties
'key-spacing': [2, {'beforeColon': false, 'afterColon': true}],
// enforces empty lines around comments