mirror of
https://github.com/h5bp/html5-boilerplate.git
synced 2026-01-08 22:28:10 -05:00
This change is done in order to ensure that Windows users don't encounter any newline related issues. e.g.: Prior to this change, after the build script was run, files from `node_modules` (having `LF` newlines, and which wouldn't have be normalized by `git`) would be copied to the `dist/` directory and would appear to Windows users as if they where changed. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Thanks to @XhmikosR for pointing this out! Ref http://git-scm.com/docs/gitattributes#_effects http://en.wikipedia.org/wiki/Newline Close h5bp/html5-boilerplate#1618
69 lines
1.9 KiB
Plaintext
69 lines
1.9 KiB
Plaintext
{
|
|
"disallowEmptyBlocks": true,
|
|
"disallowKeywords": [
|
|
"with"
|
|
],
|
|
"disallowMixedSpacesAndTabs": true,
|
|
"disallowMultipleLineStrings": true,
|
|
"disallowMultipleVarDecl": true,
|
|
"disallowSpaceAfterPrefixUnaryOperators": [
|
|
"!",
|
|
"+",
|
|
"++",
|
|
"-",
|
|
"--",
|
|
"~"
|
|
],
|
|
"disallowSpaceBeforeBinaryOperators": [
|
|
","
|
|
],
|
|
"disallowSpaceBeforePostfixUnaryOperators": true,
|
|
"disallowSpacesInNamedFunctionExpression": {
|
|
"beforeOpeningRoundBrace": true
|
|
},
|
|
"disallowSpacesInsideArrayBrackets": true,
|
|
"disallowSpacesInsideParentheses": true,
|
|
"disallowTrailingComma": true,
|
|
"disallowTrailingWhitespace": true,
|
|
"requireCamelCaseOrUpperCaseIdentifiers": true,
|
|
"requireCapitalizedConstructors": true,
|
|
"requireCommaBeforeLineBreak": true,
|
|
"requireCurlyBraces": true,
|
|
"requireDotNotation": true,
|
|
"requireLineFeedAtFileEnd": true,
|
|
"requireParenthesesAroundIIFE": true,
|
|
"requireSpaceAfterBinaryOperators": true,
|
|
"requireSpaceAfterKeywords": [
|
|
"catch",
|
|
"do",
|
|
"else",
|
|
"for",
|
|
"if",
|
|
"return",
|
|
"switch",
|
|
"try",
|
|
"while"
|
|
],
|
|
"requireSpaceAfterLineComment": true,
|
|
"requireSpaceBeforeBinaryOperators": true,
|
|
"requireSpaceBeforeBlockStatements": true,
|
|
"requireSpacesInAnonymousFunctionExpression": {
|
|
"beforeOpeningCurlyBrace": true
|
|
},
|
|
"requireSpacesInConditionalExpression": true,
|
|
"requireSpacesInFunctionDeclaration": {
|
|
"beforeOpeningCurlyBrace": true
|
|
},
|
|
"requireSpacesInFunctionExpression": {
|
|
"beforeOpeningCurlyBrace": true
|
|
},
|
|
"requireSpacesInNamedFunctionExpression": {
|
|
"beforeOpeningCurlyBrace": true
|
|
},
|
|
"requireSpacesInsideObjectBrackets": "allButNested",
|
|
"validateIndentation": 4,
|
|
"validateLineBreaks": "LF",
|
|
"validateParameterSeparator": ", ",
|
|
"validateQuoteMarks": "'"
|
|
}
|