Build: Style updates

Ref #14246
This commit is contained in:
Alexander Schmitz 2015-08-24 09:36:06 -04:00
parent eefe81bbee
commit 3d43f0d7a4
3 changed files with 13 additions and 4 deletions

10
.jscsrc
View File

@ -1,8 +1,14 @@
{
"preset": "jquery",
// disabled until `widget_slice` et al are addressed
"requireCamelCaseOrUpperCaseIdentifiers": null,
// This is currently unenforcable see https://github.com/jscs-dev/node-jscs/issues/1686
"requireCapitalizedComments": null,
// Until we drop IE8 this prevents things like warning on float keyword
"es3": true,
// We want to output all errors
"maxErrors": 1000000,
// Ref https://github.com/jquery/contribute.jquery.org/issues/80#issuecomment-45253460
"maximumLineLength": null

View File

@ -139,7 +139,10 @@ grunt.initConfig({
jscs: {
all: {
options: {
requireCapitalizedComments: null
requireCapitalizedComments: null,
fix: true,
maxErrors: 5000000,
config: ".jscsrc"
},
files: {
src: [ "demos/**/*.js", "build/**/*.js", "tests/**/*.js", "ui/**/*.js" ]

View File

@ -253,7 +253,7 @@ test( "createPlaceholder: preserves layout affecting properties", function() {
deepEqual( before.position.top - position, placeholder.position().top, "position top preserved" );
deepEqual( before.position.left - position, placeholder.position().left, "position left preserved" );
deepEqual( before.float, placeholder.css( "float" ), "float preserved" );
deepEqual( before[ "float" ], placeholder.css( "float" ), "float preserved" );
deepEqual( before.outerWidth, placeholder.outerWidth( true ), "width preserved" );
deepEqual( before.outerHeight, placeholder.outerHeight( true ), "height preserved" );
} );