【发布时间】:2022-10-24 22:34:05
【问题描述】:
当我在项目的根文件夹中执行以下命令时,所有文件都会按照我的预期递归运行。
更漂亮 --write "**/*.{js,ts}"
但是,我想忽略这些子文件夹中以 ./next 或 ./old 开头的所有文件夹。我怎样才能做到这一点?我已经尝试了以下命令,但它们不会忽略这些文件夹
更漂亮 --write "**/*.{js,ts}" --ignore-path ".next"
更漂亮——写“/*.{js,ts}" --ignore-path "/.next"
【问题讨论】:
标签: prettier nsregularexpression prettier-eslint