Find file
Fetching contributors…
Cannot retrieve contributors at this time
28 lines (27 sloc) 1.86 KB
"maxerr": 100, // Maximum errors before stopping.
"maxlen": 80, // Maximum line length.
"quotmark": "single", // Consistent quotation mark usage.
"bitwise": false, // Prohibit bitwise operators (&, |, ^, etc.).
"curly": true, // Require {} for every new block or scope.
"eqeqeq": true, // Require triple equals i.e. `===`.
"forin": false, // Tolerate `for in` loops without `hasOwnPrototype`.
"immed": true, // Require immediate invocations to be wrapped in parens. E.g. `(function(){})();`.
"latedef": false, // Prohibit variable use before definition.
"newcap": true, // Require capitalization of all constructor functions. E.g. `new F()`.
"noarg": true, // Prohibit use of `arguments.caller` and `arguments.callee`.
"noempty": true, // Prohibit use of empty blocks.
"nonew": true, // Prohibit use of constructors for side-effects.
"undef": true, // Require all non-global variables be declared before they are used.
"unused": true, // Warn when creating a variable but never using it.
"plusplus": false, // Prohibit use of `++` & `--`.
"regexp": false, // Prohibit `.` and `[^...]` in regular expressions.
"strict": false, // Require `use strict` pragma in every file.
"trailing": true, // Prohibit trailing whitespaces.
"boss": true, // Tolerate assignments inside if, for and while. Usually conditions and loops are for comparison, not assignments.
"multistr": false, // Prohibit the use of multi-line strings.
"eqnull": true, // Tolerate use of `== null`.
"expr": true, // Tolerate `ExpressionStatement` as Programs.
"browser": true, // Standard browser globals e.g. `window`, `document`.
"node": true // Enable standard globals available when code is running inside of the NodeJS runtime environment.