diff options
author | tsmgeek <tsmgeek@gmail.com> | 2017-08-17 01:53:37 +0100 |
---|---|---|
committer | tsmgeek <tsmgeek@gmail.com> | 2017-08-17 01:53:37 +0100 |
commit | 78f3189865656123e30b2087775339163782e4f3 (patch) | |
tree | 7aa7ba6566022e6f413243d14c0a5c593678fffa | |
parent | 5d6fb73d838399b94cfca61e67bcde7cf6e3c813 (diff) | |
download | trackermap-web-78f3189865656123e30b2087775339163782e4f3.tar.gz trackermap-web-78f3189865656123e30b2087775339163782e4f3.tar.bz2 trackermap-web-78f3189865656123e30b2087775339163782e4f3.zip |
Add eslint config to match jscs
-rw-r--r-- | web/.eslintignore | 1 | ||||
-rw-r--r-- | web/.eslintrc | 27 |
2 files changed, 28 insertions, 0 deletions
diff --git a/web/.eslintignore b/web/.eslintignore new file mode 100644 index 00000000..3e0fc5c5 --- /dev/null +++ b/web/.eslintignore @@ -0,0 +1 @@ +simple/app.js
\ No newline at end of file diff --git a/web/.eslintrc b/web/.eslintrc new file mode 100644 index 00000000..bacc506c --- /dev/null +++ b/web/.eslintrc @@ -0,0 +1,27 @@ +{
+ "extends": "crockford",
+
+ // Custom Globals
+ "globals" : {
+ "Ext" : false,
+ "ol" : false,
+ "Traccar" : false,
+ "Strings" : false,
+ "Locale" : false,
+ "proj4" : false
+ },
+
+ "rules": {
+ "indent": ["error", 4,
+ {
+ "SwitchCase":1
+ }
+ ],
+ "dot-notation": 0,
+ "comma-spacing": [2,
+ {
+ "after": true
+ }
+ ]
+ }
+}
\ No newline at end of file |