eslint-plugin-rxjs icon indicating copy to clipboard operation
eslint-plugin-rxjs copied to clipboard

Force finnish rule on class fields

Open ackalhan opened this issue 3 years ago • 0 comments

In my angular class component, It seems that class fields are not validating against the finnish rule. Might be a configuration issue in my eslint.json

Here's my rule

"rxjs/finnish": [
    "warn",
    {
        "functions": true,
        "methods": true,
        "names": {
            "^(canActivate|canActivateChild|canDeactivate|canLoad|intercept|resolve|validate)$": false
        },
        "parameters": true,
        "properties": true,
        "strict": false,
        "types": {
            "^EventEmitter$": false
        },
        "variables": true
    }
]

Here's an example

  • Get onex method validating correctly, but public one and public foo isn't.

image


"@typescript-eslint/eslint-plugin": "4.28.2",
"@typescript-eslint/parser": "4.28.2",
"eslint": "^7.26.0",
"eslint-plugin-rxjs": "^3.3.6"

ackalhan avatar Feb 09 '22 05:02 ackalhan