Also run Prettier and ESLint on .mjs and .cjs

This commit is contained in:
Vincent 2023-07-04 11:50:43 +02:00 коммит произвёл Vincent
Родитель d3b9b80d03
Коммит bbe180547d
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -6,9 +6,9 @@ const buildEslintCommand = (filenames) =>
.join(' --file ')}`;
export default {
"*.{js,jsx,ts,tsx}": [buildEslintCommand],
"*.{js,cjs,mjs,jsx,ts,tsx}": [buildEslintCommand],
"*.{scss,css}": "stylelint --allow-empty-input --fix",
"*.{ts,tsx,jsx,scss,css,md,html}": "prettier --write",
"*.{ts,tsx,jsx,cjs,mjs,scss,css,md,html}": "prettier --write",
// TODO NEXT.JS MIGRATION: While we're migrating to Next.js, regular .js files files
// are still likely to be the non-Next.js app. Thus, we scope those to /src/app:
"src/app/**/*.js": "prettier --write",