import { dirname } from 'node:path';
import { fileURLToPath } from 'node:url';

import defaultConfig from '../../.lintstagedrc.mjs';

const __dirname = dirname(fileURLToPath(import.meta.url));

export default {
  '*.{ts,tsx,js,jsx,cjs,mjs,mts,cts}': `cd ${__dirname} && ./node_modules/.bin/eslint`,
  ...defaultConfig,
};
