Encountered during migration to typescript and adding prettier, Was using standard linting before.
npm i @vue/eslint-config-prettier
| 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" |
Vue Projects - YouTube
| module.exports = { | |
| root: true, | |
| env: { | |
| node: true | |
| }, | |
| extends: [ | |
| "plugin:vue/essential", | |
| "eslint:recommended", | |
| "@vue/typescript/recommended", //only for vue | |
| "@vue/prettier", //only for vue |