Yongmin Hong
b189fe62aa
Summary: `tsconfig.json` has comments, so it is jsonc. Cf. https://aka.ms/tsconfig.json Also add tsconfig.json in rootdir and update arclint to ignore `tsconfig.json`. Signed-off-by: Yongmin Hong <revi@omglol.email> Test Plan: Try prettier checks on `tsconfig.json` after merging. Reviewers: O1 revi & automations, revi Reviewed By: O1 revi & automations, revi Differential Revision: https://issuetracker.revi.xyz/D376 |
||
---|---|---|
.. | ||
package.json | ||
prettier.config.js | ||
README.md |
@revi/prettier-config
This is @revi's personal prettier config.
Config
const config = {
bracketSpacing: false,
bracketSameLine: true,
proseWrap: 'preserve',
singleQuote: true,
trailingComma: 'all',
plugins: [
// https://github.com/prettier/plugin-php
'@prettier/plugin-php',
// https://github.com/un-ts/prettier/tree/master/packages/sh
'prettier-plugin-sh',
// https://github.com/bd82/toml-tools/tree/master/packages/prettier-plugin-toml
'prettier-plugin-toml',
],
overrides: [
{
files: '*.php',
options: {
parser: 'php',
phpVersion: '8.1',
useTabs: true,
tabWidth: 4,
braceStyle: '1tbs',
},
},
{
files: [
'.editorconfig',
'.gitattributes',
'.gitignore',
'.prettierignore',
],
options: {parser: 'sh', keepPadding: true, minify: false},
},
{
files: ['.arcconfig', '.arclint', '.arcunit', '.imgbotconfig'],
options: {parser: 'json'},
},
{
files: [
'.vscode/*.json',
'**.hujson',
'jsconfig.json',
'jsconfig.*.json',
'tsconfig.json',
'tsconfig.*.json',
],
options: {parser: 'jsonc', trailingComma: 'none'},
},
{
files: '.yamllint',
options: {parser: 'yaml'},
},
],
};
export default config;