tal-rofe / Inflint

Scans and verifies file name conventions.
MIT License
6 stars 0 forks source link

Ignore partial path #227

Open dror-weiss opened 8 months ago

dror-weiss commented 8 months ago

Hello,

I would like to have all directories in "kebab-case", but, I have one directory I want to be in PascalCase (e.g. whatever-kebab/Users/sub-whatever-kebab). I don't want to ignore that path because I still have files inside it that I want to be under a rule.

tal-rofe commented 8 months ago

@dror-weiss Did you try to add another specific path to your Inflint configuration file? Something like this

import type { Config } from '@exlint.io/inflint';

const inflintConfig: Config = {
    rules: {
        './**/*': [2, 'kebab-case'],
        './YourSpecificPath': [2, 'PascalCase'],
    },
};

export default inflintConfig;