Skip to content

Specify --ignore-path for ESLint #1443

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

Merged
merged 1 commit into from
Mar 21, 2021
Merged

Specify --ignore-path for ESLint #1443

merged 1 commit into from
Mar 21, 2021

Conversation

XhmikosR
Copy link
Contributor

Otherwise, all files are included

"lint": "eslint . && prettier --list-different \"**/*.js\" --ignore-path .gitignore",
"fix": "eslint . --fix && prettier --write \"**/*.js\" --ignore-path .gitignore",
"lint": "eslint --ignore-path .gitignore . && prettier --list-different \"**/*.js\" --ignore-path .gitignore",
"fix": "eslint --ignore-path .gitignore --fix . && prettier --write \"**/*.js\" --ignore-path .gitignore",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I used "ignorePatterns" in eslint config. So not all.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd say better remove ignorePatterns then and just use .gitignore. It's the right file and includes everything that needs to be ignored.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, you can remove

Otherwise, all files are included
@TrySound TrySound merged commit 13a0ad0 into svg:master Mar 21, 2021
@XhmikosR XhmikosR deleted the patch-3 branch March 21, 2021 15:02
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.

2 participants