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

Ignore partial path #227

Open
dror-weiss opened this issue Jan 20, 2024 · 1 comment
Open

Ignore partial path #227

dror-weiss opened this issue Jan 20, 2024 · 1 comment

Comments

@dror-weiss
Copy link

dror-weiss commented Jan 20, 2024

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
Copy link
Owner

@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;

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