0N/A "extends": "eslint-config-forgerock",
0N/A * AMD is commented out as this will hide the error of forgetting to add a global directive
0N/A * --------------------------------------------------------------------------------
0N/A * These are rules we're sure about. They will cause the build to fail.
0N/A * --------------------------------------------------------------------------------
0N/A * Camel cased variable names.
0N/A * var apples_and_pears # bad
0N/A * apple_and_pears: true
0N/A * var applesAndPears # good
113N/A * Require a capital letter for constructors.
113N/A * var f = new Foo(); # good
113N/A * Multiple spaces not allowed.
113N/A * var fruit···=··"apples" # bad
113N/A * var fruit·=·"apples" # good
113N/A * Space required after keywords.
113N/A * if (fruit) { # good. Space before else is not enforced but recommended
113N/A "space-after-keywords": [2, "always"],
113N/A * Spaces not allowed in parentheses.
113N/A * fruit( "apple" ) # bad
113N/A * fruit("apple") # good
0N/A "space-in-parens": [2, "never"],
113N/A * Spaces required around infix operators
113N/A * var numOfApples = 1+2-3 # bad
113N/A * var numOfApples = 1 + 2 - 3 # good
113N/A "space-infix-ops": [2, {
113N/A * Space required before opening block curly brace.
0N/A * function fruit(){}
113N/A "space-before-blocks": [2, "always"],
* One level indent on switch cases.
* One level indent on variable declarations.
* --------------------------------------------------------------------------------
* These are rules that we want to turn into errors but can't yet because there are
* too many violations. As we fix the violations, we will transition them into
* --------------------------------------------------------------------------------
* Maximum line length of 120 characters.
* Spaces inside of curly braces.
* { apples: true } # good
"object-curly-spacing": [1, "always"],
* Double quotes for string literals. Single quotes allowed to avoid escaping
* var string = 'this is a string' # bad
* var string = "this is a string" # good
* var string = 'this is a "string"' # good
"quotes": [1, "double", "avoid-escape"],
* Space required before function parenthesis.
"space-before-function-paren": [1, "always"],
* Validates that JSDoc is syntactically correct.
* Prefer using returns over return
* @return {int} The number of apples. # bad
* @returns {int} The number of apples. # good
* If there is no return statement, a @returns annotation is not required.
* --------------------------------------------------------------------------------
* These are rules we want to evaluate and promote to warnings.
* --------------------------------------------------------------------------------
* array-bracket-spacing (no space)
* brace-style (else on the same line)
* comma-spacing "one, two"
* no-mixed-spaces-and-tabs
* no-multiple-empty-lines (max=2)