From 78f3189865656123e30b2087775339163782e4f3 Mon Sep 17 00:00:00 2001 From: tsmgeek Date: Thu, 17 Aug 2017 01:53:37 +0100 Subject: Add eslint config to match jscs --- web/.eslintignore | 1 + web/.eslintrc | 27 +++++++++++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 web/.eslintignore create mode 100644 web/.eslintrc (limited to 'web') diff --git a/web/.eslintignore b/web/.eslintignore new file mode 100644 index 0000000..3e0fc5c --- /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 0000000..bacc506 --- /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 -- cgit v1.2.3