npm init -y
npm install --save-dev typescript ts-node eslint
npm install discord.js dotenv
npx tsc --init
npx eslint --init
> npx eslint --init
You can also run this command directly using 'npm init @eslint/config'.
Need to install the following packages:
@eslint/[email protected]
Ok to proceed? (y)
√ How would you like to use ESLint? ・ style
√ What type of modules does your project use? ・ esm
√ Which framework does your project use? ・ none
√ 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-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-config-standard-with-typescript@latest @typescript-eslint/eslint-plugin@^5.43.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? ・ Yes
√ Which package manager do you want to use? ・ npm
Installing eslint-config-standard-with-typescript@latest, @typescript-eslint/eslint-plugin@^5.43.0, eslint@^8.0.1, eslint-plugin-import@^2.25.2, eslint-plugin-n@^15.0.0,
eslint-plugin-promise@^6.0.0, typescript@*
added 113 packages, and audited 260 packages in 7s
nodejs 18.15