mirror of
https://github.com/airbnb/javascript.git
synced 2026-01-13 23:37:55 -05:00
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user