Getting Facebook’s react.js library JSX syntax to play nicely with jslint?

I tried to follow Dustin’s and STRML’s advice on this thread, and here’s what worked best for me. Development Setup I use Sublime Text with SublimeLinter + SublimeLinter-jshint + SublimeLinter-jsxhint. These are very nice plugins that let me see mistakes when I save the file, both for JS and JSX files: These plugins respect your … Read more

Have jshint ignore certain files when building Twitter Bootstrap

So there is an option to ignore files in jshint, but it’s not set within .jshintrc but rather a separate file .jshintignore, which makes sense. However, while jshint will look for .jshintrc in your project’s subdirectories, .jshintignore needs to be in the project root. So with Twitter Bootstrap, .jshintrc is in /js while .jshintignore needs … Read more

Where can I find a list of JSHint numeric error codes?

The best place to look for things like that is the source (which is available on GitHub). The file you’re looking for is messages.js (versions: current release (2.9.5, 2017-06-22), master branch, 2.1.4 (source for the code below)): var warnings = { W001: “‘hasOwnProperty’ is a really bad name.”, W002: “Value of ‘{a}’ may be overwritten … Read more

Suppress “mixed spaces and tabs” warning in JSHint / JSLint or alternative service?

It’s not possible to switch off this warning with a flag, and the JSHint maintainer doesn’t want to add a flag for this. However, it is possible to turn off warnings according to their number. In this case, you’d write: /* jshint -W099 */ If you’re using a JSHint configuration file, you can specify this … Read more

How to configure Syntastic with JSHint?

Here is a more updated info, there is a configuration to associate a file extension to a checker, in your .vimrc let g:syntastic_javascript_checkers = [‘jshint’] Also to get info about what’s going on run this command in vim :SyntasticInfo And you’ll get an output similar to this: Syntastic info for filetype: javascript Available checkers: gjslint … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)