.eslintrc.json 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. {
  2. "root": true,
  3. "ignorePatterns": ["projects/**/*"],
  4. "overrides": [
  5. {
  6. "files": ["*.ts"],
  7. "parserOptions": {
  8. "project": ["./TFPower-app/tsconfig.json"],
  9. "createDefaultProgram": true
  10. },
  11. "extends": [
  12. "plugin:@angular-eslint/recommended",
  13. "plugin:@angular-eslint/template/process-inline-templates"
  14. ],
  15. "rules": {
  16. "@angular-eslint/component-class-suffix": [
  17. "error",
  18. {
  19. "suffixes": ["Page", "Component"]
  20. }
  21. ],
  22. "@angular-eslint/component-selector": [
  23. "error",
  24. {
  25. "type": "element",
  26. "prefix": "app",
  27. "style": "kebab-case"
  28. }
  29. ],
  30. "@angular-eslint/directive-selector": [
  31. "error",
  32. {
  33. "type": "attribute",
  34. "prefix": "app",
  35. "style": "camelCase"
  36. }
  37. ]
  38. }
  39. },
  40. {
  41. "files": ["*.html"],
  42. "extends": ["plugin:@angular-eslint/template/recommended"],
  43. "rules": {}
  44. }
  45. ]
  46. }