From 56cfa30d1a18a53b2fb32e147d7596f92b06756c 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 --- .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 00000000000..d4d775c4ebb --- /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