Skip to content

Instantly share code, notes, and snippets.

View VlnRbn's full-sized avatar

Velen Ruben Aranha VlnRbn

View GitHub Profile
@VlnRbn
VlnRbn / .eslintrc.js
Created March 11, 2020 06:04
Cool VSCode prettier and eslint config
module.exports = {
root: true,
env: {
node: true
},
extends: [
"plugin:vue/essential",
"eslint:recommended",
"@vue/typescript/recommended", //only for vue
"@vue/prettier", //only for vue
@VlnRbn
VlnRbn / VueLearning.md
Last active March 6, 2020 04:12
Vue Learning
@VlnRbn
VlnRbn / vue-errors-debugging.md
Last active March 5, 2020 10:14
Common Vue errors: These are few errors i encountered while developing vue.js

Error: Failed to load config "@vue/prettier" to extend from.

Encountered during migration to typescript and adding prettier, Was using standard linting before.

npm i @vue/eslint-config-prettier

@VlnRbn
VlnRbn / websocket-base.service.ts
Last active June 17, 2019 04:51
Snippet for integrating websockets using rxjs. Below code is using an integration example for angular
import { Injectable } from '@angular/core';
import {WebSocketSubject, webSocket} from 'rxjs/webSocket'
@Injectable({providedIn: 'root'})
export class WebsocketBaseService {
private serverMessages : Array<any>
private socket$: WebSocketSubject<any>;
private readonly socketURL = "url"