From 697aa00da0a53402a92bac6629e856302b7d1707 Mon Sep 17 00:00:00 2001 From: Mark Storus Date: Tue, 29 Jul 2014 16:09:54 -0700 Subject: [PATCH] jshintrc cleanup - eqnull is a relaxing option, not an enforcing option - trailing has been removed as of jshint 2.5 - put in alphabetical order --- linters/jshintrc | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/linters/jshintrc b/linters/jshintrc index d3b47148..cc6e398b 100644 --- a/linters/jshintrc +++ b/linters/jshintrc @@ -25,23 +25,23 @@ // Prohibit use of == and != in favor of === and !==. "eqeqeq": true, - // Suppress warnings about == null comparisons. - "eqnull": true, - // Enforce tab width of 2 spaces. "indent": 2, // Prohibit use of a variable before it is defined. "latedef": true, + // Enforce line length to 80 characters + "maxlen": 80, + // Require capitalized names for constructor functions. "newcap": true, // Enforce use of single quotation marks for strings. "quotmark": "single", - // Prohibit trailing whitespace. - "trailing": true, + // Enforce placing 'use strict' at the top function scope + "strict": true, // Prohibit use of explicitly undeclared variables. "undef": true, @@ -49,9 +49,11 @@ // Warn when variables are defined but never used. "unused": true, - // Enforce line length to 80 characters - "maxlen": 80, + /* + * RELAXING OPTIONS + * ================= + */ - // Enforce placing 'use strict' at the top function scope - "strict": true + // Suppress warnings about == null comparisons. + "eqnull": true }