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

Extending config #1

Open
jeffreyschmitz87 opened this issue Jan 27, 2022 · 1 comment
Open

Extending config #1

jeffreyschmitz87 opened this issue Jan 27, 2022 · 1 comment

Comments

@jeffreyschmitz87
Copy link

First of all, great work on the plugin!

Would it be possible to extend the config - file with settings for the UselessAttributes and UselessKeywords filters? We're running projects where 2 letter keywords are necessary and we prefer to not skip the attribute slug.

Perhaps something like:

return [
    ...
    'uselessKeywords' => [
        'maxLength' => 1,
    ],
    'uselessAttributes' => [
        'extension',
        'kind',  
    ],
];

If these settings are not present you could use the default settings that are currently used. Would like to hear your ideas on this!

@ostark
Copy link
Owner

ostark commented Jan 27, 2022

Glad you find it useful. I thought of a config like this already.

I know, the current filters are fairly opinionated.
PRs are welcome.

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

2 participants