From 0423988e4d4385bfbedb886ff111318fa023794b Mon Sep 17 00:00:00 2001 From: shaharkazaz Date: Tue, 1 Aug 2023 01:11:38 +0300 Subject: [PATCH] =?UTF-8?q?chore:=20=F0=9F=A4=96=20run=20lint=20fix=20on?= =?UTF-8?q?=20pre-commit?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .lintstagedrc | 3 +++ apps/transloco-playground/src/app/app.component.ts | 1 + .../src/app/on-push/on-push.component.ts | 1 + apps/transloco-playground/src/app/transloco-loader.ts | 1 + package.json | 9 --------- 5 files changed, 6 insertions(+), 9 deletions(-) diff --git a/.lintstagedrc b/.lintstagedrc index 332e964a1..c482bfda4 100644 --- a/.lintstagedrc +++ b/.lintstagedrc @@ -1,4 +1,7 @@ { + "*.{ts,js}": [ + "eslint --fix", + ], "*.{js,json,css,scss,less,md,ts,html,component.html}": [ "prettier --write" ] diff --git a/apps/transloco-playground/src/app/app.component.ts b/apps/transloco-playground/src/app/app.component.ts index e90651fa2..579836011 100644 --- a/apps/transloco-playground/src/app/app.component.ts +++ b/apps/transloco-playground/src/app/app.component.ts @@ -4,6 +4,7 @@ import { RouterModule } from '@angular/router'; import { Subscription, take } from 'rxjs'; import { TranslocoService, LangDefinition } from '@ngneat/transloco'; + import { environment } from '../environments/environment'; @Component({ diff --git a/apps/transloco-playground/src/app/on-push/on-push.component.ts b/apps/transloco-playground/src/app/on-push/on-push.component.ts index 2f71492cf..8619ec451 100644 --- a/apps/transloco-playground/src/app/on-push/on-push.component.ts +++ b/apps/transloco-playground/src/app/on-push/on-push.component.ts @@ -2,6 +2,7 @@ import { CommonModule } from '@angular/common'; import { ChangeDetectionStrategy, Component } from '@angular/core'; import { TranslocoModule } from '@ngneat/transloco'; + import { environment } from '../../environments/environment'; @Component({ diff --git a/apps/transloco-playground/src/app/transloco-loader.ts b/apps/transloco-playground/src/app/transloco-loader.ts index 53493e461..1fe943450 100644 --- a/apps/transloco-playground/src/app/transloco-loader.ts +++ b/apps/transloco-playground/src/app/transloco-loader.ts @@ -2,6 +2,7 @@ import { inject, Injectable } from '@angular/core'; import { HttpClient } from '@angular/common/http'; import { Translation, TranslocoLoader } from '@ngneat/transloco'; + import { environment } from '../environments/environment'; @Injectable({ providedIn: 'root' }) diff --git a/package.json b/package.json index 8df5e6014..f11ad7be6 100644 --- a/package.json +++ b/package.json @@ -121,15 +121,6 @@ "ts-node": "10.9.1", "typescript": "5.1.6" }, - "lint-staged": { - "*.{ts,js}": [ - "nx lint --fix", - "nx format --write" - ], - "*.{scss,html}": [ - "nx format --write" - ] - }, "config": { "commitizen": { "path": "git-cz"