1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

【備忘録】Reactのprettier設定

Last updated at Posted at 2022-03-23
.prettierrc.json
{
    "arrowParens": "avoid", //単一引数時に()の有無
    "bracketSpacing": true, // 単語間の空白スペース有無
    "htmlWhitespaceSensitivity": "css", //cssの設定
    "insertPragma": false,
    "jsxBracketSameLine": false,
    "jsxSingleQuote": false,
    "printWidth": 80, //80文字を超えたら改行する。
    "proseWrap": "preserve",
    "quoteProps": "as-needed",
    "requirePragma": false,
    "semi": false, //セミコロンなし
    "singleQuote": true, //シングルクオート
    "tabWidth": 2, //tab幅はスペース2
    "trailingComma": "all",
    "useTabs": false
  }
1
0
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?