$ yarn eslint --init
# You can also run this command directly using 'npm init @eslint/config'.
# Need to install the following packages:
@eslint/create-config@0.4.5
# Ok to proceed? (y) y
ターミナルでyarn eslint --initと入力すると、 You can also run ~(中略)~ OK to Proceed? (y)と質問される場合はyと答える。
√ How would you like to use ESLint? · style
√ What type of modules does your project use? · esm
√ Which framework does your project use? · react
√ Does your project use TypeScript? · No / Yes
√ Where does your code run? · browser
√ How would you like to define a style for your project? · guide
√ Which style guide do you want to follow? · standard-with-typescript
√ What format do you want your config file to be in? · JavaScript
Checking peerDependencies of eslint-config-standard-with-typescript@latest
The config that you've selected requires the following dependencies:
eslint-plugin-react@latest eslint-config-standard-with-typescript@latest @typescript-eslint/eslint-plugin@^5.50.0 eslint@^8.0.1 eslint-plugin-import@^2.25.2 eslint-plugin-n@^15.0.0 eslint-plugin-promise@^6.0.0 typescript@*
√ Would you like to install them now? · No / Yes
√ Which package manager do you want to use? · yarn
2行目What type of modules does your project use?· esmはJavaScript modules (import/export)を選択。 No / Yesの箇所はYesを選択。
コメント