dolsem / eslint-plugin-filename-rules

MIT License
36 stars 8 forks source link

Extend aliases with stylized values #1

Closed Jokero closed 4 years ago

Jokero commented 4 years ago
const aliases = {
    PascalCase: ...,
    camelCase: ...,
    snake_case: ...,
    'kebab-case': ...
};

So it will be possible to write as follows:

rules: {
    // for other users it will be more obvious what snake_case actually means
    'filename-rules/match': [2, 'snake_case'],
dolsem commented 4 years ago

Yeah that's an interesting idea. I'd like to keep default aliases, but would be nice to also these stylized options as well. Would you like to submit a PR?

Jokero commented 4 years ago

@dolsem Yeah, will do

Jokero commented 4 years ago

@dolsem Could you please release a new version?

dolsem commented 4 years ago

@Jokero done