Checks and enforces interface style. Either to allow properties and methods or just methods. Has an option to allowMarkerInterfaces
.
Configuration
{
"type": "Interface",
"props": {
"allowProperties": false,
"allowMarkerInterfaces": true,
"severity": "INFO"
}
}
Valid
interface IComponentController {
function init():Void;
}
Invalid (When allowProperties is set to false)
interface IComponentController {
var a:Int = 1;
function init():Void;
}
Properties are not allowed in interfaces
Invalid (When allowMarkerInterfaces is set to false)
interface IComponentController {}
Marker interfaces are not allowed