.eslintrc.json 934 B

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