2 Star 1 Fork 0

uniwatch/teable

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
lint-staged.config.js 859 Bytes
一键复制 编辑 原始数据 按行查看 历史
tea artist 提交于 2024-01-30 22:20 . chore: rename (#356)
// @ts-check
/**
* This is the base lint-staged rules config and just includes prettier by default.
* A good practice is to override this base configuration in each package and/or application
* where we are able to add customization depending on the nature of the project (eslint...).
*
* {@link https://github.com/okonet/lint-staged#how-to-use-lint-staged-in-a-multi-package-monorepo}
* {@link https://github.com/teableio/teable/blob/main/docs/about-lint-staged.md}
*/
const { concatFilesForPrettier } = require('./lint-staged.common.js');
/**
* @type {Record<string, (filenames: string[]) => string | string[] | Promise<string | string[]>>}
*/
const rules = {
'**/*.{json,md,mdx,css,html,yml,yaml,scss,ts,js,tsx,jsx,mjs}': (filenames) => {
return [`prettier --write ${concatFilesForPrettier(filenames)}`];
},
};
module.exports = rules;
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
TypeScript
1
https://gitee.com/watching/teable.git
git@gitee.com:watching/teable.git
watching
teable
teable
develop

搜索帮助