Hello!

I am attempting to migrate Material UI from v4 to v5, according to this 
document:
https://mui.com/material-ui/guides/migration-v4

Part of that migration includes some codemods, and after running the 
codemods, I am no longer able to make a git commit, due to a pre-commit 
hook, as follows:

"lint-staged": {
"src/**/*.!{(*snap),svg}": [
"prettier --write"
],
"src/**/*.{js,jsx,ts,tsx}": [
"eslint --max-warnings=0"
],
"src/**/*.{css,scss}": [
"stylelint"
]
}

I get an error:

warning  File ignored by default.  Use a negated ignore pattern (like 
"--ignore-pattern '!<relative/path/to/filename>'") to override

I have tried all the different ways to apply a negated ignore pattern, and 
nothing seems to work.  I only ever get this error, on the same offending 
file.

Any thoughts on how to resolve this?

Kind regards,
Levi Beckman

-- 
You received this message because you are subscribed to the Google Groups 
"ESLint" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/eslint/c9fd3418-7518-4f6c-8688-bbaca8e1baf0n%40googlegroups.com.

Reply via email to