Sha256: 40bb686d4273a25f370a8a8dab651f76e0035967a6a478ad458c375bed27d309

Contents?: true

Size: 1.97 KB

Versions: 1

Compression:

Stored size: 1.97 KB

Contents

{
  // http://jshint.com/docs/options

  "curly"         : true, // Require curly braces around blocks in loops and conditionals
  "eqeqeq"        : true, // Prohibit the use of == and != in favor of === and !==
  "es3"           : true, // Adhere to ECMAScript 3 specification
  "forin"         : true, // Require all for in loops to filter object's items (hasOwnProperty)
  "latedef"       : "nofunc", // Prohibit the use of a variable before it was defined (allow function declarations to be ignored)
  "noarg"         : true, // Prohibit the use of arguments.caller and arguments.callee
  "undef"         : true, // Prohibit the use of explicitly undeclared variables
  "unused"        : true, // Warn when you define and never use your variables

  "predef"        : ["Opal", "JSON", "Java", "callPhantom", "OpalNode", "jsyaml"],

  "browser": true,
  "node": true,

  // Currently the following checks are failing:

  // To investigate:
  "-W053": false, // Do not use String as a constructor
  "-W069": false, // ['prop'] is better written in dot notation
  "-W089": false, // The body of a for in should be wrapped in an if statement to filter unwanted properties from the prototype

  // Compiler:
  "-W021": false, // '$ClassName' is a function
  "-W027": false, // Unreachable ';' after 'return'
  "-W030": false, // Expected an assignment or function call and instead saw an expression
  "-W032": false, // Unnecessary semicolon
  "-W033": false, // Missing semicolon
  "-W083": false, // Don't make functions within a loop
  "-W093": false, // Did you mean to return a conditional instead of an assignment?
  "-W098": false, // 'variable' is defined but never used
  "-W116": false, // Expected '===' and instead saw '=='
  "-W120": false, // You might be leaking a variable ($ClassName) here

  // Keeping these:
  "-W061": false, // eval can be harmful
  "-W086": false, // Expected a 'break' statement before 'case'
  "-W100": false  // This character may get silently deleted by one or more browsers
}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
opal-0.11.0.rc1 .jshintrc