Skip to content

Commit

Permalink
abc order in readme, copy from package.json into test
Browse files Browse the repository at this point in the history
  • Loading branch information
goatslacker committed Jan 16, 2015
1 parent a98d103 commit d869640
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 23 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,14 @@ When the options are set to true they are enabled. To get a breakdown of what is
* `invokeConstructors` - Adds `()` to any new expressions
* `isNan` - Replaces equality to NaN with isNaN
* `multivar` - Replace single var with multi line var
* `no-comma-dangle` - Removes trailing commas
* `nonew` - Removes new when using it for side effects
* `parseIntRadix` - Adds a radix parameter to parseInt
* `plusplus` - Converts `++` and `--` to `+= 1` || `-= 1`
* `rmdelete` - Removes the deletion of variables
* `rmempty` - Removes empty statements
* `snakecase` - Convert all identifiers to snake_case
* `sub` - Dot notation conversion
* `no-comma-dangle` - Removes trailing commas
* `useLiteral` - Rewrites your primitives to use their literal form


Expand Down
48 changes: 26 additions & 22 deletions test/all-options-test.js
Original file line number Diff line number Diff line change
@@ -1,28 +1,32 @@
module.exports = function (f, assert) {
/*jshint quotmark: double*/
var options = {
camelcase: false,
curly: false,
curlyfor: false,
curlyif: false,
curlywhile: false,
debug: false,
decimals: false,
eqeqeq: false,
initUndefined: false,
invalidConstructor: false,
invokeConstructors: false,
isNan: false,
multivar: false,
'no-comma-dangle': false,
nonew: false,
parseIntRadix: false,
plusplus: false,
rmdelete: false,
rmempty: false,
snakecase: false,
sub: false,
useLiteral: false
"camelcase": false,
"curly": true,
"curlyfor": false,
"curlyif": false,
"curlywhile": false,
"debug": true,
"decimals": true,
"eqeqeq": false,
"es3": true,
"initUndefined": true,
"invalidConstructor": true,
"invokeConstructors": true,
"isNan": true,
"multivar": false,
"no-comma-dangle": true,
"nonew": false,
"parseIntRadix": true,
"plusplus": true,
"rmdelete": true,
"rmempty": true,
"snakecase": false,
"sub": true,
"useLiteral": true
}

/*jshint quotmark: single*/
return {
'all the options false': function () {
var code = 'var foo;'
Expand Down

0 comments on commit d869640

Please sign in to comment.