-
Notifications
You must be signed in to change notification settings - Fork 648
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
set up some linting (obvious errors only)
- Loading branch information
Showing
31 changed files
with
111 additions
and
361 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,2 @@ | ||
node_modules | ||
lib/static |
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,44 @@ | ||
# vim: syntax=yaml | ||
|
||
# | ||
# List of very light restrictions designed to prevent obvious errors, | ||
# not impose our own code style upon other contributors. | ||
# | ||
# This is supposed to be used with `eslint --reset` | ||
# | ||
# Created to work with [email protected] | ||
# | ||
|
||
env: | ||
node: true | ||
|
||
rules: | ||
# useful to have in node.js, | ||
# if you're sure you don't need to handle error, rename it to "_err" | ||
handle-callback-err: 2 | ||
|
||
# just to make sure we don't forget to remove them when releasing | ||
no-debugger: 2 | ||
|
||
# add "falls through" for those | ||
no-fallthrough: 2 | ||
|
||
# just warnings about whitespace weirdness here | ||
eol-last: 1 | ||
no-irregular-whitespace: 1 | ||
no-mixed-spaces-and-tabs: [1, smart-tabs] | ||
no-trailing-spaces: 1 | ||
|
||
# probably always an error, tell me if it's not | ||
no-new-require: 2 | ||
|
||
# single most important rule here, without it linting won't even | ||
# make any sense | ||
no-undef: 2 | ||
|
||
# in practice, those are always errors | ||
no-unreachable: 2 | ||
|
||
# useful for code clean-up | ||
no-unused-vars: [1, {"vars": "all", "args": "none"}] | ||
|
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,8 @@ | ||
|
||
env: | ||
node: true | ||
browser: true | ||
|
||
globals: | ||
jQuery: 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
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
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.