aboutsummaryrefslogtreecommitdiffstats
path: root/.jshintrc
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2018-01-10 13:25:38 +0000
committerMatthew Somerville <matthew-github@dracos.co.uk>2018-01-10 13:25:38 +0000
commitf7f5918e7a9f9eb00e235232df9da43ebdd63944 (patch)
tree4e73609f8aabf9f1d2d12e8b423aadcf855ce162 /.jshintrc
parent70dacd4fe2de9eef582ae7e68ab9cc8ad2ead5ba (diff)
Add JSHint configuration, tidy up any warnings.
Diffstat (limited to '.jshintrc')
-rw-r--r--.jshintrc39
1 files changed, 39 insertions, 0 deletions
diff --git a/.jshintrc b/.jshintrc
new file mode 100644
index 000000000..fd4468af6
--- /dev/null
+++ b/.jshintrc
@@ -0,0 +1,39 @@
+{
+ "curly": true,
+ "forin": true,
+ "freeze": true,
+ "futurehostile": true,
+ "immed": true,
+ "indent": true,
+ "iterator": true,
+ "latedef": "nofunc",
+ "newcap": true,
+ "noarg": true,
+ "nocomma": true,
+ "noempty": true,
+ "nonbsp": true,
+ "nonew": true,
+ "undef": true,
+// "unused": true,
+
+ "browser": true,
+ "devel": true,
+ "jquery": true,
+
+ "globals": {
+ "fixmystreet": true,
+ "validation_rules": true,
+ "translation_strings": false,
+
+ "IntersectionObserver": false,
+
+ "accessibleAutocomplete": false,
+ "Chart": false,
+ "Dropzone": false,
+ "ga": false,
+ "google": false,
+ "Modernizr": false,
+ "OpenLayers": false,
+ "stamen": false
+ }
+}