Bugzilla – Attachment 94373 Details for
Bug 23834
Add default ESLint configuration
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 23834: Add default ESLint configuration
Bug-23834-Add-default-ESLint-configuration.patch (text/plain), 1.04 KB, created by
Owen Leonard
on 2019-10-17 13:51:14 UTC
(
hide
)
Description:
Bug 23834: Add default ESLint configuration
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2019-10-17 13:51:14 UTC
Size:
1.04 KB
patch
obsolete
>From 56cfa30d1a18a53b2fb32e147d7596f92b06756c Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 23834
:
94373
|
94966