.eslintrc.json 1.1 KB

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