<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic ESLint &amp;quot;Fun&amp;quot; in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/eslint-quot-fun-quot/m-p/160011#M114030</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE __default_attr="info" __jive_macro_name="alert" alert="info" class="jive_text_macro jive_macro_alert"&gt;&lt;SPAN style="color: #0f7198; background-color: #ffffff;"&gt;This is a personal blog post that is primarily intended for tracking my own learning rather than provided to the Alfresco Community for educational purposes. However if you find it useful, informative or have any comments on it then please comment below.&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;At the end of &lt;A _jive_internal="true" href="https://community.alfresco.com/people/ddraper/blog/2016/12/22/re-usable-vuejs-components-with-vue-loader" rel="nofollow noopener noreferrer"&gt;my last blog&lt;/A&gt; I'd converted switched from a "&lt;A href="https://vuejs.org/v2/guide/components.html#Content-Distribution-with-Slots" rel="nofollow noopener noreferrer"&gt;Content Distribution&lt;/A&gt;" approach to Components to using a &lt;A href="https://vuejs.org/v2/guide/single-file-components.html" rel="nofollow noopener noreferrer"&gt;single file component&lt;/A&gt;&amp;nbsp;approach using vue-loader. I now had a simple &lt;A href="https://vuejs.org/" rel="nofollow noopener noreferrer"&gt;Vue.js&lt;/A&gt; application&amp;nbsp;that I could use to browse the "Company Home" on an Alfresco Repository. However although I could drill down into folders I was unable to come back out of them. To complete the basic navigation handling I decided to implement a breadcrumb component.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I started to implement this new component I realised that I was no longer being informed of JavaScript errors by my the trusty &lt;A href="https://github.com/victorporof/Sublime-JSHint" rel="nofollow noopener noreferrer"&gt;JSHint Gutter package&lt;/A&gt; that I have been using on Sublime Text. This was because it was unable to validate my new .vue files that contained my component code.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fortunately the vue-loader documentation provided &lt;A href="https://vue-loader.vuejs.org/en/workflow/linting.html" rel="nofollow noopener noreferrer"&gt;some useful information&lt;/A&gt; on setting up linting for .vue files using &lt;A href="http://eslint.org/" rel="nofollow noopener noreferrer"&gt;ESLint&lt;/A&gt; and the &lt;A href="https://github.com/BenoitZugmeyer/eslint-plugin-html" rel="nofollow noopener noreferrer"&gt;eslint-html-plugin&lt;/A&gt;. Installing these was pretty straight forward but getting Sublime to make use of them proved difficult because I was using &lt;A href="https://github.com/creationix/nvm" rel="nofollow noopener noreferrer"&gt;NVM&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To cut a long story short it seems that when starting Sublime my bash profile wasn't including the paths set by NVM. I need to fully implement the solution provided &lt;A href="http://sublimelinter.readthedocs.io/en/latest/troubleshooting.html#special-considerations-for-bash" rel="nofollow noopener noreferrer"&gt;here&lt;/A&gt;... but the simple workaround is just to launch Sublime from a new terminal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm now in the process of tweaking my ESLint configuration in my project specific .eshintrc.js file and am slowly getting it to fit my preferences.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the same time I've added the breadcrumb. You can view the state of &lt;A href="https://github.com/draperd/AlfrescoNodeJS" rel="nofollow noopener noreferrer"&gt;my project&lt;/A&gt; at the time of writing by checking out this &lt;A href="https://github.com/draperd/AlfrescoNodeJS/releases/tag/Blog6" rel="nofollow noopener noreferrer"&gt;tag&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I plan to learn as much as I can about accessibility as I implement this client so did some research on accessible breadcrumbs and found &lt;A href="https://www.uvd.co.uk/blog/accessible-breadcrumbs-using-aria/" rel="nofollow noopener noreferrer"&gt;this useful post&lt;/A&gt;&amp;nbsp;(which despite being quite old still seems relevant). This means that whilst my breadcrumb trail is functional (and accessible) it looks very strange! I'm more interested in accessibility and function than style at the moment but will return to the visual look later.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The next step now that I have some basic functional components is to both focus on accessibility and figure out the best automated testing strategy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image" src="https://connect.hyland.com/legacyfs/online/alfresco/11681_Blog6.png" style="width: 733px; height: 429px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Dec 2016 14:09:20 GMT</pubDate>
    <dc:creator>ddraper</dc:creator>
    <dc:date>2016-12-22T14:09:20Z</dc:date>
    <item>
      <title>ESLint "Fun"</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/eslint-quot-fun-quot/m-p/160011#M114030</link>
      <description>This is a personal blog post that is primarily intended for tracking my own learning rather than provided to the Alfresco Community for educational purposes. However if you find it useful, informative or have any comments on it then please comment below.At the end of my last blog I'd converted switc</description>
      <pubDate>Thu, 22 Dec 2016 14:09:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/eslint-quot-fun-quot/m-p/160011#M114030</guid>
      <dc:creator>ddraper</dc:creator>
      <dc:date>2016-12-22T14:09:20Z</dc:date>
    </item>
  </channel>
</rss>

