.eslintrc.json 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. {
  2. "ignorePatterns": [
  3. "projects/**/*"
  4. ],
  5. "overrides": [
  6. {
  7. "files": [
  8. "*.ts"
  9. ],
  10. "parserOptions": {
  11. "project": [
  12. "examples/angular-example/tsconfig.json",
  13. "examples/angular-example/e2e/tsconfig.json"
  14. ],
  15. "createDefaultProgram": true
  16. },
  17. "extends": [
  18. "plugin:@angular-eslint/ng-cli-compat",
  19. "plugin:@angular-eslint/ng-cli-compat--formatting-add-on",
  20. "plugin:@angular-eslint/template/process-inline-templates"
  21. ],
  22. "rules": {
  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. "@typescript-eslint/semi": ["error", "never"],
  40. "dot-notation": "error",
  41. "import/no-unresolved": "off",
  42. "import/prefer-default-export": "off",
  43. "indent": "error",
  44. "no-empty-function": "off",
  45. "no-shadow": "error",
  46. "no-unused-expressions": "error",
  47. "no-use-before-define": "off",
  48. "quotes": "error",
  49. "semi": ["error", "never"]
  50. }
  51. },
  52. {
  53. "files": ["e2e/**/*.ts"],
  54. "rules": {
  55. "import/no-extraneous-dependencies": "off"
  56. }
  57. },
  58. {
  59. "files": [
  60. "star.html"
  61. ],
  62. "extends": [
  63. "plugin:@angular-eslint/template/recommended"
  64. ],
  65. "rules": {}
  66. }
  67. ]
  68. }