title: How do I lint two sets of files with different JSHint options? (grunt.js)
body: <p>I have some JavaScript files that should be linted assuming a Node environment and others that should be linted assuming a browser environment. How do I lint these files with different JSHint options? Here's my starting point:</p>
  
  <pre><code>module.exports = function (grunt) {
    grunt.initConfig({
      lint: {
        files: [
          "grunt.js", // Node environment
          "lib/**/*.js", // browser environment
        ],
      },
      jshint: {
        options: {
          browser: true, // define globals exposed by modern browsers?
          es5: true, // code uses ECMAScript 5 features?
          node: false, // define globals in Node runtime?
        },
        globals: {},
      },
    });
  
    grunt.registerTask("default", "lint");
  };
  </code></pre>