Skip to content

Allow rule config to be passed directly instead of by filename #30

@elidupuis

Description

@elidupuis

With ember-template-lint using .template-lintrc.js as the default configuration file (a JS module, not a JSON file), I think it makes sense to allow the configuration for this plugin to be passed in directly—instead of by filename.

For example, instead of the current example in the readme:

{'ConfigFile': __dirname + '/.eslint-template-lintrc.json'}

we could do something like this:

{ ConfigFile: require('.template-lintrc.js') },

Thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions