From e3b59c4852fbac6f48167d8829e1e615c6731054 Mon Sep 17 00:00:00 2001 From: Jake Date: Sun, 11 Mar 2018 21:41:47 +0000 Subject: [PATCH] Make `mermaid` global, and use `$` directly --- .eslintrc | 5 +++-- static/src/js/index.js | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.eslintrc b/.eslintrc index 52e8365..2cad660 100644 --- a/.eslintrc +++ b/.eslintrc @@ -1,9 +1,10 @@ { "extends": [ "dabapps/commonjs", - "dabapps/browser", + "dabapps/browser" ], "globals": { - "$": true + "mermaid": true + } } diff --git a/static/src/js/index.js b/static/src/js/index.js index fe04a7b..69bd564 100644 --- a/static/src/js/index.js +++ b/static/src/js/index.js @@ -1,6 +1,6 @@ 'use strict'; -require('./jquery-global'); +var $ = require('./jquery-global'); require('./fa'); require('bootstrap');