15 Commits (be5d14eb278a8f9edaf8b575cbabd2dd8fd06455)

Author SHA1 Message Date
Arlo Breault 12c169e7b5 Convert PEG.js code to strict mode
* Issues #323
10 years ago
Arlo Breault f4d2357609 Make jshint aware of node globals 10 years ago
Arlo Breault 45e39c3ac8 Make generated parsers use strict mode
* Issue #324

 * JSHint complains about two possible strict violations. But are valid
   uses of `this`, so we suppress the warnings.
10 years ago
Arlo Breault b079a056a2 Suppress linting newcap
* When the "use strict"; directive is set, constructors called without
   `new` will set the execution context to undefined. JSHint tries to be
   clever and forces on newcap. Suppress this behaviour, especially
   because newcap has gone the way of the dodo.
10 years ago
David Majda f3a83788aa Inline functions extracted just because of JSHint
Rather than extracting functions just because JSHint complained about
defining functions inside a loop, let's inline then and silence the
warning.
11 years ago
David Majda 46ac1bf171 Wrap initializer code in generated parsers into |{...}|
Initializer code is usually indented and this indentation is carried
over to generated code. This resulted in a piece of indented code in the
middle of the parser.

This commit wraps initializer code in |{...}|, which makes indentation
in generated parsers look a bit more natural.
11 years ago
David Majda e7e4543bb4 .jshintrc: Remove the "sub" option 11 years ago
David Majda e20e907d8c .jshintrc: Add the "trailing" option 11 years ago
David Majda 4402f7fd86 .jshintrc: Add the "noarg" option 11 years ago
David Majda af54963233 .jshintrc: Add the "latedef" option 11 years ago
David Majda 4362ba190c .jshintrc: Add the "immed" option 11 years ago
David Majda 43eeabf03a .jshintrc: Add the "freeze" option 11 years ago
David Majda 95fd64ec15 .jshintrc: Add the "forin" option & fix fallout
Also added few missing |hasOwnProperty| calls that JSHint didn't detect
because it only looks whether there is an |if| statement wrapping the
loop body.
11 years ago
David Majda 50be1081e0 Sort JSHint options alphabetically 13 years ago
David Majda c7f99019c2 Add "jake hint" task that checks all javaScript files using JSHint
This currently outputs many issues. These will be fixed in subsequent
commits.
13 years ago