Bob's Blog
  • Blog
  • Get In Touch
  • Blog
  • Get In Touch

Bob's  Blog

Configuring VSCode for eslint and TypeScript

2/5/2019

0 Comments

 
VSCode will pick up the ESLint configuration for your workspace if you have a .eslintrc file in the root of your project, which our project does. But I found that my files were not being validated by ESLint. It turns out that the default configuration for Microsoft's ESLint plugin is to validate javascript and javascriptreact files (.js and .jsx files), but not TypeScript files. In order to enable validation of Typescript files you need to edit your settings, find the entry for eslint.validate, copy it to your user settings file, and then update it to include typescript and typescriptreact (for .ts and .tsx files):

    
If you're not sure if things are correctly configured and running properly, you can view the output of the ESLint process using the command ESLint: Show Output Channel, which will show something like this:
Picture
0 Comments

Blogging Again

1/29/2019

0 Comments

 
I used to blog, quite a bit in fact, but that was many years ago. I blogged about software development, particularly about the work I was doing with ColdFusion. Yes, ColdFusion still exists, but no, I haven't used it in over 7 years. When I started working with other technologies I ended up consuming more blog posts that I was writing. The communities for these other technologies were much larger than the ColdFusion community, and it didn't feel like I, as a newcomer, had much to offer.

I've been working at Mozilla for 6 years now, and I've had a number of different roles. I started out in QA doing automated testing with Python and Selenium, then I moved into Firefox development, writing WebExtension APIs with JavaScript. For the past couple of years I've come back to my first true love, web development, which I've been doing as part of the team that works on addons.mozilla.org (AMO). We use JavaScript with React, Redux and Flow for AMO.

My team is starting a new project, writing a code review tool, and we're adopting some technologies that are new to me, including TypeScript.  I've also decided to finally switch my IDE. So I've been doing quite a bit of learning over the past few weeks, and I decided I'd start blogging again to share some of the tidbits I've found. At first this will mostly just be notes to myself - little things that took me awhile to hunt down - things that might help someone else who finds themselves with the same question. But I hope that as I learn more and more useful things I'll be able to share more interesting posts.

So, if you're someone who used to read my blog ages ago, I welcome you to join me again as I take the plunge back into blogging.
0 Comments

    Author

    I am a software developer currently focusing on web development, who works for Mozilla.

    Archives

    January 2019

    Categories

    All

    RSS Feed