kraken
Version:
Plug into the power and speed of Kraken.io Image Optimizer
28 lines (27 loc) • 1.35 kB
Plain Text
{
"maxerr": 50, // {int} Maximum error before stopping
"camelcase": false, // true: Identifiers must be in camelCase
"curly": true, // true: Require {} for every new block or scope
"eqeqeq": true, // true: Require triple equals (===) for comparison
"forin": true, // true: Require filtering for..in loops with obj.hasOwnProperty()
"freeze": true, // true: prohibits overwriting prototypes of native objects such as Array, Date etc.
"indent": 4, // {int} Number of spaces to use for indentation
"noempty": true, // true: Prohibit use of empty blocks
"nonbsp": true, // true: Prohibit "non-breaking whitespace" characters.
"nonew": false, // true: Prohibit use of constructors for side-effects (without assignment)
"quotmark": "single",
"undef": true, // true: Require all non-global variables to be declared (prevents global leaks)
"unused": true, // true: Require all defined variables be used
"strict": false, // true: Requires all functions run in ES5 Strict Mode
"devel": false, // Development/debugging (alert, confirm, etc)
"node": true, // Node.js
"globals": {
// additional predefined global variables
"describe": true,
"test": true,
"it": true,
"expect": true
},
"esversion": 10,
"asi": true // Missing semicolon warning off
}