Skip to content
This repository was archived by the owner on Sep 19, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions .jscsrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"preset": "google",
"fileExtensions": [".js", "jscs"],

"requireSemicolons": true,
"requireParenthesesAroundIIFE": true,
"maximumLineLength": 120,
"validateLineBreaks": "LF",
"validateIndentation": 4,
"disallowTrailingComma": true,
"disallowUnusedParams": true,

"disallowSpacesInsideObjectBrackets": null,
"disallowImplicitTypeConversion": ["string"],

"safeContextKeyword": "_this",

"jsDoc": {
"checkAnnotations": "closurecompiler",
"checkParamNames": true,
"requireParamTypes": true,
"checkRedundantParams": true,
"checkReturnTypes": true,
"checkRedundantReturns": true,
"requireReturnTypes": true,
"checkTypes": "capitalizedNativeCase",
"checkRedundantAccess": true,
"requireNewlineAfterDescription": true
},

"excludeFiles": [
"test/data/**",
"patterns/*",
"node_modules"
]
}
1 change: 1 addition & 0 deletions .jshintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
10 changes: 10 additions & 0 deletions .jshintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"node" : true,
"bitwise" : true,
"undef" : true,
"eqeqeq" : true,
"noarg" : true,
"mocha" : true,
"unused" : true,
"asi" : true
}
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,13 @@
"browserify": "~11.1.0",
"chai": "~3.2.0",
"istanbul": "~0.3.17",
"jscs": "^2.1.1",
"jshint": "^2.8.0",
"mocha": "~2.3.2",
"moment": "~2.10.6"
},
"scripts": {
"lint": "jshint . && jscs .",
"docs": "npm run example && npm run readme",
"readme": "mdp --force -v",
"example": "mdp --force -v -i doc/example.json -o EXAMPLE.md",
Expand Down