Make WordPress Core

Changeset 25960 for trunk/package.json


Ignore:
Timestamp:
10/27/2013 09:53:11 PM (11 years ago)
Author:
nacin
Message:

Add a .jshintrc file and associated jshint grunt task.

This .jshintrc is adopted from the jQuery project, with some basic modifications (such as single quotes instead of double quotes). This pretty closely follows our current JS standards and rather closely resembles our PHP standards, especially the love of whitespace. The major changes are enforcing === and always using braces for if statements.

props kadamwhite, gnarf37, with mattwiebe and carldanley.
see #25187.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package.json

    r25243 r25960  
    1919    "grunt-contrib-compress": "~0.5.2",
    2020    "grunt-contrib-concat": "~0.3.0",
     21    "grunt-contrib-jshint": "~0.7.0",
    2122    "matchdep": "~0.1.2"
    2223  }
Note: See TracChangeset for help on using the changeset viewer.