.eslintrc.json 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. {
  2. "root": true,
  3. "ignorePatterns": [
  4. "projects/**/*"
  5. ],
  6. "overrides": [
  7. {
  8. "files": [
  9. "*.ts"
  10. ],
  11. "parserOptions": {
  12. "project": [
  13. "tsconfig.json"
  14. ],
  15. "createDefaultProgram": true
  16. },
  17. "extends": [
  18. "plugin:@typescript-eslint/recommended",
  19. "plugin:@angular-eslint/recommended",
  20. "plugin:@angular-eslint/template/process-inline-templates"
  21. ],
  22. "plugins": [
  23. "import"
  24. ],
  25. "rules": {
  26. "@angular-eslint/directive-selector": [
  27. "error",
  28. {
  29. "type": "attribute",
  30. "prefix": "vdr",
  31. "style": "camelCase"
  32. }
  33. ],
  34. "@angular-eslint/component-selector": [
  35. "error",
  36. {
  37. "type": "element",
  38. "prefix": "vdr",
  39. "style": "kebab-case"
  40. }
  41. ],
  42. "@angular-eslint/prefer-standalone": [
  43. "off"
  44. ],
  45. "@angular-eslint/no-input-rename": "off",
  46. "@typescript-eslint/array-type": [
  47. "error",
  48. {
  49. "default": "array-simple"
  50. }
  51. ],
  52. "@typescript-eslint/naming-convention": "off",
  53. "@typescript-eslint/consistent-type-definitions": "off",
  54. "@typescript-eslint/dot-notation": "off",
  55. "@typescript-eslint/explicit-member-accessibility": [
  56. "off",
  57. {
  58. "accessibility": "explicit"
  59. }
  60. ],
  61. "@typescript-eslint/member-ordering": "off",
  62. "@typescript-eslint/no-empty-function": "error",
  63. "@typescript-eslint/no-empty-interface": "off",
  64. "@typescript-eslint/no-floating-promises": "off",
  65. "@typescript-eslint/no-var-requires": "error",
  66. "arrow-parens": [
  67. "off",
  68. "always"
  69. ],
  70. "id-blacklist": "off",
  71. "id-match": "off",
  72. "import/order": "error",
  73. "jsdoc/check-alignment": "off",
  74. "jsdoc/newline-after-description": "off",
  75. "max-len": [
  76. "error",
  77. {
  78. "code": 170
  79. }
  80. ],
  81. "no-empty": "error",
  82. "no-underscore-dangle": "off",
  83. "prefer-arrow/prefer-arrow-functions": "off"
  84. }
  85. },
  86. {
  87. "files": [
  88. "*.html"
  89. ],
  90. "extends": [
  91. "plugin:@angular-eslint/template/recommended"
  92. ],
  93. "rules": {
  94. "@angular-eslint/template/no-negated-async": "off",
  95. "@angular-eslint/template/eqeqeq": "off"
  96. }
  97. }
  98. ]
  99. }