1.1.1 • Published 7 months ago

@baton8/eslint-config v1.1.1

Weekly downloads
-
License
-
Repository
-
Last release
7 months ago

インストール方法

基本

以下を実行してパッケージをインストールしてください。

yarn add -D @baton8/eslint-config
yarn add -D eslint eslint-plugin-import eslint-plugin-unused-imports eslint-plugin-jsdoc eslint-plugin-react eslint-plugin-react-hooks @typescript-eslint/parser @typescript-eslint/eslint-plugin

.eslintrc.json をリポジトリトップに作成して、以下を書き込んでください。

{
  "extends": [
    "@baton8"
  ]
}

Next.js

上記の「基本」の操作を行った上で、さらに以下を行ってください。

以下を実行してパッケージをインストールしてください。

yarn add -D eslint-config-next

.eslintrc.json に以下のように追記してください。

{
  "extends": [
     ⋮
    "plugin:@next/next/recommended"
  ],
}
1.1.1

7 months ago

1.0.2

2 years ago

1.0.1

2 years ago