-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Labels
accepting prsGo ahead, send a pull request that resolves this issueGo ahead, send a pull request that resolves this issuebugSomething isn't workingSomething isn't workingpackage: eslint-pluginIssues related to @typescript-eslint/eslint-pluginIssues related to @typescript-eslint/eslint-plugin
Description
const createRule = ESLintUtils.RuleCreator(
(name) => `https://github.com/gajus/eslint-plugin-panda/blob/main/docs/rules/${name}.md`,
)
const myRule = createRule({
name: 'no-config-function-in-source',
// ...
});At the moment, there is no way to get the name of the myRule.
The current situation forces weird patterns like:
export const RULE_NAME = 'no-config-function-in-source'
export default createRule({
name: RULE_NAME,
// ...
});Ideally, we could get it via myRule.name.
kirkwaiblinger
Metadata
Metadata
Assignees
Labels
accepting prsGo ahead, send a pull request that resolves this issueGo ahead, send a pull request that resolves this issuebugSomething isn't workingSomething isn't workingpackage: eslint-pluginIssues related to @typescript-eslint/eslint-pluginIssues related to @typescript-eslint/eslint-plugin