style: Configure and run eslint

This commit is contained in:
Phan Huy Tran 2025-02-13 10:58:13 +01:00
parent 19ab3933d6
commit 372449cd04
5 changed files with 335 additions and 21 deletions

View file

@ -8,7 +8,8 @@
"watch": "bunx @angular/cli build --watch --configuration development",
"test": "bunx @angular/cli test",
"format": "prettier --write \"src/**/*.{ts,html,css,scss}\"",
"format:check": "prettier --check \"src/**/*.{ts,html,css,scss}\""
"format:check": "prettier --check \"src/**/*.{ts,html,css,scss}\"",
"lint": "ng lint"
},
"private": true,
"dependencies": {
@ -33,6 +34,8 @@
"@angular/cli": "^18.2.2",
"@angular/compiler-cli": "^18.2.0",
"@types/jasmine": "~5.1.0",
"angular-eslint": "19.1.0",
"eslint": "^9.20.0",
"jasmine-core": "~5.2.0",
"karma": "~6.4.0",
"karma-chrome-launcher": "~3.2.0",
@ -40,6 +43,7 @@
"karma-jasmine": "~5.1.0",
"karma-jasmine-html-reporter": "~2.1.0",
"prettier": "^3.4.2",
"typescript": "~5.5.2"
"typescript": "~5.5.2",
"typescript-eslint": "8.23.0"
}
}
}