forked from AxTps/Starlight_Lancher
feat:移除了弹窗,服务器添加sls
This commit is contained in:
33
packages/tooling-config/frontend.prettier.config.cjs
Normal file
33
packages/tooling-config/frontend.prettier.config.cjs
Normal file
@ -0,0 +1,33 @@
|
||||
/**
|
||||
* @see https://prettier.io/docs/configuration
|
||||
* @type {import("prettier").Config}
|
||||
*/
|
||||
module.exports = {
|
||||
semi: false,
|
||||
singleQuote: true,
|
||||
plugins: [
|
||||
// In typical JS/TS britleness fashion, the Tailwind CSS plugin
|
||||
// has a transitive dependency on an import sort plugin that breaks
|
||||
// TypeScript type annotations, for reasons unbeknownst to anyone.
|
||||
// Our frontend project was the only one enabling such plugin, so
|
||||
// to avoid this bug spreading to other parts of the monorepo, let's
|
||||
// keep it contained to it. See:
|
||||
// https://github.com/tailwindlabs/prettier-plugin-tailwindcss/issues/338
|
||||
// https://github.com/prettier/prettier-vscode/issues/3578
|
||||
'prettier-plugin-tailwindcss',
|
||||
'prettier-plugin-toml',
|
||||
'prettier-plugin-sql-cst',
|
||||
'@prettier/plugin-xml',
|
||||
],
|
||||
overrides: [
|
||||
{
|
||||
files: ['*.jsonc'],
|
||||
options: {
|
||||
parser: 'jsonc',
|
||||
// By spec, JSONC only extends JSON with comment support, not trailing commas as Prettier likes to add
|
||||
trailingComma: 'none',
|
||||
},
|
||||
},
|
||||
],
|
||||
xmlWhitespaceSensitivity: 'ignore',
|
||||
}
|
||||
Reference in New Issue
Block a user