forked from prebid/Prebid.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Define jscs and jshint settings to report on code quality and style standards. Updates code files to standards. In some cases adapters were also updated, while some jshint options are set to be ignored. This is not set to enforce quality at commit or build time ... yet. We will want to set that in place soon. Also, add support for babel and es6 syntax. See the file `test/helpers/pbjs-test-only.js` for an example of an ES6 module. This file is imported using ES6 syntax in the `test/spec/aliasBidder_spec.js` file and required the ES5 way in `test/spec/adUnits_spec.js`.
- Loading branch information
protonate
committed
Feb 23, 2016
1 parent
db38f6a
commit 858aadc
Showing
40 changed files
with
4,849 additions
and
4,707 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{ "presets": ["es2015"] } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# Built Files | ||
node_modules/ | ||
build/coverage | ||
build | ||
|
||
# Test Files | ||
test/app | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"maxErrors": 5000, | ||
"esnext": true, | ||
"requireTrailingComma": false, | ||
"requireCamelCaseOrUpperCaseIdentifiers": false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,16 @@ | ||
module.exports = { | ||
parseBrowserArgs: function(argv) { | ||
return (argv.browsers) ? argv.browsers.split(',') : []; | ||
}, | ||
toCapitalCase: function(str) { | ||
return str.charAt(0).toUpperCase() + str.slice(1); | ||
}, | ||
jsonifyHTML: function(str) { | ||
console.log(arguments); | ||
return str.replace(/\n/g, '') | ||
.replace(/<\//g, '<\\/') | ||
.replace(/\/>/g, '\\/>'); | ||
} | ||
}; | ||
parseBrowserArgs: function (argv) { | ||
return (argv.browsers) ? argv.browsers.split(',') : []; | ||
}, | ||
|
||
toCapitalCase: function (str) { | ||
return str.charAt(0).toUpperCase() + str.slice(1); | ||
}, | ||
|
||
jsonifyHTML: function (str) { | ||
console.log(arguments); | ||
return str.replace(/\n/g, '') | ||
.replace(/<\//g, '<\\/') | ||
.replace(/\/>/g, '\\/>'); | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.