Also run Prettier and ESLint on .mjs and .cjs
This commit is contained in:
Родитель
d3b9b80d03
Коммит
bbe180547d
|
@ -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",
|
||||
|
|
Загрузка…
Ссылка в новой задаче