teable/lint-staged.config.js
Bieber f1b8685629
feat: add helm chart to support k8s deployment (#671)
* chore: init empty helm template

* chore: helm chart deploy

* feat(wip): teable helm

* feat: setup all helm dependency

* feat(helm): support tls

* chore: remove useless

* chore: revoke session secret
2024-07-01 14:34:13 +08:00

24 lines
875 B
JavaScript

// @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 = {
'{apps,packages}/**/*.{json,md,mdx,css,html,yml,yaml,scss,ts,js,tsx,jsx,mjs}': (filenames) => {
return [`prettier --write ${concatFilesForPrettier(filenames)}`];
},
};
module.exports = rules;