.eslintrc.json 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. "no-empty-function": "off",
  39. "@typescript-eslint/no-empty-function": "off",
  40. "@angular-eslint/no-empty-lifecycle-method": "off"
  41. }
  42. },
  43. {
  44. "files": ["*.html"],
  45. "extends": ["plugin:@angular-eslint/template/recommended"],
  46. "rules": {}
  47. }
  48. ]
  49. }