TODO: write this.
This template bootstrapped with create-next-app
.
Allow official Getting Started.
This template answer for question to initialize eslint config like below. Below is example.
❯ npx eslint --init
✔ 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? · 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
✔ What format do you want your config file to be in? · JavaScript
Checking peerDependencies of eslint-config-standard@latest
The config that you've selected requires the following dependencies:
eslint-plugin-react@latest @typescript-eslint/eslint-plugin@latest eslint-config-standard@latest eslint@^7.12.1 eslint-plugin-import@^2.22.1 eslint-plugin-node@^11.1.0 eslint-plugin-promise@^4.2.1 @typescript-eslint/parser@latest
✔ Would you like to install them now with npm? · Yes
Explanation of difference between rules, extends, plugin is here.
Below is example. (Probably, some plugin was already configured when initializing eslint)
- eslint:recommended
- eslint-plugin-react
- standard-with-typescript
- eslint-plugin-eslint-comments
- eslint-plugin-imort
- eslint-plugin-jsx-a11y
- eslint-plugin-compat
Allow official Getting Started.
Note that You may need to configure eslint.
Configure your favorite options.
See official site
Example for VSCode.