mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2025-12-19 10:07:46 -05:00
fix: update lint-staged config to format markdown files correctly (#64054)
This commit is contained in:
@@ -1,7 +1,4 @@
|
||||
/* eslint-disable filenames-simple/naming-convention */
|
||||
import { createLintStagedConfig } from '@freecodecamp/eslint-config/lintstaged';
|
||||
|
||||
export default {
|
||||
...createLintStagedConfig(import.meta.dirname),
|
||||
'./curriculum/challenges/**/*.md': files =>
|
||||
files.map(filename => `node ./tools/scripts/lint/index.js '${filename}'`)
|
||||
};
|
||||
export default createLintStagedConfig(import.meta.dirname);
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
/* eslint-disable filenames-simple/naming-convention */
|
||||
import { createLintStagedConfig } from '@freecodecamp/eslint-config/lintstaged';
|
||||
|
||||
export default createLintStagedConfig(import.meta.dirname);
|
||||
export default {
|
||||
...createLintStagedConfig(import.meta.dirname),
|
||||
'./challenges/**/*.md': files =>
|
||||
files.map(filename => `node ../tools/scripts/lint/index.js '${filename}'`)
|
||||
};
|
||||
|
||||
@@ -24,7 +24,7 @@ export const createLintStagedConfig = cwd => {
|
||||
...prettierCommand
|
||||
];
|
||||
},
|
||||
'*.!(mjs|js|ts|tsx|css)': files =>
|
||||
'*.!(mjs|js|ts|tsx|css|md)': files =>
|
||||
files.map(filename => `prettier --write --ignore-unknown '${filename}'`),
|
||||
|
||||
'*.css': files => [
|
||||
|
||||
Reference in New Issue
Block a user