Skip to content

Commit

Permalink
chore: 🤖 run lint fix on pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
shaharkazaz committed Jul 31, 2023
1 parent 5aff60a commit 0423988
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 9 deletions.
3 changes: 3 additions & 0 deletions .lintstagedrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{
"*.{ts,js}": [
"eslint --fix",
],
"*.{js,json,css,scss,less,md,ts,html,component.html}": [
"prettier --write"
]
Expand Down
1 change: 1 addition & 0 deletions apps/transloco-playground/src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down
1 change: 1 addition & 0 deletions apps/transloco-playground/src/app/transloco-loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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' })
Expand Down
9 changes: 0 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 0423988

Please sign in to comment.