Skip to content

Use indexes instead of pulling files directly into metadata-function-map #2694

@WilcoFiers

Description

@WilcoFiers

That function-map file is getting pretty unwieldy, and it isn't easy to find. I would much prefer if we have index files sitting in between it and the actual imports, so:

// checks/color/index.js
import colorContrast from './color-contrast-evaluate.js'
import linkInTextBlock from './link-in-text-block-evaluate.js'

export default {
  'color-contrast-evaluate': colorContrast,
  'link-in-text-block-evaluate': linkInTextBlock,
}
// metadata-function-map.js
import colorEvaluate from '../../checks/color';

export default {
  ...colorEvaluate
};

Metadata

Metadata

Assignees

Labels

coreIssues in the core code (lib/core)prA pr has been created for the issue

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions