Permalink
Browse files

add jscs to build process. most rules disabled for now.

  • Loading branch information...
1 parent 2d43b23 commit 3917cc749e32f2f098dc756367a938de7597869f @mcarver mcarver committed Oct 27, 2015
Showing with 70 additions and 1 deletion.
  1. +68 −0 .jscsrc
  2. +2 −1 package.json
View
@@ -0,0 +1,68 @@
+{
+ "disallowCommaBeforeLineBreak": null,
+ "disallowDanglingUnderscores": false,
+ "disallowEmptyBlocks": false,
+ "disallowImplicitTypeConversion": null,
+ "disallowKeywordsOnNewLine": null,
+ "disallowKeywords": null,
+ "disallowMixedSpacesAndTabs": null,
+ "disallowMultipleLineBreaks": false,
+ "disallowMultipleLineStrings": false,
+ "disallowMultipleVarDecl": null,
+ "disallowPaddingNewlinesInBlocks": null,
+ "disallowQuotedKeysInObjects": null,
+ "disallowSpaceAfterBinaryOperators": null,
+ "disallowSpaceAfterKeywords": null,
+ "disallowSpaceAfterLineComment": null,
+ "disallowSpaceAfterObjectKeys": null,
+ "disallowSpaceAfterPrefixUnaryOperators": null,
+ "disallowSpaceBeforeBinaryOperators": null,
+ "disallowSpaceBeforeBlockStatements": null,
+ "disallowSpaceBeforePostfixUnaryOperators": false,
+ "disallowSpacesInAnonymousFunctionExpression": null,
+ "disallowSpacesInConditionalExpression": null,
+ "disallowSpacesInFunctionDeclaration": null,
+ "disallowSpacesInFunctionExpression": null,
+ "disallowSpacesInNamedFunctionExpression": null,
+ "disallowSpacesInsideArrayBrackets": null,
+ "disallowSpacesInsideObjectBrackets": null,
+ "disallowSpacesInsideParentheses": null,
+ "disallowTrailingComma": null,
+ "disallowTrailingWhitespace": false,
+ "disallowYodaConditions": false,
+ "maximumLineLength": null,
+ "requireAlignedObjectValues": null,
+ "requireBlocksOnNewline": false,
+ "requireCamelCaseOrUpperCaseIdentifiers": null,
+ "requireCapitalizedConstructors": false,
+ "requireCommaBeforeLineBreak": false,
+ "requireCurlyBraces": null,
+ "requireDotNotation": null,
+ "requireKeywordsOnNewLine": null,
+ "requireLineFeedAtFileEnd": false,
+ "requireMultipleVarDecl": false,
+ "requireOperatorBeforeLineBreak": null,
+ "requirePaddingNewlinesInBlocks": false,
+ "requireParenthesesAroundIIFE": false,
+ "requireSpaceAfterBinaryOperators": null,
+ "requireSpaceAfterKeywords": null,
+ "requireSpaceAfterLineComment": null,
+ "requireSpaceAfterObjectKeys": null,
+ "requireSpaceAfterPrefixUnaryOperators": null,
+ "requireSpaceBeforeBinaryOperators": false,
+ "requireSpaceBeforeBlockStatements": null,
+ "requireSpaceBeforePostfixUnaryOperators": null,
+ "requireSpacesInAnonymousFunctionExpression": null,
+ "requireSpacesInConditionalExpression": false,
+ "requireSpacesInFunctionDeclaration": null,
+ "requireSpacesInFunctionExpression": null,
+ "requireSpacesInNamedFunctionExpression": null,
+ "requireSpacesInsideArrayBrackets": null,
+ "requireSpacesInsideObjectBrackets": null,
+ "requireSpacesInsideParentheses": null,
+ "requireTrailingComma": false,
+ "safeContextKeyword": null,
+ "validateIndentation": null,
+ "validateLineBreaks": null,
+ "validateQuoteMarks": false
+}
View
@@ -51,6 +51,7 @@
"i18next": "^1.10.4",
"jquery": "^2.1.4",
"jscat": "0.0.2",
+ "jscs": "^2.4.0",
"jshint": "^2.8.0",
"leaflet": "^0.7.3",
"mkdirp": "^0.5.1",
@@ -68,7 +69,7 @@
"scripts": {
"postinstall": "npm run build",
"clean": "rimraf dist/favicon.ico dist/sitemap.xml dist/index.html dist/files/fonts dist/files/images dist/files/locales dist/files/scripts dist/files/styles dist/s dist/v dist/w",
- "lint-scripts": "jshint assets/scripts/custom",
+ "lint-scripts": "jshint assets/scripts/custom && jscs -v assets/scripts/custom",
"lint-styles": "csslint assets/styles",
"lint-markup": "htmllint assets/markup/*.html && htmllint assets/markup/**/*.html",
"concat-vendor-scripts": "jscat node_modules/jquery/dist/jquery.min.js node_modules/i18next/node_modules/i18next-client/i18next.min.js node_modules/leaflet/dist/leaflet.js assets/scripts/vendor/FileSaver.min.js assets/scripts/vendor/jquery.ddslick.min.js assets/scripts/vendor/jquery.nicescroll.min.js assets/scripts/vendor/leaflet.plugins.js > dist/files/scripts/vendor.bundle.js && uglifyjs assets/scripts/vendor/leaflet-hash-params.js assets/scripts/vendor/leaflet-search.js --compress >> dist/files/scripts/vendor.bundle.js",

0 comments on commit 3917cc7

Please sign in to comment.