Skip to content

require-meta-schema should allow variable schema #273

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

Closed
bmish opened this issue Aug 1, 2022 · 0 comments · Fixed by #277
Closed

require-meta-schema should allow variable schema #273

bmish opened this issue Aug 1, 2022 · 0 comments · Fixed by #277
Labels

Comments

@bmish
Copy link
Member

bmish commented Aug 1, 2022

If someone wants to use a variable or function call to get the value for any of the meta properties, that should be allowed.

{
  schema: baseRule.meta.schema
}
{
  schema: getSchema()
}

Example: https://github.com/typescript-eslint/typescript-eslint/blob/ad412cdd74dc5619fbe4bf27c0a5eb5c5a4b65ca/packages/eslint-plugin/src/rules/brace-style.ts#L27

This issue is not specific to TypeScript.

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