|
7 | 7 | "build": "ng build",
|
8 | 8 | "test": "ng test",
|
9 | 9 | "lint": "ng lint",
|
10 |
| - "e2e": "ng e2e" |
| 10 | + "e2e": "ng e2e", |
| 11 | + "lint:fix": "eslint --fix \"src/**/*.ts\"", |
| 12 | + "style:fix": "stylelint \"src/**/*.scss\" --syntax scss --fix", |
| 13 | + "format:fix": "prettier --write \"src/**/*.{ts,js,json,scss}\"" |
11 | 14 | },
|
12 | 15 | "private": true,
|
| 16 | + "husky": { |
| 17 | + "hooks": { |
| 18 | + "pre-commit": "lint-staged" |
| 19 | + } |
| 20 | + }, |
| 21 | + "lint-staged": { |
| 22 | + "*.{js,ts,tsx}": [ |
| 23 | + "eslint --fix", |
| 24 | + "prettier --write" |
| 25 | + ], |
| 26 | + "*.scss": [ |
| 27 | + "prettier --write", |
| 28 | + "stylelint --syntax scss --fix" |
| 29 | + ] |
| 30 | + }, |
13 | 31 | "dependencies": {
|
14 | 32 | "@angular/animations": "~9.0.0",
|
15 | 33 | "@angular/common": "~9.0.0",
|
|
28 | 46 | "@angular/cli": "~9.0.1",
|
29 | 47 | "@angular/compiler-cli": "~9.0.0",
|
30 | 48 | "@angular/language-service": "~9.0.0",
|
31 |
| - "@types/node": "^12.11.1", |
32 | 49 | "@types/jasmine": "~3.5.0",
|
33 | 50 | "@types/jasminewd2": "~2.0.3",
|
| 51 | + "@types/node": "^12.11.1", |
| 52 | + "@typescript-eslint/eslint-plugin": "^3.0.2", |
| 53 | + "@typescript-eslint/parser": "^3.0.2", |
34 | 54 | "codelyzer": "^5.1.2",
|
| 55 | + "eslint": "^7.1.0", |
| 56 | + "eslint-config-prettier": "^6.11.0", |
| 57 | + "eslint-plugin-angular": "^4.0.1", |
| 58 | + "eslint-plugin-node": "^11.1.0", |
| 59 | + "eslint-plugin-prettier": "^3.1.3", |
| 60 | + "eslint-plugin-simple-import-sort": "^5.0.3", |
| 61 | + "husky": "^4.2.5", |
35 | 62 | "jasmine-core": "~3.5.0",
|
36 | 63 | "jasmine-spec-reporter": "~4.2.1",
|
37 | 64 | "karma": "~4.3.0",
|
38 | 65 | "karma-chrome-launcher": "~3.1.0",
|
39 | 66 | "karma-coverage-istanbul-reporter": "~2.1.0",
|
40 | 67 | "karma-jasmine": "~2.0.1",
|
41 | 68 | "karma-jasmine-html-reporter": "^1.4.2",
|
| 69 | + "lint-staged": "^10.2.7", |
| 70 | + "prettier": "^2.0.5", |
42 | 71 | "protractor": "~5.4.3",
|
| 72 | + "stylelint": "^13.5.0", |
| 73 | + "stylelint-config-prettier": "^8.0.1", |
| 74 | + "stylelint-config-sass-guidelines": "^7.0.0", |
| 75 | + "stylelint-config-standard": "^20.0.0", |
| 76 | + "stylelint-prettier": "^1.1.2", |
| 77 | + "stylelint-scss": "^3.17.2", |
43 | 78 | "ts-node": "~8.3.0",
|
44 | 79 | "tslint": "~5.18.0",
|
45 | 80 | "typescript": "~3.7.5"
|
|
0 commit comments