.eslintrc revision 8028135b4c0e5aff0e0dbdf4779fa94e828b22f3
{
"root": true,
"extends": [
"forgerock"
],
"parser": "babel-eslint",
"env": {
"amd": true,
"browser": true
},
"ecmaFeatures": {
arrowFunctions: true,
blockBindings: true,
defaultParams: true,
destructuring: true,
objectLiteralComputedProperties: true,
objectLiteralDuplicateProperties: true,
objectLiteralShorthandMethods: true,
objectLiteralShorthandProperties: true,
spread: true,
templateStrings: true
},
"rules": {
/*
* --------------------------------------------------------------------------------
* ERROR RULES
*
* These are rules we're sure about. They will cause the build to fail.
* --------------------------------------------------------------------------------
*/
"array-bracket-spacing": [2, "never"],
"block-spacing": [2, "always"],
"brace-style": [2, "1tbs", { "allowSingleLine": true }],
"camelcase": [2, {
"properties": "always"
}],
"comma-spacing": [2, {
"before": false,
"after": true
}],
"comma-style": 2,
"dot-location": [2, "property"],
"eol-last": 2,
"guard-for-in": 2,
"indent": [2, 4, {
"SwitchCase": 1,
"VariableDeclarator": 1
}],
"max-len": [2, 120, 4],
"new-cap": [2, {
"capIsNew": false
}],
"new-parens": 2,
"no-alert": 2,
"no-bitwise": 2,
"no-catch-shadow": 2,
"no-continue": 2,
"no-duplicate-case": 2,
"no-empty-character-class": 2,
"no-extend-native": 2,
"no-invalid-regexp": 2,
"no-irregular-whitespace": 2,
"no-labels": 2,
"no-lonely-if": 2,
"no-mixed-spaces-and-tabs": 2,
"no-multiple-empty-lines": 2,
"no-multi-spaces": 2,
"no-multi-str": 2,
"no-native-reassign": 2,
"no-trailing-spaces": 2,
"no-unused-vars": 2,
"no-void": 2,
"object-curly-spacing": [2, "always"],
"operator-linebreak": 2,
"quotes": [2, "double", "avoid-escape"],
"semi-spacing": [2, {
"before": false,
"after": true
}],
"space-after-keywords": [2, "always"],
"space-before-blocks": [2, "always"],
"space-before-function-paren": [2, "always"],
"space-before-keywords": 2,
"space-in-parens": [2, "never"],
"space-infix-ops": [2, {
"int32Hint": false
}],
"space-unary-ops": 2,
"valid-jsdoc": [2, {
"prefer": {
"return": "returns"
},
"requireReturn": false
}],
"yoda": [2, "never"],
/*
* --------------------------------------------------------------------------------
* WARNING RULES
*
* 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
* error rules.
* --------------------------------------------------------------------------------
*/
"arrow-body-style": [1, "as-needed"],
"arrow-parens": [1, "always"],
"arrow-spacing": 1,
"no-arrow-condition": 1,
"no-var": 1,
"prefer-arrow-callback": 1,
"prefer-const": 1,
"prefer-template": 1,
"object-shorthand": 1,
"prefer-spread": 1,
"no-empty-pattern": 1,
// TODO: Need an abstraction for logging before we can enable this.
//"no-console": 0
//"no-param-reassign": 0
}
}