I'm setting up ESLint and Prettier for my Next.js Project. I have followed one of the articles this one.
Here is my package.json file (partial) so far:
"lint-staged": { "*.{js,jsx}": [ "eslint '*/**/*.{js,jsx}' --fix" ] } Although I have copied and pasted but couldn't able to understand that *.{js,jsx} & */**/*.{js,jsx} what actually these patterns mean? In addition: *.+(js|jsx) want to know about this pattern.
*.+(js|jsx)seems to be part of a regular expression. Glob is what shells implement for file path matching.