From 9ccf540c43f798984fbaf35aac05a0242d575ade Mon Sep 17 00:00:00 2001 From: Kevin Ross Date: Thu, 24 Dec 2015 11:06:02 -0600 Subject: [PATCH] fix eslint issue with anchors --- docs/assets/js/src/application.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/assets/js/src/application.js b/docs/assets/js/src/application.js index 57c505f2..29a8915a 100644 --- a/docs/assets/js/src/application.js +++ b/docs/assets/js/src/application.js @@ -1,5 +1,6 @@ import Style from './style' import Clipboard from 'clipboard' +import anchors from 'anchor' class Application { @@ -61,6 +62,9 @@ class Application { .attr('title', 'Copy to clipboard') .tooltip('_fixTitle') }) + + anchors.options.placement = 'left' // eslint-disable-line no-console + anchors.add('.bd-content > h1, .bd-content > h2, .bd-content > h3, .bd-content > h4, .bd-content > h5') } // Add dynamic display of font properties to the existing documentation @@ -122,7 +126,4 @@ $(() => { $('body').bootstrapMaterialDesign() app.initializeDemos() - - anchors.options.placement = 'left'; - anchors.add('.bd-content > h1, .bd-content > h2, .bd-content > h3, .bd-content > h4, .bd-content > h5') })