From 961cce51604ff8f4c2735014ed616d3dc8b24a8b Mon Sep 17 00:00:00 2001 From: nsemets Date: Mon, 2 Jun 2025 14:10:42 +0300 Subject: [PATCH] chore(scripts): updated format and lint scripts --- jest.config.js | 4 +--- package.json | 8 +++++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/jest.config.js b/jest.config.js index 419f3ccb8..569b4f95e 100644 --- a/jest.config.js +++ b/jest.config.js @@ -17,9 +17,7 @@ module.exports = { }, ], }, - transformIgnorePatterns: [ - 'node_modules/(?!.*\\.mjs$|@ngxs|@angular|@ngrx|parse5|entities|chart.js)' - ], + transformIgnorePatterns: ['node_modules/(?!.*\\.mjs$|@ngxs|@angular|@ngrx|parse5|entities|chart.js)'], testEnvironment: 'jsdom', moduleFileExtensions: ['ts', 'js', 'html', 'json', 'mjs'], coverageDirectory: 'coverage', diff --git a/package.json b/package.json index deed6cba9..66258b15e 100644 --- a/package.json +++ b/package.json @@ -9,9 +9,11 @@ "test": "jest", "test:watch": "jest --watch", "test:coverage": "jest --coverage", - "lint": "eslint . --ext .ts,.html", - "format": "prettier --write \"src/**/*.{ts,html,scss}\"", - "prettier:check": "prettier --check \"src/**/*.{ts,html,scss}\"", + "lint": "ng lint", + "lint:fix": "ng lint --fix", + "format": "prettier --write .", + "format:check": "prettier --check .", + "lint:format": "npm run lint:fix && npm run format", "icons:optimize": "node src/assets/icons/optimize.mjs", "icons:generate": "fantasticon -c .fantasticonrc.js", "icons:build": "bun run icons:optimize && bun run icons:generate",