mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
20e48dd846
Co-authored-by: Mrugesh Mohapatra <1884376+raisedadead@users.noreply.github.com>
18 lines
489 B
JavaScript
18 lines
489 B
JavaScript
/* eslint-disable filenames-simple/naming-convention */
|
|
import path from 'node:path';
|
|
import { createLintStagedConfig } from '@freecodecamp/eslint-config/lintstaged';
|
|
|
|
const linterConfigPath = path.resolve(
|
|
import.meta.dirname,
|
|
'./challenges/.markdownlint.yaml'
|
|
);
|
|
|
|
export default {
|
|
...createLintStagedConfig(import.meta.dirname),
|
|
'./challenges/**/*.md': files =>
|
|
files.map(
|
|
filename =>
|
|
`pnpm challenge-linter --config=${linterConfigPath} '${filename}'`
|
|
)
|
|
};
|