Comments for Trevor Elwell http://trevorelwell.me/ Tue, 19 Mar 2019 23:29:46 +0000 hourly 1 https://wordpress.org/?v=6.4.3 Comment on Atom Error: ‘Const’ is available in ES6 (use ‘esversion: 6’) by Ivelin Tenev https://trevorelwell.me/atom-error-const-is-available-in-es6-use-esversion-6/#comment-1372 Sat, 09 Feb 2019 19:21:00 +0000 http://trevorelwell.me/?p=726#comment-1372 In reply to Prasad.

You may be breaking the JSON structure, expected by jshint. Try putting a single line:
“esversion”: 6,
note the comma at the end, between smarttabs and globals.

Also, creating the .jshintrc file in an user’s home directory enables it for all projects by that user.

Cheers!

]]>
Comment on Atom Error: ‘Const’ is available in ES6 (use ‘esversion: 6’) by Prasad https://trevorelwell.me/atom-error-const-is-available-in-es6-use-esversion-6/#comment-1139 Thu, 31 May 2018 06:13:54 +0000 http://trevorelwell.me/?p=726#comment-1139 In reply to telwell.

I already have a .jshintrc file. Its contents are as follows
{
“curly”: true,
“eqeqeq”: true,
“immed”: true,
“latedef”: true,
“newcap”: true,
“noarg”: true,
“sub”: true,
“undef”: true,
“boss”: true,
“eqnull”: true,
“browser”: true,
“smarttabs”: true,
“globals”: {
“jQuery”: true,
“angular”: true,
“console”: true,
“$”: true,
“_”: true,
“moment”: true,
“describe”: true,
“beforeEach”: true,
“module”: true,
“inject”: true,
“it”: true,
“expect”: true,
“xdescribe”: true,
“xit”: true,
“spyOn”: true
}
}

When i try to add
{
“esversion”: 6
}, it still gives me an error

]]>
Comment on Customize Field Errors with Rails 5 & Bootstrap 4 by Aleksandr https://trevorelwell.me/customize-field-errors-with-rails-5-bootstrap-4/#comment-1060 Sat, 28 Apr 2018 22:54:29 +0000 http://trevorelwell.me/?p=862#comment-1060 Thanks, nice solution!

]]>
Comment on Customize Field Errors with Rails 5 & Bootstrap 4 by Rudolf Olah https://trevorelwell.me/customize-field-errors-with-rails-5-bootstrap-4/#comment-791 Thu, 18 Jan 2018 23:22:22 +0000 http://trevorelwell.me/?p=862#comment-791 This worked for me! Easy fix, surprised Rails doesn’t allow for customization of this a bit more easily.

Thanks!

]]>
Comment on Wicked PDF using Rails 4 on Heroku by Pirkka Esko https://trevorelwell.me/wicked-pdf-using-rails-4-on-heroku/#comment-558 Fri, 02 Jun 2017 08:38:12 +0000 http://trevorelwell.me/?p=188#comment-558 Fast forward to 2017, I don’t remember having any trouble getting wicked_pdf gem to run on heroku… but my pdf generation seems to be leaking of memory on Heroku, unlike on a local development machine. :/

]]>
Comment on Atom Error: ‘Const’ is available in ES6 (use ‘esversion: 6’) by telwell https://trevorelwell.me/atom-error-const-is-available-in-es6-use-esversion-6/#comment-228 Thu, 13 Oct 2016 14:00:04 +0000 http://trevorelwell.me/?p=726#comment-228 In reply to Shailesh.

Great point Shailesh! Ya, the filename is just .jshintrc . Files beginning with a dot are hidden files and can be used to help configure things (there’s also .gitignore, .babelrc, .bashrc, etc.) Fun fact: the ‘rc’ at the end seems to stand for ‘runcom’ or ‘run commands’ (http://unix.stackexchange.com/questions/3467/what-does-rc-in-bashrc-stand-for) .

]]>
Comment on Atom Error: ‘Const’ is available in ES6 (use ‘esversion: 6’) by Shailesh https://trevorelwell.me/atom-error-const-is-available-in-es6-use-esversion-6/#comment-227 Thu, 13 Oct 2016 05:48:46 +0000 http://trevorelwell.me/?p=726#comment-227 Thanks. That was helpful.
One thing I would like you to add in the article is to mention how to create a .jshintrc file. I thought it was an extension (like .json) and so I created es6.jshintrc and as expected that didn’t work. After fiddling a little, I created a simple .jshintrc file and that worked. It would be helpful for novice programmers like me.

]]>
Comment on Wicked PDF using Rails 4 on Heroku by Garrett Flanagan https://trevorelwell.me/wicked-pdf-using-rails-4-on-heroku/#comment-34 Mon, 17 Aug 2015 12:29:04 +0000 http://trevorelwell.me/?p=188#comment-34 This is great, where is the link to the application?

]]>