summaryrefslogtreecommitdiff
path: root/.jshintrc
Commit message (Collapse)AuthorAgeFilesLines
* Use pkg.initGettextDamián Nohales2015-01-051-1/+1
| | | | | | | This initializes gettext for us and declares "_", "C_" and "N_" functions implicitly. https://bugzilla.gnome.org/show_bug.cgi?id=733411
* Convert to Gjs "package.js" application conventionsDamián Nohales2015-01-051-1/+1
| | | | | | | | | | | Unify resource names and GSettings schemas as org.gnome.Maps. Remove the C shim which is not needed. Copy the Makefiles from gtk-js-app, and replace the names appropriately Remove the config.js and path.js modules, as their functionality is provided by package.js Remove C compiler dependency. https://bugzilla.gnome.org/show_bug.cgi?id=733411
* JSHint: Allow unsafe lineendingsMattias Bengtsson2014-10-161-1/+1
| | | | | | | | | | This is meant as a way to protect oneself from beeing bitten by JavaScripts Automatic Semicolon Insertion. Since this is already covered by the "asi" option in JSHint and it warns on existing code with operators first we'll relax this check. https://bugzilla.gnome.org/show_bug.cgi?id=699967
* JSHint: Allow late function definitionsMattias Bengtsson2014-10-161-1/+1
| | | | | | | | | | | By default JSHint warns when you use functions before they are defined. That's not really necessary, and it's sometimes convenient to define functions in "backwards" order. This patch makes JSHint only complain about using variables before they are declared, not functions. https://bugzilla.gnome.org/show_bug.cgi?id=699967
* JSHint: Allow multi line stringsMattias Bengtsson2014-10-161-1/+1
| | | | | | | | | | JSHint defaults to not allow multi line strings, probably because of buggy browser implementations. This shouldn't affect us, and is handy when doing dbus calls so allow this. https://bugzilla.gnome.org/show_bug.cgi?id=699967
* Add a .jshintrc config fileMattias Bengtsson2013-07-301-0/+82
This commit adds a config file for the javascript linter jshint. It doesn't add any dependencies on jshint, but helps me checking my code for style errors before commits. The config file is set up according to what I believe our coding conventions are. https://bugzilla.gnome.org/show_bug.cgi?id=704537