File: .jshintrc

package info (click to toggle)
libjs-emojify 1.1.0+dfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 5,972 kB
  • sloc: makefile: 4
file content (23 lines) | stat: -rw-r--r-- 1,171 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{
    "maxerr"        : 50,       // {int} Maximum error before stopping

    // Enforcing
    "curly"         : true,     // true: Require {} for every new block or scope
    "eqeqeq"        : true,     // true: Require triple equals (===) for comparison
    "forin"         : false,    // true: Require filtering for..in loops with obj.hasOwnProperty()
    "indent"        : 4,        // {int} Number of spaces to use for indentation
    "noempty"       : true,     // true: Prohibit use of empty blocks
    "nonew"         : false,    // true: Prohibit use of constructors for side-effects (without assignment)
    "undef"         : true,     // true: Require all non-global variables to be declared (prevents global leaks)
    "unused"        : true,     // true: Require all defined variables be used
    "strict"        : true,     // true: Requires all functions run in ES5 Strict Mode
    "trailing"      : true,     // true: Prohibit trailing whitespaces

    // Predefined stuff
    "predef"        : ["define", "module"],

    // Environments
    "browser"       : true,     // Web Browser (window, document, etc)
    "node"          : true      // Node.js

}