From d98d4b899223d2cc49dde8bd3c5663a02fd60fa9 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Thu, 17 Oct 2019 13:46:42 +0000 Subject: [PATCH] Bug 23834: Add default ESLint configuration This patch adds a default ESLint configuration for use when editing JavaScript, as recommended in the coding guidelines: https://wiki.koha-community.org/wiki/Coding_Guidelines#JS8:_Follow_guidelines_set_by_ESLint Signed-off-by: Katrin Fischer --- .eslintrc.json | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .eslintrc.json diff --git a/.eslintrc.json b/.eslintrc.json new file mode 100644 index 0000000000..d4d775c4eb --- /dev/null +++ b/.eslintrc.json @@ -0,0 +1,21 @@ +{ + "env": { + "browser": true, + "jquery": true + }, + "extends": "eslint:recommended", + "rules": { + "indent": [ + "error", + 4 + ], + "linebreak-style": [ + "error", + "unix" + ], + "semi": [ + "error", + "always" + ] + } +} -- 2.11.0