sandbox/npm/prettier-config
Yongmin Hong f556f313d7
npm: update email address
Summary:
Update email address to dedicated mailbox.

No new version bump because cosmetic changes.

Signed-off-by: Yongmin Hong <revi@omglol.email>

Test Plan: Not really test-able thing.

Reviewers: O1 revi & automations, revi

Reviewed By: O1 revi & automations, revi

Tags: #npm

Differential Revision: https://issuetracker.revi.xyz/D461
2024-06-30 16:46:06 +09:00
..
package.json npm: update email address 2024-06-30 16:46:06 +09:00
prettier.config.js CI(npm): Refer local directory as file path 2024-06-25 16:09:48 +09:00
README.md CI(npm): Refer local directory as file path 2024-06-25 16:09:48 +09:00

@revi/prettier-config

NPM Version GitHub License

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: [
        '**.hujson',
        '.devcontainer.json',
        '.devcontainer/*/devcontainer.json',
        '.devcontainer/devcontainer.json',
        '.vscode/*.json',
        '**/jsconfig.json',
        '**/jsconfig.*.json',
        '**/tsconfig.json',
        '**/tsconfig.*.json',
        'jsconfig.json',
        'jsconfig.*.json',
        'tsconfig.json',
        'tsconfig.*.json',
      ],
      options: {parser: 'jsonc', trailingComma: 'none'},
    },
    {
      files: '.yamllint',
      options: {parser: 'yaml'},
    },
  ],
};

export default config;