index.js 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246
  1. /*
  2. * IMPORTANT!
  3. * This file has been automatically generated,
  4. * in order to update its content execute "npm run update"
  5. */
  6. 'use strict'
  7. module.exports = {
  8. rules: {
  9. 'array-bracket-newline': require('./rules/array-bracket-newline'),
  10. 'array-bracket-spacing': require('./rules/array-bracket-spacing'),
  11. 'arrow-spacing': require('./rules/arrow-spacing'),
  12. 'attribute-hyphenation': require('./rules/attribute-hyphenation'),
  13. 'attributes-order': require('./rules/attributes-order'),
  14. 'block-lang': require('./rules/block-lang'),
  15. 'block-spacing': require('./rules/block-spacing'),
  16. 'block-tag-newline': require('./rules/block-tag-newline'),
  17. 'brace-style': require('./rules/brace-style'),
  18. camelcase: require('./rules/camelcase'),
  19. 'comma-dangle': require('./rules/comma-dangle'),
  20. 'comma-spacing': require('./rules/comma-spacing'),
  21. 'comma-style': require('./rules/comma-style'),
  22. 'comment-directive': require('./rules/comment-directive'),
  23. 'component-api-style': require('./rules/component-api-style'),
  24. 'component-definition-name-casing': require('./rules/component-definition-name-casing'),
  25. 'component-name-in-template-casing': require('./rules/component-name-in-template-casing'),
  26. 'component-options-name-casing': require('./rules/component-options-name-casing'),
  27. 'component-tags-order': require('./rules/component-tags-order'),
  28. 'custom-event-name-casing': require('./rules/custom-event-name-casing'),
  29. 'dot-location': require('./rules/dot-location'),
  30. 'dot-notation': require('./rules/dot-notation'),
  31. eqeqeq: require('./rules/eqeqeq'),
  32. 'experimental-script-setup-vars': require('./rules/experimental-script-setup-vars'),
  33. 'first-attribute-linebreak': require('./rules/first-attribute-linebreak'),
  34. 'func-call-spacing': require('./rules/func-call-spacing'),
  35. 'html-button-has-type': require('./rules/html-button-has-type'),
  36. 'html-closing-bracket-newline': require('./rules/html-closing-bracket-newline'),
  37. 'html-closing-bracket-spacing': require('./rules/html-closing-bracket-spacing'),
  38. 'html-comment-content-newline': require('./rules/html-comment-content-newline'),
  39. 'html-comment-content-spacing': require('./rules/html-comment-content-spacing'),
  40. 'html-comment-indent': require('./rules/html-comment-indent'),
  41. 'html-end-tags': require('./rules/html-end-tags'),
  42. 'html-indent': require('./rules/html-indent'),
  43. 'html-quotes': require('./rules/html-quotes'),
  44. 'html-self-closing': require('./rules/html-self-closing'),
  45. 'jsx-uses-vars': require('./rules/jsx-uses-vars'),
  46. 'key-spacing': require('./rules/key-spacing'),
  47. 'keyword-spacing': require('./rules/keyword-spacing'),
  48. 'match-component-file-name': require('./rules/match-component-file-name'),
  49. 'max-attributes-per-line': require('./rules/max-attributes-per-line'),
  50. 'max-len': require('./rules/max-len'),
  51. 'multi-word-component-names': require('./rules/multi-word-component-names'),
  52. 'multiline-html-element-content-newline': require('./rules/multiline-html-element-content-newline'),
  53. 'mustache-interpolation-spacing': require('./rules/mustache-interpolation-spacing'),
  54. 'name-property-casing': require('./rules/name-property-casing'),
  55. 'new-line-between-multi-line-property': require('./rules/new-line-between-multi-line-property'),
  56. 'next-tick-style': require('./rules/next-tick-style'),
  57. 'no-arrow-functions-in-watch': require('./rules/no-arrow-functions-in-watch'),
  58. 'no-async-in-computed-properties': require('./rules/no-async-in-computed-properties'),
  59. 'no-bare-strings-in-template': require('./rules/no-bare-strings-in-template'),
  60. 'no-boolean-default': require('./rules/no-boolean-default'),
  61. 'no-child-content': require('./rules/no-child-content'),
  62. 'no-computed-properties-in-data': require('./rules/no-computed-properties-in-data'),
  63. 'no-confusing-v-for-v-if': require('./rules/no-confusing-v-for-v-if'),
  64. 'no-constant-condition': require('./rules/no-constant-condition'),
  65. 'no-custom-modifiers-on-v-model': require('./rules/no-custom-modifiers-on-v-model'),
  66. 'no-deprecated-data-object-declaration': require('./rules/no-deprecated-data-object-declaration'),
  67. 'no-deprecated-destroyed-lifecycle': require('./rules/no-deprecated-destroyed-lifecycle'),
  68. 'no-deprecated-dollar-listeners-api': require('./rules/no-deprecated-dollar-listeners-api'),
  69. 'no-deprecated-dollar-scopedslots-api': require('./rules/no-deprecated-dollar-scopedslots-api'),
  70. 'no-deprecated-events-api': require('./rules/no-deprecated-events-api'),
  71. 'no-deprecated-filter': require('./rules/no-deprecated-filter'),
  72. 'no-deprecated-functional-template': require('./rules/no-deprecated-functional-template'),
  73. 'no-deprecated-html-element-is': require('./rules/no-deprecated-html-element-is'),
  74. 'no-deprecated-inline-template': require('./rules/no-deprecated-inline-template'),
  75. 'no-deprecated-props-default-this': require('./rules/no-deprecated-props-default-this'),
  76. 'no-deprecated-router-link-tag-prop': require('./rules/no-deprecated-router-link-tag-prop'),
  77. 'no-deprecated-scope-attribute': require('./rules/no-deprecated-scope-attribute'),
  78. 'no-deprecated-slot-attribute': require('./rules/no-deprecated-slot-attribute'),
  79. 'no-deprecated-slot-scope-attribute': require('./rules/no-deprecated-slot-scope-attribute'),
  80. 'no-deprecated-v-bind-sync': require('./rules/no-deprecated-v-bind-sync'),
  81. 'no-deprecated-v-is': require('./rules/no-deprecated-v-is'),
  82. 'no-deprecated-v-on-native-modifier': require('./rules/no-deprecated-v-on-native-modifier'),
  83. 'no-deprecated-v-on-number-modifiers': require('./rules/no-deprecated-v-on-number-modifiers'),
  84. 'no-deprecated-vue-config-keycodes': require('./rules/no-deprecated-vue-config-keycodes'),
  85. 'no-dupe-keys': require('./rules/no-dupe-keys'),
  86. 'no-dupe-v-else-if': require('./rules/no-dupe-v-else-if'),
  87. 'no-duplicate-attr-inheritance': require('./rules/no-duplicate-attr-inheritance'),
  88. 'no-duplicate-attributes': require('./rules/no-duplicate-attributes'),
  89. 'no-empty-component-block': require('./rules/no-empty-component-block'),
  90. 'no-empty-pattern': require('./rules/no-empty-pattern'),
  91. 'no-export-in-script-setup': require('./rules/no-export-in-script-setup'),
  92. 'no-expose-after-await': require('./rules/no-expose-after-await'),
  93. 'no-extra-parens': require('./rules/no-extra-parens'),
  94. 'no-invalid-model-keys': require('./rules/no-invalid-model-keys'),
  95. 'no-irregular-whitespace': require('./rules/no-irregular-whitespace'),
  96. 'no-lifecycle-after-await': require('./rules/no-lifecycle-after-await'),
  97. 'no-lone-template': require('./rules/no-lone-template'),
  98. 'no-loss-of-precision': require('./rules/no-loss-of-precision'),
  99. 'no-multi-spaces': require('./rules/no-multi-spaces'),
  100. 'no-multiple-objects-in-class': require('./rules/no-multiple-objects-in-class'),
  101. 'no-multiple-slot-args': require('./rules/no-multiple-slot-args'),
  102. 'no-multiple-template-root': require('./rules/no-multiple-template-root'),
  103. 'no-mutating-props': require('./rules/no-mutating-props'),
  104. 'no-parsing-error': require('./rules/no-parsing-error'),
  105. 'no-potential-component-option-typo': require('./rules/no-potential-component-option-typo'),
  106. 'no-ref-as-operand': require('./rules/no-ref-as-operand'),
  107. 'no-reserved-component-names': require('./rules/no-reserved-component-names'),
  108. 'no-reserved-keys': require('./rules/no-reserved-keys'),
  109. 'no-reserved-props': require('./rules/no-reserved-props'),
  110. 'no-restricted-block': require('./rules/no-restricted-block'),
  111. 'no-restricted-call-after-await': require('./rules/no-restricted-call-after-await'),
  112. 'no-restricted-class': require('./rules/no-restricted-class'),
  113. 'no-restricted-component-options': require('./rules/no-restricted-component-options'),
  114. 'no-restricted-custom-event': require('./rules/no-restricted-custom-event'),
  115. 'no-restricted-html-elements': require('./rules/no-restricted-html-elements'),
  116. 'no-restricted-props': require('./rules/no-restricted-props'),
  117. 'no-restricted-static-attribute': require('./rules/no-restricted-static-attribute'),
  118. 'no-restricted-syntax': require('./rules/no-restricted-syntax'),
  119. 'no-restricted-v-bind': require('./rules/no-restricted-v-bind'),
  120. 'no-setup-props-destructure': require('./rules/no-setup-props-destructure'),
  121. 'no-shared-component-data': require('./rules/no-shared-component-data'),
  122. 'no-side-effects-in-computed-properties': require('./rules/no-side-effects-in-computed-properties'),
  123. 'no-spaces-around-equal-signs-in-attribute': require('./rules/no-spaces-around-equal-signs-in-attribute'),
  124. 'no-sparse-arrays': require('./rules/no-sparse-arrays'),
  125. 'no-static-inline-styles': require('./rules/no-static-inline-styles'),
  126. 'no-template-key': require('./rules/no-template-key'),
  127. 'no-template-shadow': require('./rules/no-template-shadow'),
  128. 'no-template-target-blank': require('./rules/no-template-target-blank'),
  129. 'no-textarea-mustache': require('./rules/no-textarea-mustache'),
  130. 'no-this-in-before-route-enter': require('./rules/no-this-in-before-route-enter'),
  131. 'no-undef-components': require('./rules/no-undef-components'),
  132. 'no-undef-properties': require('./rules/no-undef-properties'),
  133. 'no-unregistered-components': require('./rules/no-unregistered-components'),
  134. 'no-unsupported-features': require('./rules/no-unsupported-features'),
  135. 'no-unused-components': require('./rules/no-unused-components'),
  136. 'no-unused-properties': require('./rules/no-unused-properties'),
  137. 'no-unused-refs': require('./rules/no-unused-refs'),
  138. 'no-unused-vars': require('./rules/no-unused-vars'),
  139. 'no-use-computed-property-like-method': require('./rules/no-use-computed-property-like-method'),
  140. 'no-use-v-if-with-v-for': require('./rules/no-use-v-if-with-v-for'),
  141. 'no-useless-concat': require('./rules/no-useless-concat'),
  142. 'no-useless-mustaches': require('./rules/no-useless-mustaches'),
  143. 'no-useless-template-attributes': require('./rules/no-useless-template-attributes'),
  144. 'no-useless-v-bind': require('./rules/no-useless-v-bind'),
  145. 'no-v-for-template-key-on-child': require('./rules/no-v-for-template-key-on-child'),
  146. 'no-v-for-template-key': require('./rules/no-v-for-template-key'),
  147. 'no-v-html': require('./rules/no-v-html'),
  148. 'no-v-model-argument': require('./rules/no-v-model-argument'),
  149. 'no-v-text-v-html-on-component': require('./rules/no-v-text-v-html-on-component'),
  150. 'no-v-text': require('./rules/no-v-text'),
  151. 'no-watch-after-await': require('./rules/no-watch-after-await'),
  152. 'object-curly-newline': require('./rules/object-curly-newline'),
  153. 'object-curly-spacing': require('./rules/object-curly-spacing'),
  154. 'object-property-newline': require('./rules/object-property-newline'),
  155. 'object-shorthand': require('./rules/object-shorthand'),
  156. 'one-component-per-file': require('./rules/one-component-per-file'),
  157. 'operator-linebreak': require('./rules/operator-linebreak'),
  158. 'order-in-components': require('./rules/order-in-components'),
  159. 'padding-line-between-blocks': require('./rules/padding-line-between-blocks'),
  160. 'prefer-import-from-vue': require('./rules/prefer-import-from-vue'),
  161. 'prefer-prop-type-boolean-first': require('./rules/prefer-prop-type-boolean-first'),
  162. 'prefer-separate-static-class': require('./rules/prefer-separate-static-class'),
  163. 'prefer-template': require('./rules/prefer-template'),
  164. 'prefer-true-attribute-shorthand': require('./rules/prefer-true-attribute-shorthand'),
  165. 'prop-name-casing': require('./rules/prop-name-casing'),
  166. 'quote-props': require('./rules/quote-props'),
  167. 'require-component-is': require('./rules/require-component-is'),
  168. 'require-default-prop': require('./rules/require-default-prop'),
  169. 'require-direct-export': require('./rules/require-direct-export'),
  170. 'require-emit-validator': require('./rules/require-emit-validator'),
  171. 'require-explicit-emits': require('./rules/require-explicit-emits'),
  172. 'require-expose': require('./rules/require-expose'),
  173. 'require-name-property': require('./rules/require-name-property'),
  174. 'require-prop-type-constructor': require('./rules/require-prop-type-constructor'),
  175. 'require-prop-types': require('./rules/require-prop-types'),
  176. 'require-render-return': require('./rules/require-render-return'),
  177. 'require-slots-as-functions': require('./rules/require-slots-as-functions'),
  178. 'require-toggle-inside-transition': require('./rules/require-toggle-inside-transition'),
  179. 'require-v-for-key': require('./rules/require-v-for-key'),
  180. 'require-valid-default-prop': require('./rules/require-valid-default-prop'),
  181. 'return-in-computed-property': require('./rules/return-in-computed-property'),
  182. 'return-in-emits-validator': require('./rules/return-in-emits-validator'),
  183. 'script-indent': require('./rules/script-indent'),
  184. 'script-setup-uses-vars': require('./rules/script-setup-uses-vars'),
  185. 'singleline-html-element-content-newline': require('./rules/singleline-html-element-content-newline'),
  186. 'sort-keys': require('./rules/sort-keys'),
  187. 'space-in-parens': require('./rules/space-in-parens'),
  188. 'space-infix-ops': require('./rules/space-infix-ops'),
  189. 'space-unary-ops': require('./rules/space-unary-ops'),
  190. 'static-class-names-order': require('./rules/static-class-names-order'),
  191. 'template-curly-spacing': require('./rules/template-curly-spacing'),
  192. 'this-in-template': require('./rules/this-in-template'),
  193. 'use-v-on-exact': require('./rules/use-v-on-exact'),
  194. 'v-bind-style': require('./rules/v-bind-style'),
  195. 'v-for-delimiter-style': require('./rules/v-for-delimiter-style'),
  196. 'v-on-event-hyphenation': require('./rules/v-on-event-hyphenation'),
  197. 'v-on-function-call': require('./rules/v-on-function-call'),
  198. 'v-on-style': require('./rules/v-on-style'),
  199. 'v-slot-style': require('./rules/v-slot-style'),
  200. 'valid-define-emits': require('./rules/valid-define-emits'),
  201. 'valid-define-props': require('./rules/valid-define-props'),
  202. 'valid-next-tick': require('./rules/valid-next-tick'),
  203. 'valid-template-root': require('./rules/valid-template-root'),
  204. 'valid-v-bind-sync': require('./rules/valid-v-bind-sync'),
  205. 'valid-v-bind': require('./rules/valid-v-bind'),
  206. 'valid-v-cloak': require('./rules/valid-v-cloak'),
  207. 'valid-v-else-if': require('./rules/valid-v-else-if'),
  208. 'valid-v-else': require('./rules/valid-v-else'),
  209. 'valid-v-for': require('./rules/valid-v-for'),
  210. 'valid-v-html': require('./rules/valid-v-html'),
  211. 'valid-v-if': require('./rules/valid-v-if'),
  212. 'valid-v-is': require('./rules/valid-v-is'),
  213. 'valid-v-memo': require('./rules/valid-v-memo'),
  214. 'valid-v-model': require('./rules/valid-v-model'),
  215. 'valid-v-on': require('./rules/valid-v-on'),
  216. 'valid-v-once': require('./rules/valid-v-once'),
  217. 'valid-v-pre': require('./rules/valid-v-pre'),
  218. 'valid-v-show': require('./rules/valid-v-show'),
  219. 'valid-v-slot': require('./rules/valid-v-slot'),
  220. 'valid-v-text': require('./rules/valid-v-text')
  221. },
  222. configs: {
  223. base: require('./configs/base'),
  224. essential: require('./configs/essential'),
  225. 'no-layout-rules': require('./configs/no-layout-rules'),
  226. recommended: require('./configs/recommended'),
  227. 'strongly-recommended': require('./configs/strongly-recommended'),
  228. 'vue3-essential': require('./configs/vue3-essential'),
  229. 'vue3-recommended': require('./configs/vue3-recommended'),
  230. 'vue3-strongly-recommended': require('./configs/vue3-strongly-recommended')
  231. },
  232. processors: {
  233. '.vue': require('./processor')
  234. },
  235. environments: {
  236. 'setup-compiler-macros': {
  237. globals: {
  238. defineProps: 'readonly',
  239. defineEmits: 'readonly',
  240. defineExpose: 'readonly',
  241. withDefaults: 'readonly'
  242. }
  243. }
  244. }
  245. }