Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

.jshintrc 1.2KB

1234567891011121314151617181920
  1. {
  2. // Refer to http://jshint.com/docs/options/ for an exhaustive list of options
  3. "asi": false, // true: Tolerate Automatic Semicolon Insertion (no semicolons)
  4. "expr": true, // true: Tolerate `ExpressionStatement` as Programs
  5. "loopfunc": true, // true: Tolerate functions being defined in loops
  6. "curly": false, // true: Require {} for every new block or scope
  7. "evil": true, // true: Tolerate use of `eval` and `new Function()`
  8. "white": true,
  9. "undef": true, // true: Require all non-global variables to be declared (prevents global leaks)
  10. "browser": true, // Web Browser (window, document, etc)
  11. "node": true, // Node.js
  12. "trailing": true,
  13. "indent": 4, // {int} Number of spaces to use for indentation
  14. "latedef": true, // true: Require variables/functions to be defined before being used
  15. "newcap": true, // true: Require capitalization of all constructor functions e.g. `new F()`
  16. "maxlen": 80, // {int} Max number of characters per line
  17. "latedef": false, //This option prohibits the use of a variable before it was defined
  18. "laxbreak": true, //Ignore line breaks around "=", "==", "&&", etc.
  19. "esnext": true //support ES2015
  20. }