ニジカ投稿局 https://tv.nizika.tv
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

181 lines
4.9 KiB

  1. {
  2. "root": true,
  3. "ignorePatterns": [
  4. "projects/**/*",
  5. "node_modules/",
  6. "src/standalone/embed-player-api/dist"
  7. ],
  8. "overrides": [
  9. {
  10. "files": [
  11. "*.ts"
  12. ],
  13. "parserOptions": {
  14. "project": [
  15. "tsconfig.eslint.json"
  16. ],
  17. "EXPERIMENTAL_useSourceOfProjectReferenceRedirect": true,
  18. "createDefaultProgram": false
  19. },
  20. "extends": [
  21. "../.eslintrc.json",
  22. "plugin:@angular-eslint/recommended",
  23. "plugin:@angular-eslint/template/process-inline-templates"
  24. ],
  25. "rules": {
  26. "jsdoc/newline-after-description": "off",
  27. "jsdoc/check-alignment": "off",
  28. "lines-between-class-members": "off",
  29. "@typescript-eslint/lines-between-class-members": [ "off" ],
  30. "arrow-body-style": "off",
  31. "no-underscore-dangle": "off",
  32. "n/no-callback-literal": "off",
  33. "@angular-eslint/component-selector": [
  34. "error",
  35. {
  36. "type": [ "element", "attribute" ],
  37. "prefix": "my",
  38. "style": "kebab-case"
  39. }
  40. ],
  41. "@angular-eslint/directive-selector": [
  42. "error",
  43. {
  44. "type": [ "element", "attribute" ],
  45. "prefix": "my",
  46. "style": "camelCase"
  47. }
  48. ],
  49. "@typescript-eslint/no-this-alias": [
  50. "error",
  51. {
  52. "allowDestructuring": true,
  53. "allowedNames": ["self", "player"]
  54. }
  55. ],
  56. "@typescript-eslint/prefer-readonly": "off",
  57. "@angular-eslint/use-component-view-encapsulation": "error",
  58. "prefer-arrow/prefer-arrow-functions": "off",
  59. "@typescript-eslint/await-thenable": "error",
  60. "@typescript-eslint/consistent-type-definitions": "off",
  61. "@typescript-eslint/dot-notation": "off",
  62. "@typescript-eslint/explicit-member-accessibility": [
  63. "off",
  64. {
  65. "accessibility": "explicit"
  66. }
  67. ],
  68. "@typescript-eslint/member-ordering": [
  69. "off"
  70. ],
  71. "@typescript-eslint/member-delimiter-style": [
  72. "error",
  73. {
  74. "multiline": {
  75. "delimiter": "none",
  76. "requireLast": true
  77. },
  78. "singleline": {
  79. "delimiter": "comma",
  80. "requireLast": false
  81. }
  82. }
  83. ],
  84. "@typescript-eslint/prefer-for-of": "off",
  85. "@typescript-eslint/no-empty-function": "error",
  86. "@typescript-eslint/no-floating-promises": "off",
  87. "@typescript-eslint/no-inferrable-types": "error",
  88. "@typescript-eslint/no-shadow": [
  89. "off",
  90. {
  91. "hoist": "all"
  92. }
  93. ],
  94. "@typescript-eslint/no-unnecessary-qualifier": "error",
  95. "@typescript-eslint/no-unnecessary-type-assertion": "error",
  96. "@typescript-eslint/no-unused-expressions": [
  97. "error",
  98. {
  99. "allowTaggedTemplates": true,
  100. "allowShortCircuit": true
  101. }
  102. ],
  103. "@typescript-eslint/quotes": [
  104. "error",
  105. "single",
  106. {
  107. "avoidEscape": true,
  108. "allowTemplateLiterals": true
  109. }
  110. ],
  111. "@typescript-eslint/semi": [
  112. "error",
  113. "never"
  114. ],
  115. "brace-style": [
  116. "error",
  117. "1tbs"
  118. ],
  119. "comma-dangle": "error",
  120. "curly": [
  121. "error",
  122. "multi-line"
  123. ],
  124. "dot-notation": "off",
  125. "no-useless-return": "off",
  126. "indent": "off",
  127. "no-bitwise": "off",
  128. "no-console": "off",
  129. "no-return-assign": "off",
  130. "no-constant-condition": "error",
  131. "no-control-regex": "error",
  132. "no-duplicate-imports": "error",
  133. "no-empty": "error",
  134. "no-empty-function": [
  135. "error",
  136. { "allow": [ "constructors" ] }
  137. ],
  138. "no-invalid-regexp": "error",
  139. "no-multiple-empty-lines": "error",
  140. "no-redeclare": "error",
  141. "no-regex-spaces": "error",
  142. "no-return-await": "error",
  143. "no-shadow": "off",
  144. "no-unused-expressions": "error",
  145. "semi": "error",
  146. "space-before-function-paren": [
  147. "error",
  148. "always"
  149. ],
  150. "space-in-parens": [
  151. "error",
  152. "never"
  153. ],
  154. "object-shorthand": [
  155. "error",
  156. "properties"
  157. ],
  158. "quote-props": [
  159. "error",
  160. "consistent-as-needed"
  161. ],
  162. "no-constant-binary-expression": "error",
  163. "@typescript-eslint/unbound-method": [
  164. "error",
  165. { "ignoreStatic": true }
  166. ]
  167. }
  168. },
  169. {
  170. "files": [
  171. "*.html"
  172. ],
  173. "extends": [
  174. "plugin:@angular-eslint/template/recommended",
  175. "plugin:@angular-eslint/template/accessibility"
  176. ],
  177. "rules": {}
  178. }
  179. ]
  180. }