11 - Formatierungsdatei anlegen Javascript
Beschreibung
Code Formatierung wird angelegt
Backend
- Navigiere zu medienserver/web_app/backend
- npm install
- npm install eslint --save-dev
- npm init @eslint/config
- 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? · node
- How would you like to define a style for your project? · prompt
- What format do you want your config file to be in? · JSON
- What style of indentation do you use? · 4
- What quotes do you use for strings? · double
- What line endings do you use? · unix
- Do you require semicolons? · Yes
Frontend
- Navigiere zu medienserver/web_app/frontend
- npm install
- npm install eslint --save-dev
- npm init @eslint/config
- 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? · prompt
- What format do you want your config file to be in? · JSON
- What style of indentation do you use? · 4
- What quotes do you use for strings? · double
- What line endings do you use? · unix
- Do you require semicolons? · Yes
Testen sowohl für Front-und Backend
- Navigiere zu medienserver/web_app/frontend oder medienserver/web_app/backend
- npx eslint './**/*.ts' // alle Typescript-Dateien, die in Front-oder Backend sind oder der gewünschte testende Datei wählen.
Akzeptanzkriterium
Formatierungsdatei die von Linter verwendet werden kann ist in git angelegt und verfügbar
Edited by Siby, Boubacar