Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid configuration for @typescript-eslint/member-ordering #67

Closed
jamesacarr opened this issue Nov 29, 2022 · 0 comments
Closed

Invalid configuration for @typescript-eslint/member-ordering #67

jamesacarr opened this issue Nov 29, 2022 · 0 comments

Comments

@jamesacarr
Copy link
Contributor

Using the latest version of @typescript-eslint (5.45.0), and error is being raised in the configuration of @typescript-eslint/member-ordering.

Oops! Something went wrong! :(

ESLint: 8.28.0

Error: .eslintrc.js#overrides[1] » eslint-config-xo-typescript/space » /<censored>/node_modules/eslint-config-xo-typescript/index.js:
	Configuration for rule "@typescript-eslint/member-ordering" is invalid:
	Value ["signature","public-static-field","public-static-method","protected-static-field","protected-static-method","private-static-field","private-static-method","static-field","static-method","public-decorated-field","public-instance-field","public-abstract-field","public-field","protected-decorated-field","protected-instance-field","protected-abstract-field","protected-field","private-decorated-field","private-instance-field","private-abstract-field","private-field","instance-field","abstract-field","decorated-field","field","public-constructor","protected-constructor","private-constructor","constructor","public-decorated-method","public-instance-method","public-abstract-method","public-method","protected-decorated-method","protected-instance-method","protected-abstract-method","protected-method","private-decorated-method","private-instance-method","private-abstract-method","private-method","instance-method","abstract-method","decorated-method","method"] should be string.
	Value ["signature","public-static-field","public-static-method","protected-static-field","protected-static-method","private-static-field","private-static-method","static-field","static-method","public-decorated-field","public-instance-field","public-abstract-field","public-field","protected-decorated-field","protected-instance-field","protected-abstract-field","protected-field","private-decorated-field","private-instance-field","private-abstract-field","private-field","instance-field","abstract-field","decorated-field","field","public-constructor","protected-constructor","private-constructor","constructor","public-decorated-method","public-instance-method","public-abstract-method","public-method","protected-decorated-method","protected-instance-method","protected-abstract-method","protected-method","private-decorated-method","private-instance-method","private-abstract-method","private-method","instance-method","abstract-method","decorated-method","method"] should be equal to one of the allowed values.
	Value "private-abstract-field" should be equal to one of the allowed values.
	Value "private-abstract-field" should be array.
	Value "private-abstract-field" should match exactly one schema in oneOf.
	Value ["signature","public-static-field","public-static-method","protected-static-field","protected-static-method","private-static-field","private-static-method","static-field","static-method","public-decorated-field","public-instance-field","public-abstract-field","public-field","protected-decorated-field","protected-instance-field","protected-abstract-field","protected-field","private-decorated-field","private-instance-field","private-abstract-field","private-field","instance-field","abstract-field","decorated-field","field","public-constructor","protected-constructor","private-constructor","constructor","public-decorated-method","public-instance-method","public-abstract-method","public-method","protected-decorated-method","protected-instance-method","protected-abstract-method","protected-method","private-decorated-method","private-instance-method","private-abstract-method","private-method","instance-method","abstract-method","decorated-method","method"] should be object.
	Value ["signature","public-static-field","public-static-method","protected-static-field","protected-static-method","private-static-field","private-static-method","static-field","static-method","public-decorated-field","public-instance-field","public-abstract-field","public-field","protected-decorated-field","protected-instance-field","protected-abstract-field","protected-field","private-decorated-field","private-instance-field","private-abstract-field","private-field","instance-field","abstract-field","decorated-field","field","public-constructor","protected-constructor","private-constructor","constructor","public-decorated-method","public-instance-method","public-abstract-method","public-method","protected-decorated-method","protected-instance-method","protected-abstract-method","protected-method","private-decorated-method","private-instance-method","private-abstract-method","private-method","instance-method","abstract-method","decorated-method","method"] should match exactly one schema in oneOf.

The configuration (below) includes two values that are invalid - private-abstract-field and private-abstract-method. Removing these two entries from the array fixes the issue.

'@typescript-eslint/member-ordering': [
'error',
{
default: [
'signature',
'public-static-field',
'public-static-method',
'protected-static-field',
'protected-static-method',
'private-static-field',
'private-static-method',
'static-field',
'static-method',
'public-decorated-field',
'public-instance-field',
'public-abstract-field',
'public-field',
'protected-decorated-field',
'protected-instance-field',
'protected-abstract-field',
'protected-field',
'private-decorated-field',
'private-instance-field',
'private-abstract-field',
'private-field',
'instance-field',
'abstract-field',
'decorated-field',
'field',
'public-constructor',
'protected-constructor',
'private-constructor',
'constructor',
'public-decorated-method',
'public-instance-method',
'public-abstract-method',
'public-method',
'protected-decorated-method',
'protected-instance-method',
'protected-abstract-method',
'protected-method',
'private-decorated-method',
'private-instance-method',
'private-abstract-method',
'private-method',
'instance-method',
'abstract-method',
'decorated-method',
'method'
]
}
],

Removing these two entries from the array fixes the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant