Skip to content

[explicit-member-accessibility] cannot be configured #422

@viridia

Description

@viridia

Any configuration arguments beyond the first ("error") generate an error on startup.

Repro

"@typescript-eslint/explicit-member-accessibility": ["error", { "accessibility": "explicit" }],

Error: /home/talin/Projects/k4/.eslintrc.js:
        Configuration for rule "@typescript-eslint/explicit-member-accessibility" is invalid:
        Value [{"accessibility":"explicit"}] should NOT have more than 0 items.

Expected Result

Should be able to configure the rule.

Actual Result

Linter exits with a fatal error before processing any files.

Additional Info

Full configuration at https://github.com/viridia/klendathu/blob/master/.eslintrc.js

Versions

package version
@typescript-eslint/eslint-plugin 1.6.0
@typescript-eslint/parser 1.6.0
TypeScript 3.3.3333
ESLint 5.16.0
node v10.11.0
npm 6.9.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    package: eslint-pluginIssues related to @typescript-eslint/eslint-pluginworking as intendedIssues that are closed as they are working as intended

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions