0
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?

Next環境構築

Posted at

はじめに

自分が環境構築する時のESLintとかPrettierのメモ。
aspidaとかswrの設定も追記したい。

ボイラープレートも作成中。

インストール

npx create-next-app@latest

ESLint, Prettier

.eslintrc.json
{
  "extends": ["next/core-web-vitals", "plugin:storybook/recommended"],
  "plugins": ["unused-imports", "import"],
  "rules": {
    "unused-imports/no-unused-imports": "error",
    "import/order": [
      "error",
      {
        "groups": [
          "builtin",
          "external",
          "parent",
          "sibling",
          "index",
          "object",
          "type",
          "internal"
        ],
        "alphabetize": {
          "order": "asc"
        }
      }
    ],
    "sort-imports": [
      "error",
      {
        "ignoreDeclarationSort": true
      }
    ]
  }
}
.prettierrc
{
  "semi": true,
  "singleQuote": true,
  "trailingComma": "all"
}
.vscode/.setting.json
{
  "editor.formatOnSave": true,
  "editor.defaultFormatter": "esbenp.prettier-vscode"
}

最後に

pnpmとかbunとか色々あるけど何がいいんやろ

0
0
0

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
0
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?