terArrowSpacingRule.md
December 14, 2016 · View on GitHub
ter-arrow-spacing (ESLint: arrow-spacing)
require space before/after arrow function's arrow
Rationale
This rule normalizes the style of spacing before/after an arrow function’s arrow(=>).
Config
This rule takes an object argument with before and after properties, each with a
Boolean value.
The default configuration is { "before": true, "after": true }.
true means there should be one or more spaces and false means no spaces.
Examples
"ter-arrow-spacing": [true]
"ter-arrow-spacing": [true, {
"before": false,
"after": false
}]
Schema
{
"type": "array",
"items": [
{
"type": "object",
"properties": {
"before": {
"type": "boolean"
},
"after": {
"type": "boolean"
}
},
"additionalProperties": false
}
],
"maxLength": 1
}