sudo apt update && sudo apt dist-upgrade -y
sudo apt install unzip
curl -fsSL https://bun.sh/install | bash
source ~/.bashrc
--> check if it was loaded correctly
bun --help
--> ensure you have a EMPTY GitHub repo
--> clone down repo
bun init .
--> if you are going to have user input, install one of the following:
- bun-promptx
- Inquirer
bun add bun-promptx
bun install @inquirer/prompts
touch .eslintignore
bun init @eslint/config
bun install eslint --save-dev
bun install --save-dev eslint-plugin-jsdoc
then answer the following questions:
✔ How would you like to use ESLint? To check syntax, find problems, and enforce code style
✔ What type of modules does your project use? JavaScript modules (import/export)
✔ Which framework does your project use? None of these
✔ Does your project use TypeScript? Yes
✔ Where does your code run? Node
✔ 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? JSON
✔ Would you like to install them now? Yes
✔ Which package manager do you want to use? npm
then add in the following:
in .eslintignore add the following:
node_modules
tsconfig.json
in .eslintrc replace and add the following:
{
"env": {
"es2021": true
},
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"rules": {
"semi": [2, "never"],
"indent": ["error", 2]
}
}
bun x eslint ./*.ts
bun run ./index.ts