.eslintrc.json 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. {
  2. "root": true,
  3. "ignorePatterns": ["projects/**/*"],
  4. "overrides": [
  5. {
  6. "files": ["*.ts"],
  7. "parserOptions": {
  8. "project": ["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/directive-selector": [
  18. "error",
  19. {
  20. "type": "attribute",
  21. "prefix": "vdr",
  22. "style": "camelCase"
  23. }
  24. ],
  25. "@angular-eslint/component-selector": [
  26. "error",
  27. {
  28. "type": "element",
  29. "prefix": "vdr",
  30. "style": "kebab-case"
  31. }
  32. ],
  33. "@angular-eslint/no-input-rename": "off",
  34. "@typescript-eslint/array-type": [
  35. "error",
  36. {
  37. "default": "array-simple"
  38. }
  39. ],
  40. "@typescript-eslint/naming-convention": "off",
  41. "@typescript-eslint/consistent-type-definitions": "off",
  42. "@typescript-eslint/dot-notation": "off",
  43. "@typescript-eslint/explicit-member-accessibility": [
  44. "off",
  45. {
  46. "accessibility": "explicit"
  47. }
  48. ],
  49. "@typescript-eslint/member-ordering": "off",
  50. "@typescript-eslint/no-empty-function": "error",
  51. "@typescript-eslint/no-empty-interface": "off",
  52. "@typescript-eslint/no-floating-promises": "off",
  53. "@typescript-eslint/no-var-requires": "error",
  54. "arrow-parens": ["off", "always"],
  55. "id-blacklist": "off",
  56. "id-match": "off",
  57. "import/order": "error",
  58. "jsdoc/check-alignment": "off",
  59. "jsdoc/newline-after-description": "off",
  60. "max-len": [
  61. "error",
  62. {
  63. "code": 170
  64. }
  65. ],
  66. "no-empty": "error",
  67. "no-underscore-dangle": "off",
  68. "prefer-arrow/prefer-arrow-functions": "off"
  69. }
  70. },
  71. {
  72. "files": ["*.html"],
  73. "extends": ["plugin:@angular-eslint/template/recommended"],
  74. "rules": {
  75. "@angular-eslint/template/no-negated-async": "off",
  76. "@angular-eslint/template/eqeqeq": "off"
  77. }
  78. }
  79. ]
  80. }