Ignore:
Timestamp:
04/15/13 14:40:30 (12 years ago)
Author:
hendrikvanantwerpen
Message:

Added basic HTML linting.

Added htmllint as grunt task.
Moved jshint and htrmllint options to separate rc files.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Dev/trunk/client/qed/Gruntfile.js

    r426 r431  
    1818        jshint: {
    1919            options: {
    20                 /* enforcing options */
    21                 bitwise: true,
    22                 curly: true,
    23                 eqeqeq: true,
    24                 immed: true,
    25                 indent: 4,
    26                 latedef: true,
    27                 newcap: true,
    28                 noarg: true,
    29                 undef: true,
    30                 unused: false,
    31                 strict: false,
    32                 /* relaxing options */
    33                 loopfunc: true,
    34                 /* enverinments */
    35                 devel: true,
    36                 node: true,
    37                 /* globals */
    38                 globals: {
    39                     require: true,
    40                     define: true
    41                 }
     20                jshintrc: ".jshintrc"
    4221            },
    4322            all: {
    4423                files: {
    4524                    src: ['**/*.js', '!node_modules/**']
     25                }
     26            }
     27        },
     28        htmlhint: {
     29            options: {
     30                htmlhintrc: ".htmlhintrc"
     31            },
     32            all: {
     33                files: {
     34                    src: ['**/*.html', '!node_modules/**']
    4635                }
    4736            }
     
    5140    grunt.loadNpmTasks('grunt-contrib-less');
    5241    grunt.loadNpmTasks('grunt-contrib-jshint');
     42    grunt.loadNpmTasks('grunt-htmlhint');
    5343
    54     grunt.registerTask('default', ['less', 'jshint']);
     44    grunt.registerTask('default', ['less', 'jshint', 'htmlhint']);
    5545};
Note: See TracChangeset for help on using the changeset viewer.