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

Configured include and ignore directories and patterns 🚦 #13

Merged
merged 1 commit into from
Jul 22, 2024

Conversation

01taylop
Copy link
Owner

@01taylop 01taylop commented Jul 22, 2024

Details

What have you changed?

  • Added three new CLI options;
    • --ignore-dirs: To ignore directories from being linted (e.g. vendor).
    • --ignore-patterns: To ignore patterns from being linted (e.g. **/*.example.js).
    • --eslint-include: To include additional patterns when running ESLint (e.g. **/*.vue)

Why are you making these changes?

  • Users of Lint Pilot will likely need to ignore or include files different to those defined by default. Although using config files such as .eslintignore can help, in some use-cases configuring the options via the CLI may be preferable (for example, when ignoring a directory from all three linters to avoid duplication of effort).

@01taylop 01taylop marked this pull request as ready for review July 22, 2024 11:41
@01taylop 01taylop merged commit 9b4c6a7 into main Jul 22, 2024
5 checks passed
@01taylop 01taylop deleted the include-ignore branch July 22, 2024 11:43
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

Successfully merging this pull request may close these issues.

1 participant