Enforced quote style and indentation

This commit is contained in:
Colin Eberhardt
2015-10-05 13:18:27 +01:00
parent 0f43977bb2
commit c33e255182
4 changed files with 21 additions and 21 deletions

View File

@@ -106,7 +106,7 @@
"no-undef-init": 2, "no-undef-init": 2,
"no-undef": 0, "no-undef": 0,
"no-undefined": 0, "no-undefined": 0,
"no-unused-vars": 0, "no-unused-vars": 2,
"no-use-before-define": 0, "no-use-before-define": 0,
"handle-callback-err": 2, "handle-callback-err": 2,
"no-mixed-requires": 2, "no-mixed-requires": 2,
@@ -123,7 +123,7 @@
"eol-last": 2, "eol-last": 2,
"func-names": 0, "func-names": 0,
"func-style": 0, "func-style": 0,
"indent": 0, "indent": [2, 2, {"SwitchCase": 1}],
"key-spacing": 2, "key-spacing": 2,
"linebreak-style": 2, "linebreak-style": 2,
"new-cap": 2, "new-cap": 2,
@@ -148,7 +148,7 @@
"operator-linebreak": 0, "operator-linebreak": 0,
"padded-blocks": 0, "padded-blocks": 0,
"quote-props": 0, "quote-props": 0,
"quotes": 0, "quotes": [2, "single"],
"semi-spacing": 2, "semi-spacing": 2,
"semi": 0, "semi": 0,
"sort-vars": 0, "sort-vars": 0,

View File

@@ -57,7 +57,7 @@ function __transpileToCSharpCommon(code) {
.replace(/(CSSConstants|CSSWrap|CSSJustify|CSSAlign|CSSPositionType)\.([_A-Z]+)/g, .replace(/(CSSConstants|CSSWrap|CSSJustify|CSSAlign|CSSPositionType)\.([_A-Z]+)/g,
function (str, match1, match2) { function (str, match1, match2) {
return match1 + "." + constantToPascalCase(match2); return match1 + '.' + constantToPascalCase(match2);
}); });
} }
@@ -114,7 +114,7 @@ function __transpileSingleTestToCSharp(code) {
.replace(/(CSSWrap|CSSFlexDirection)\.([_A-Z]+)/g, .replace(/(CSSWrap|CSSFlexDirection)\.([_A-Z]+)/g,
function (str, match1, match2) { function (str, match1, match2) {
return match1 + "." + constantToPascalCase(match2); return match1 + '.' + constantToPascalCase(match2);
}); });
} }
@@ -162,8 +162,8 @@ var CSharpTranspiler = {
var allTestsInCSharp = []; var allTestsInCSharp = [];
for (var i = 0; i < allTestsInC.length; i++) { for (var i = 0; i < allTestsInC.length; i++) {
allTestsInCSharp[i] = allTestsInCSharp[i] =
" [Test]\n" + ' [Test]\n' +
" public void TestCase" + i + "()\n" + ' public void TestCase' + i + '()\n' +
__transpileSingleTestToCSharp(allTestsInC[i]); __transpileSingleTestToCSharp(allTestsInC[i]);
} }
return allTestsInCSharp.join('\n\n'); return allTestsInCSharp.join('\n\n');