chore: standardize ESM-first architecture and resolve all type/test/lint errors
This commit is contained in:
11
.lintstagedrc.cjs
Normal file
11
.lintstagedrc.cjs
Normal file
@@ -0,0 +1,11 @@
|
||||
/* eslint-disable no-undef */
|
||||
/* eslint-env node */
|
||||
const path = require('path');
|
||||
|
||||
const buildEslintCommand = (filenames) =>
|
||||
`eslint --fix ${filenames.map((f) => path.relative(process.cwd(), f)).join(' ')}`;
|
||||
|
||||
module.exports = {
|
||||
'*.{js,jsx,ts,tsx}': [buildEslintCommand, 'prettier --write'],
|
||||
'*.{json,md,css,scss}': ['prettier --write'],
|
||||
};
|
||||
Reference in New Issue
Block a user