ng add @angular-eslint/schematics
npm i prettier prettier-eslint eslint-config-prettier eslint-plugin-prettier -D
Filename: .eslintrc.json
| function counter() { | |
| let count = 0; | |
| function increment() { | |
| return count += 1; | |
| }; | |
| return increment; | |
| } |
| import axios, { AxiosResponse } from 'axios'; | |
| import { PostType } from '../models/post.interface'; | |
| const instance = axios.create({ | |
| baseURL: 'http://jsonplaceholder.typicode.com/', | |
| timeout: 15000, | |
| }); | |
| const responseBody = (response: AxiosResponse) => response.data; |
| enum keyCodes { | |
| BACKSPACE: 8, | |
| TAB: 9, | |
| ENTER: 13, | |
| SHIFT: 16, | |
| CTRL: 17, | |
| ALT: 18, | |
| PAUSE: 19, | |
| CAPS_LOCK: 20, | |
| ESCAPE: 27, |
People
:bowtie: |
😄 :smile: |
😆 :laughing: |
|---|---|---|
😊 :blush: |
😃 :smiley: |
:relaxed: |
😏 :smirk: |
😍 :heart_eyes: |
😘 :kissing_heart: |
😚 :kissing_closed_eyes: |
😳 :flushed: |
😌 :relieved: |
😆 :satisfied: |
😁 :grin: |
😉 :wink: |
😜 :stuck_out_tongue_winking_eye: |
😝 :stuck_out_tongue_closed_eyes: |
😀 :grinning: |
😗 :kissing: |
😙 :kissing_smiling_eyes: |
😛 :stuck_out_tongue: |
| myElement.closest('article').querySelector('h1'); |
| document.querySelector(document.location.hash).scrollIntoView(); |
| const tableEl = document.querySelector('table'); | |
| const headerRow = tableEl.createTHead().insertRow(); | |
| headerRow.insertCell().textContent = 'Make'; | |
| headerRow.insertCell().textContent = 'Model'; | |
| headerRow.insertCell().textContent = 'Color'; | |
| const newRow = tableEl.insertRow(); | |
| newRow.insertCell().textContent = 'Yes'; | |
| newRow.insertCell().textContent = 'No'; |