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
```sh | |
$ grunt | |
Running "concat:dist" (concat) task | |
File dist/jquery-migrate.js created. | |
Running "uglify:all" (uglify) task | |
>> 1 file created. | |
Running "jshint:dist" (jshint) task | |
>> 1 file lint free. |
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
/*! | |
* jQuery JavaScript Library v3.0.0-pre | |
* http://jquery.com/ | |
* | |
* Includes Sizzle.js | |
* http://sizzlejs.com/ | |
* | |
* Copyright jQuery Foundation and other contributors | |
* Released under the MIT license | |
* http://jquery.org/license |
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
[ | |
{ | |
"type": "FunctionDeclaration", | |
"start": 0, | |
"end": 34, | |
"loc": { | |
"start": { | |
"line": 1, | |
"column": 0 | |
}, |
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
{ | |
configure: ... | |
getOptionName: ... | |
check: ... | |
format: /* global function for whitespace imported through `require` */ | |
// or | |
format: /* string option "whitespace" which would signify what kind of manipulation should be done */ | |
// or | |
format: /* "complicated" format function for hard to do rules */ |
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
// Deprecate and remove: | |
/* | |
* (require | disallow)SpacesInFunctionExpression | |
* (require | disallow)requireSpacesInFunction | |
*/ | |
{ | |
options: { | |
additionalRules: [], | |
plugins: [], | |
fileExtensions: [], |
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
{ | |
codeBlocks: { | |
curlyBraces: { | |
operators: true || [], | |
expect: [ "return", "break" ] | |
}, | |
newlineBefore: { | |
statements: true, | |
expect: [ "for..of", "for" ] |
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
// See http://api.jquery.com/jQuery.ajax/#entry-examples | |
$.xhr( "some.php" ) | |
.method( "POST" ) | |
.send({ name: "John", location: "Boston" }) | |
.then(function( xhr ) { | |
alert( "Data Saved:" + xhr.responseText ); | |
}); | |
$.xhr( "test.html" ) |
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
file.iterateTokensByType("type", function() { | |
file === this // true | |
}); |
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
it('should not require between simple arguments', function() { | |
assert(checker.checkString('foo(a,b);').getErrorCount() === 2); | |
assert(checker.checkString('foo( a,b);').getErrorCount() === 1); | |
assert(checker.checkString('foo( a,b );').isEmpty()); | |
}); | |
it('should not require spaces for empty arguments list', function() { | |
assert(checker.checkString('foo();').isEmpty()); | |
}); |
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
$.xhr( "url", { | |
method: "post", | |
timeout: 1000, | |
}); | |
// Same as | |
$.xhr( "url" ).method( "post" ).timeout( 1000 ) | |
NewerOlder