.eslintrc.json 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  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/no-input-rename": "off",
  43. "@typescript-eslint/array-type": [
  44. "error",
  45. {
  46. "default": "array-simple"
  47. }
  48. ],
  49. "@typescript-eslint/naming-convention": "off",
  50. "@typescript-eslint/consistent-type-definitions": "off",
  51. "@typescript-eslint/dot-notation": "off",
  52. "@typescript-eslint/explicit-member-accessibility": [
  53. "off",
  54. {
  55. "accessibility": "explicit"
  56. }
  57. ],
  58. "@typescript-eslint/member-ordering": "off",
  59. "@typescript-eslint/no-empty-function": "error",
  60. "@typescript-eslint/no-empty-interface": "off",
  61. "@typescript-eslint/no-floating-promises": "off",
  62. "@typescript-eslint/no-var-requires": "error",
  63. "arrow-parens": [
  64. "off",
  65. "always"
  66. ],
  67. "id-blacklist": "off",
  68. "id-match": "off",
  69. "import/order": "error",
  70. "jsdoc/check-alignment": "off",
  71. "jsdoc/newline-after-description": "off",
  72. "max-len": [
  73. "error",
  74. {
  75. "code": 170
  76. }
  77. ],
  78. "no-empty": "error",
  79. "no-underscore-dangle": "off",
  80. "prefer-arrow/prefer-arrow-functions": "off"
  81. }
  82. },
  83. {
  84. "files": [
  85. "*.html"
  86. ],
  87. "extends": [
  88. "plugin:@angular-eslint/template/recommended"
  89. ],
  90. "rules": {
  91. "@angular-eslint/template/no-negated-async": "off",
  92. "@angular-eslint/template/eqeqeq": "off"
  93. }
  94. }
  95. ]
  96. }