@alexlit/lint-kit 214.4.0 → 215.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (155) hide show
  1. package/README.md +27 -22
  2. package/eslint.config.js +23 -56
  3. package/lint-staged.config.js +2 -2
  4. package/linthtml.config.js +2 -2
  5. package/package.json +3 -2
  6. package/packages/config-eslint/README.md +156 -106
  7. package/packages/config-eslint/base.js +5 -3
  8. package/packages/config-eslint/index.d.ts +112 -0
  9. package/packages/config-eslint/index.js +79 -23
  10. package/packages/config-eslint/package.json +19 -16
  11. package/packages/config-eslint/plugins/de-morgan.js +9 -4
  12. package/packages/config-eslint/plugins/import-x.js +50 -37
  13. package/packages/config-eslint/plugins/javascript.js +96 -85
  14. package/packages/config-eslint/plugins/jsdoc.js +24 -17
  15. package/packages/config-eslint/plugins/json.js +31 -24
  16. package/packages/config-eslint/plugins/perfectionist.js +108 -95
  17. package/packages/config-eslint/plugins/pinia.js +17 -10
  18. package/packages/config-eslint/plugins/prettier.js +24 -10
  19. package/packages/config-eslint/plugins/regexp.js +16 -9
  20. package/packages/config-eslint/plugins/sonar.js +19 -12
  21. package/packages/config-eslint/plugins/stylistic.js +107 -100
  22. package/packages/config-eslint/plugins/tailwindcss.js +17 -6
  23. package/packages/config-eslint/plugins/tanstack-query.js +16 -9
  24. package/packages/config-eslint/plugins/typescript-type-checked.js +38 -33
  25. package/packages/config-eslint/plugins/typescript.js +23 -14
  26. package/packages/config-eslint/plugins/unicorn.js +73 -64
  27. package/packages/config-eslint/plugins/unocss.js +12 -5
  28. package/packages/config-eslint/plugins/vitest.js +20 -13
  29. package/packages/config-eslint/plugins/vue-accessibility.js +22 -13
  30. package/packages/config-eslint/plugins/vue-i18n.js +38 -31
  31. package/packages/config-eslint/plugins/vue.js +255 -242
  32. package/packages/config-eslint/plugins/zod.js +17 -10
  33. package/packages/config-eslint/rules/typescript.js +1 -1
  34. package/packages/config-hooks/README.md +119 -37
  35. package/packages/config-hooks/index.d.ts +19 -0
  36. package/packages/config-hooks/lint-staged.js +8 -6
  37. package/packages/config-hooks/package.json +3 -1
  38. package/packages/config-htmllint/README.md +50 -22
  39. package/packages/config-htmllint/index.d.ts +13 -0
  40. package/packages/config-htmllint/index.js +15 -7
  41. package/packages/config-htmllint/package.json +4 -2
  42. package/packages/config-markdownlint/README.md +40 -5
  43. package/packages/config-markdownlint/index.json +0 -2
  44. package/packages/config-markdownlint/package.json +1 -1
  45. package/packages/config-npmlint/README.md +48 -5
  46. package/packages/config-npmlint/package.json +3 -3
  47. package/packages/config-prettier/README.md +106 -23
  48. package/packages/config-prettier/index.d.ts +92 -0
  49. package/packages/config-prettier/index.js +60 -74
  50. package/packages/config-prettier/package.json +4 -3
  51. package/packages/config-prettier/plugins/jsdoc.js +12 -3
  52. package/packages/config-prettier/plugins/mdc.js +12 -3
  53. package/packages/config-prettier/plugins/packagejson.js +12 -3
  54. package/packages/config-prettier/plugins/php.js +12 -3
  55. package/packages/config-prettier/plugins/pug.js +12 -3
  56. package/packages/config-prettier/plugins/ruby.js +10 -10
  57. package/packages/config-prettier/plugins/sh.js +12 -3
  58. package/packages/config-prettier/plugins/solidity.js +12 -3
  59. package/packages/config-prettier/plugins/sort-json.js +12 -3
  60. package/packages/config-prettier/plugins/sql.js +12 -3
  61. package/packages/config-prettier/plugins/tailwindcss.js +12 -3
  62. package/packages/config-prettier/plugins/xml.js +12 -3
  63. package/packages/config-stylelint/README.md +131 -44
  64. package/packages/config-stylelint/index.d.ts +52 -0
  65. package/packages/config-stylelint/index.js +169 -165
  66. package/packages/config-stylelint/package.json +3 -1
  67. package/packages/config-stylelint/plugins/a11y.js +24 -11
  68. package/packages/config-stylelint/plugins/bem.js +10 -3
  69. package/packages/config-stylelint/plugins/color-format.js +14 -4
  70. package/packages/config-stylelint/plugins/declaration-block-no-ignored-properties.js +15 -4
  71. package/packages/config-stylelint/plugins/gamut.js +12 -4
  72. package/packages/config-stylelint/plugins/high-performance-animation.js +12 -3
  73. package/packages/config-stylelint/plugins/logical-css.js +10 -3
  74. package/packages/config-stylelint/plugins/media-use-custom-media.js +12 -4
  75. package/packages/config-stylelint/plugins/no-indistinguishable-colors.js +15 -4
  76. package/packages/config-stylelint/plugins/no-nested-media.js +12 -4
  77. package/packages/config-stylelint/plugins/no-unresolved-module.js +12 -3
  78. package/packages/config-stylelint/plugins/no-unsupported-browser-features.js +12 -3
  79. package/packages/config-stylelint/plugins/order.js +13 -3
  80. package/packages/config-stylelint/plugins/prettier.js +12 -4
  81. package/packages/config-stylelint/plugins/scss.js +13 -3
  82. package/packages/config-stylelint/plugins/selector-no-empty.js +12 -4
  83. package/packages/config-stylelint/plugins/use-nesting.js +15 -4
  84. package/packages/config-stylelint/plugins/vue.js +11 -2
  85. package/prettier.config.js +15 -7
  86. package/scripts/semver.sh +3 -3
  87. package/stylelint.config.js +25 -11
  88. package/packages/config-eslint/_legacy/LICENSE +0 -20
  89. package/packages/config-eslint/_legacy/README.md +0 -48
  90. package/packages/config-eslint/_legacy/constants/allow-boolean-property-list.js +0 -38
  91. package/packages/config-eslint/_legacy/constants/boolean-prefixes.js +0 -11
  92. package/packages/config-eslint/_legacy/constants/english-verbs.js +0 -3368
  93. package/packages/config-eslint/_legacy/dictionaries/index.js +0 -467
  94. package/packages/config-eslint/_legacy/dictionaries/programming/bash.js +0 -25
  95. package/packages/config-eslint/_legacy/dictionaries/programming/django.js +0 -2345
  96. package/packages/config-eslint/_legacy/dictionaries/programming/elixir.js +0 -64
  97. package/packages/config-eslint/_legacy/dictionaries/programming/go.js +0 -7748
  98. package/packages/config-eslint/_legacy/dictionaries/programming/java.js +0 -33527
  99. package/packages/config-eslint/_legacy/dictionaries/programming/latex.js +0 -675
  100. package/packages/config-eslint/_legacy/dictionaries/programming/lua.js +0 -394
  101. package/packages/config-eslint/_legacy/dictionaries/programming/php.js +0 -9788
  102. package/packages/config-eslint/_legacy/dictionaries/programming/python.js +0 -367
  103. package/packages/config-eslint/_legacy/dictionaries/programming/ruby.js +0 -357
  104. package/packages/config-eslint/_legacy/dictionaries/programming/rust.js +0 -115
  105. package/packages/config-eslint/_legacy/dictionaries/programming/scala.js +0 -2755
  106. package/packages/config-eslint/_legacy/dictionaries/specialized/html-symbol-entities.js +0 -1118
  107. package/packages/config-eslint/_legacy/dictionaries/specialized/lorem-ipsum.js +0 -359
  108. package/packages/config-eslint/_legacy/index.js +0 -12
  109. package/packages/config-eslint/_legacy/legacy.js +0 -3
  110. package/packages/config-eslint/_legacy/package.json +0 -97
  111. package/packages/config-eslint/_legacy/plugins/array-func.js +0 -20
  112. package/packages/config-eslint/_legacy/plugins/compat.js +0 -7
  113. package/packages/config-eslint/_legacy/plugins/decorator-position.js +0 -15
  114. package/packages/config-eslint/_legacy/plugins/eslint-comments.js +0 -9
  115. package/packages/config-eslint/_legacy/plugins/etc.js +0 -13
  116. package/packages/config-eslint/_legacy/plugins/ext.js +0 -12
  117. package/packages/config-eslint/_legacy/plugins/filenames.js +0 -38
  118. package/packages/config-eslint/_legacy/plugins/import.js +0 -133
  119. package/packages/config-eslint/_legacy/plugins/jsdoc.js +0 -32
  120. package/packages/config-eslint/_legacy/plugins/jsx-a11y.js +0 -5
  121. package/packages/config-eslint/_legacy/plugins/lit-a11y.js +0 -5
  122. package/packages/config-eslint/_legacy/plugins/lit.js +0 -9
  123. package/packages/config-eslint/_legacy/plugins/more.js +0 -17
  124. package/packages/config-eslint/_legacy/plugins/no-await-in-promise.js +0 -5
  125. package/packages/config-eslint/_legacy/plugins/no-constructor-bind.js +0 -8
  126. package/packages/config-eslint/_legacy/plugins/no-explicit-type-exports.js +0 -7
  127. package/packages/config-eslint/_legacy/plugins/no-loops.js +0 -7
  128. package/packages/config-eslint/_legacy/plugins/no-secrets.js +0 -12
  129. package/packages/config-eslint/_legacy/plugins/no-use-extend-native.js +0 -5
  130. package/packages/config-eslint/_legacy/plugins/node.js +0 -5
  131. package/packages/config-eslint/_legacy/plugins/prettier.js +0 -24
  132. package/packages/config-eslint/_legacy/plugins/promise.js +0 -10
  133. package/packages/config-eslint/_legacy/plugins/regexp.js +0 -7
  134. package/packages/config-eslint/_legacy/plugins/security.js +0 -10
  135. package/packages/config-eslint/_legacy/plugins/simple-import-sort.js +0 -7
  136. package/packages/config-eslint/_legacy/plugins/sonar.js +0 -5
  137. package/packages/config-eslint/_legacy/plugins/sort-class-members.js +0 -298
  138. package/packages/config-eslint/_legacy/plugins/sort-destructure-keys.js +0 -10
  139. package/packages/config-eslint/_legacy/plugins/sort-keys-fix.js +0 -7
  140. package/packages/config-eslint/_legacy/plugins/spellcheck.js +0 -9
  141. package/packages/config-eslint/_legacy/plugins/sql.js +0 -26
  142. package/packages/config-eslint/_legacy/plugins/tanstack-query.js +0 -4
  143. package/packages/config-eslint/_legacy/plugins/testing-library.js +0 -9
  144. package/packages/config-eslint/_legacy/plugins/typescript-sort-keys.js +0 -5
  145. package/packages/config-eslint/_legacy/plugins/typescript.js +0 -157
  146. package/packages/config-eslint/_legacy/plugins/unicorn.js +0 -70
  147. package/packages/config-eslint/_legacy/plugins/unused-imports.js +0 -17
  148. package/packages/config-eslint/_legacy/plugins/vitest.js +0 -16
  149. package/packages/config-eslint/_legacy/plugins/vue-i18n.js +0 -34
  150. package/packages/config-eslint/_legacy/plugins/vue.js +0 -291
  151. package/packages/config-eslint/_legacy/plugins/vuejs-accessibility.js +0 -20
  152. package/packages/config-eslint/_legacy/plugins/wc.js +0 -5
  153. package/packages/config-eslint/_legacy/plugins/write-good-comments.js +0 -7
  154. package/packages/config-eslint/_legacy/utils/create-config.js +0 -377
  155. package/packages/config-eslint/_legacy/utils/extend-spell-checker.js +0 -23
@@ -1,26 +0,0 @@
1
- module.exports = {
2
- plugins: ['sql'],
3
-
4
- rules: {
5
- 'sql/format': [
6
- 'warn',
7
-
8
- {
9
- ignoreExpressions: false,
10
- ignoreInline: false,
11
- ignoreStartWithNewLine: true,
12
- ignoreTagless: false,
13
- },
14
-
15
- { spaces: 2 },
16
- ],
17
-
18
- 'sql/no-unsafe-query': [
19
- 'warn',
20
-
21
- {
22
- allowLiteral: false,
23
- },
24
- ],
25
- },
26
- };
@@ -1,4 +0,0 @@
1
- module.exports = {
2
- extends: ['plugin:@tanstack/eslint-plugin-query/recommended'],
3
- plugins: ['@tanstack/query'],
4
- };
@@ -1,9 +0,0 @@
1
- module.exports = {
2
- overrides: [
3
- {
4
- extends: ['plugin:testing-library/vue'],
5
- files: ['*.test.ts', '*.test.js', '*.spec.ts', '*.spec.js'],
6
- plugins: ['testing-library'],
7
- },
8
- ],
9
- };
@@ -1,5 +0,0 @@
1
- module.exports = {
2
- extends: ['plugin:typescript-sort-keys/recommended'],
3
-
4
- plugins: ['typescript-sort-keys'],
5
- };
@@ -1,157 +0,0 @@
1
- /* eslint-disable unicorn/no-null */
2
-
3
- // const ALLOW_BOOLEAN_PROPERTY_LIST = require('../constants/allow-boolean-property-list');
4
- // const BOOLEAN_PREFIXES = require('../constants/boolean-prefixes');
5
- // const ENGLISH_VERBS = require('../constants/english-verbs');
6
-
7
- module.exports = {
8
- extends: ['plugin:@typescript-eslint/recommended'],
9
-
10
- overrides: [
11
- {
12
- files: ['*.d.ts', '.*'],
13
-
14
- rules: {
15
- '@typescript-eslint/naming-convention': 'off',
16
- },
17
- },
18
- {
19
- files: ['**/store/**/*', '**/vuex/**/*', '**/pinia/**/*'],
20
-
21
- rules: {
22
- '@typescript-eslint/no-shadow': 'off',
23
- },
24
- },
25
- ],
26
-
27
- plugins: ['@typescript-eslint'],
28
-
29
- rules: {
30
- '@typescript-eslint/array-type': ['error', { default: 'array' }],
31
-
32
- '@typescript-eslint/consistent-type-assertions': [
33
- 'error',
34
- {
35
- assertionStyle: 'as',
36
- objectLiteralTypeAssertions: 'allow-as-parameter',
37
- },
38
- ],
39
-
40
- '@typescript-eslint/consistent-type-definitions': ['error', 'interface'],
41
-
42
- '@typescript-eslint/consistent-type-imports': [
43
- 'error',
44
- { prefer: 'type-imports' },
45
- ],
46
-
47
- '@typescript-eslint/explicit-module-boundary-types': 'off',
48
-
49
- '@typescript-eslint/indent': 'off',
50
-
51
- '@typescript-eslint/member-ordering': 'off', // delegate to sort-class-members plugin
52
-
53
- '@typescript-eslint/method-signature-style': ['error', 'method'],
54
-
55
- '@typescript-eslint/naming-convention': 'off', // slow
56
-
57
- // '@typescript-eslint/naming-convention': [
58
- // 'error',
59
- // {
60
- // format: ['camelCase', 'PascalCase', 'UPPER_CASE'],
61
- // selector: 'default',
62
- // },
63
- // {
64
- // format: ['camelCase'],
65
- // selector: 'variable',
66
- // },
67
- // {
68
- // format: ['camelCase'],
69
- // leadingUnderscore: 'allow',
70
- // selector: 'parameter',
71
- // },
72
- // {
73
- // format: ['camelCase'],
74
- // leadingUnderscore: 'require',
75
- // modifiers: ['private'],
76
- // selector: 'memberLike',
77
- // },
78
- // {
79
- // format: ['PascalCase'],
80
- // selector: ['typeLike'],
81
- // },
82
- // {
83
- // format: ['UPPER_CASE'],
84
- // selector: ['enumMember'],
85
- // },
86
- // {
87
- // custom: {
88
- // match: false,
89
- // regex: '^I[A-Z]',
90
- // },
91
-
92
- // format: ['PascalCase'],
93
- // selector: 'interface',
94
- // },
95
- // {
96
- // format: null,
97
- // leadingUnderscore: 'allow',
98
- // selector: 'objectLiteralProperty',
99
- // },
100
- // {
101
- // format: null,
102
- // selector: 'objectLiteralMethod',
103
- // },
104
- // {
105
- // format: null,
106
- // modifiers: ['destructured'],
107
- // selector: 'parameter',
108
- // },
109
- // {
110
- // format: ['camelCase', 'UPPER_CASE', 'PascalCase'],
111
- // modifiers: ['const'],
112
- // selector: 'variable',
113
- // },
114
- // {
115
- // filter: {
116
- // match: false,
117
- // regex: `(${ALLOW_BOOLEAN_PROPERTY_LIST.join('|')})`,
118
- // },
119
-
120
- // format: ['PascalCase'],
121
-
122
- // leadingUnderscore: 'allow',
123
-
124
- // prefix: BOOLEAN_PREFIXES,
125
-
126
- // selector: ['accessor', 'parameter', 'variable'],
127
-
128
- // types: ['boolean'],
129
- // },
130
- // {
131
- // format: ['PascalCase'],
132
-
133
- // leadingUnderscore: 'allow',
134
-
135
- // prefix: [...ENGLISH_VERBS, 'on'],
136
-
137
- // selector: ['classMethod', 'function'],
138
- // },
139
- // ],
140
-
141
- '@typescript-eslint/no-explicit-any': 'off',
142
-
143
- '@typescript-eslint/no-inferrable-types': [
144
- 'error',
145
- {
146
- ignoreParameters: true,
147
- },
148
- ],
149
-
150
- '@typescript-eslint/no-shadow': ['error'],
151
- '@typescript-eslint/no-unused-vars': 'off', // delegate to eslint-plugin-unused-imports
152
- '@typescript-eslint/no-use-before-define': ['warn'],
153
- '@typescript-eslint/no-var-requires': 'off',
154
- '@typescript-eslint/sort-type-constituents': ['error'],
155
- '@typescript-eslint/unified-signatures': ['error'],
156
- },
157
- };
@@ -1,70 +0,0 @@
1
- /* eslint-disable no-undef */
2
- module.exports = {
3
- extends: ['plugin:unicorn/recommended'],
4
-
5
- overrides: [
6
- {
7
- files: ['.*'],
8
-
9
- rules: {
10
- 'unicorn/no-null': 'off',
11
- },
12
- },
13
- {
14
- files: ['*.d.ts'],
15
-
16
- rules: {
17
- 'unicorn/prefer-export-from': 'off',
18
- },
19
- },
20
- ],
21
-
22
- plugins: ['unicorn'],
23
-
24
- rules: {
25
- 'unicorn/better-regex': 'off',
26
-
27
- 'unicorn/consistent-destructuring': 'warn',
28
-
29
- 'unicorn/consistent-function-scoping': [
30
- 'error',
31
- { checkArrowFunctions: false },
32
- ],
33
-
34
- 'unicorn/no-array-for-each': 'off',
35
-
36
- 'unicorn/no-array-reduce': ['error', { allowSimpleOperations: true }],
37
-
38
- 'unicorn/no-empty-file': 'off',
39
-
40
- 'unicorn/prefer-module': 'off',
41
-
42
- 'unicorn/prefer-node-protocol': 'off',
43
-
44
- 'unicorn/prevent-abbreviations': [
45
- 'warn',
46
- {
47
- allowList: {
48
- ImportMetaEnv: true,
49
- ProcessEnv: true,
50
- Props: true,
51
- args: true,
52
- attrs: true,
53
- env: true,
54
- i18n: true,
55
- params: true,
56
- props: true,
57
- ref: true,
58
- },
59
-
60
- checkFilenames: false, // delegate to eslint-plugin-filenames
61
-
62
- replacements: {
63
- index18n: {
64
- i18n: true,
65
- },
66
- },
67
- },
68
- ],
69
- },
70
- };
@@ -1,17 +0,0 @@
1
- module.exports = {
2
- plugins: ['unused-imports'],
3
-
4
- rules: {
5
- 'unused-imports/no-unused-imports': 'error',
6
-
7
- 'unused-imports/no-unused-vars': [
8
- 'error',
9
- {
10
- args: 'after-used',
11
- argsIgnorePattern: '^_',
12
- vars: 'all',
13
- varsIgnorePattern: '^_',
14
- },
15
- ],
16
- },
17
- };
@@ -1,16 +0,0 @@
1
- module.exports = {
2
- overrides: [
3
- {
4
- extends: ['plugin:vitest/legacy-all'],
5
- files: ['*.{test,spec}.{js,ts}'],
6
- plugins: ['vitest'],
7
-
8
- rules: {
9
- 'vitest/no-conditional-in-test': 'off',
10
- 'vitest/no-conditional-tests': 'off',
11
- 'vitest/no-hooks': 'off',
12
- 'vitest/require-to-throw-message': 'off',
13
- },
14
- },
15
- ],
16
- };
@@ -1,34 +0,0 @@
1
- module.exports = {
2
- extends: ['plugin:@intlify/vue-i18n/recommended'],
3
-
4
- plugins: ['@intlify/vue-i18n'],
5
-
6
- rules: {
7
- '@intlify/vue-i18n/key-format-style': [
8
- 'error',
9
- 'snake_case',
10
- {
11
- allowArray: false,
12
- },
13
- ],
14
-
15
- '@intlify/vue-i18n/no-duplicate-keys-in-locale': [
16
- 'error',
17
- {
18
- ignoreI18nBlock: false,
19
- },
20
- ],
21
-
22
- '@intlify/vue-i18n/no-dynamic-keys': 'warn',
23
- '@intlify/vue-i18n/no-raw-text': 'off',
24
- '@intlify/vue-i18n/no-unused-keys': 'warn',
25
- '@intlify/vue-i18n/prefer-sfc-lang-attr': 'error',
26
- },
27
-
28
- settings: {
29
- 'vue-i18n': {
30
- localeDir: './src/locales/*.{json,json5,yaml,yml}',
31
- messageSyntaxVersion: '^9.0.0',
32
- },
33
- },
34
- };
@@ -1,291 +0,0 @@
1
- /* eslint-disable spellcheck/spell-checker */
2
- module.exports = {
3
- extends: ['plugin:vue/vue3-recommended'],
4
-
5
- overrides: [
6
- {
7
- files: ['**/pages/**/*', '**/layouts/**/*'],
8
-
9
- rules: {
10
- 'vue/multi-word-component-names': 'off',
11
- },
12
- },
13
- ],
14
-
15
- plugins: ['vue'],
16
-
17
- rules: {
18
- 'vue/attributes-order': [
19
- 'error',
20
- {
21
- alphabetical: true,
22
- },
23
- ],
24
-
25
- 'vue/block-lang': [
26
- 'error',
27
- {
28
- script: { lang: 'ts' },
29
- style: { lang: 'scss' },
30
- template: {},
31
- },
32
- ],
33
-
34
- 'vue/component-api-style': ['error', ['script-setup']],
35
-
36
- 'vue/component-definition-name-casing': ['error', 'kebab-case'],
37
-
38
- 'vue/component-name-in-template-casing': [
39
- 'error',
40
- 'PascalCase',
41
- {
42
- registeredComponentsOnly: false,
43
- },
44
- ],
45
-
46
- 'vue/component-options-name-casing': ['error', 'PascalCase'],
47
-
48
- 'vue/component-tags-order': [
49
- 'error',
50
- {
51
- order: ['script', 'template', 'style'],
52
- },
53
- ],
54
-
55
- 'vue/define-emits-declaration': ['error'],
56
-
57
- 'vue/define-macros-order': [
58
- 'error',
59
- {
60
- defineExposeLast: true,
61
-
62
- order: [
63
- 'defineOptions',
64
- 'defineModel',
65
- 'defineProps',
66
- 'defineEmits',
67
- 'defineSlots',
68
- ],
69
- },
70
- ],
71
-
72
- 'vue/define-props-declaration': ['error'],
73
-
74
- 'vue/dot-notation': ['error'],
75
-
76
- 'vue/enforce-style-attribute': ['error', { allow: ['module'] }],
77
-
78
- 'vue/eqeqeq': ['error'],
79
-
80
- 'vue/html-button-has-type': ['error'],
81
-
82
- 'vue/html-comment-content-newline': ['warn'],
83
-
84
- 'vue/html-comment-content-spacing': ['warn'],
85
-
86
- 'vue/html-comment-indent': ['warn'],
87
-
88
- 'vue/html-end-tags': ['error'],
89
-
90
- // 'vue/html-self-closing': [], // delegate to plugins/prettier
91
- 'vue/match-component-file-name': ['error'],
92
-
93
- 'vue/match-component-import-name': ['error'],
94
-
95
- 'vue/max-attributes-per-line': [
96
- 'error',
97
- {
98
- singleline: 3,
99
- },
100
- ],
101
-
102
- 'vue/max-lines-per-block': [
103
- 'warn',
104
- {
105
- script: 500,
106
- skipBlankLines: true,
107
- style: 500,
108
- template: 500,
109
- },
110
- ],
111
-
112
- 'vue/new-line-between-multi-line-property': ['error'],
113
-
114
- 'vue/next-tick-style': ['error', 'promise'],
115
-
116
- 'vue/no-child-content': ['error'],
117
-
118
- 'vue/no-console': ['error'],
119
-
120
- 'vue/no-custom-modifiers-on-v-model': 'off',
121
-
122
- 'vue/no-deprecated-model-definition': ['error'],
123
-
124
- 'vue/no-deprecated-scope-attribute': ['error'],
125
-
126
- 'vue/no-deprecated-slot-attribute': ['error'],
127
-
128
- 'vue/no-deprecated-slot-scope-attribute': ['error'],
129
-
130
- 'vue/no-duplicate-attr-inheritance': ['error'],
131
-
132
- 'vue/no-empty-component-block': ['error'],
133
-
134
- 'vue/no-invalid-model-keys': ['error'],
135
-
136
- 'vue/no-irregular-whitespace': ['error'],
137
-
138
- 'vue/no-loss-of-precision': ['error'],
139
-
140
- 'vue/no-multiple-objects-in-class': ['error'],
141
-
142
- 'vue/no-multiple-template-root': 'off',
143
-
144
- 'vue/no-parsing-error': ['error'],
145
-
146
- 'vue/no-potential-component-option-typo': ['error'],
147
-
148
- 'vue/no-ref-object-reactivity-loss': ['error'],
149
-
150
- 'vue/no-required-prop-with-default': [
151
- 'error',
152
- {
153
- autofix: true,
154
- },
155
- ],
156
-
157
- 'vue/no-reserved-component-names': [
158
- 'error',
159
- {
160
- disallowVue3BuiltInComponents: true,
161
- disallowVueBuiltInComponents: true,
162
- },
163
- ],
164
-
165
- 'vue/no-restricted-component-names': ['error'],
166
-
167
- 'vue/no-restricted-component-options': ['error'],
168
-
169
- 'vue/no-restricted-props': ['error'],
170
-
171
- 'vue/no-root-v-if': ['error'],
172
-
173
- 'vue/no-setup-props-reactivity-loss': ['error'],
174
-
175
- 'vue/no-static-inline-styles': [
176
- 'error',
177
- {
178
- allowBinding: true,
179
- },
180
- ],
181
-
182
- 'vue/no-this-in-before-route-enter': ['error'],
183
-
184
- 'vue/no-unsupported-features': ['error'],
185
-
186
- 'vue/no-unused-components': ['error'],
187
-
188
- 'vue/no-unused-emit-declarations': ['error'],
189
-
190
- 'vue/no-unused-refs': 'off',
191
-
192
- 'vue/no-use-computed-property-like-method': ['error'],
193
-
194
- 'vue/no-use-v-else-with-v-for': ['warn'],
195
-
196
- 'vue/no-useless-mustaches': ['error'],
197
-
198
- 'vue/no-useless-template-attributes': ['error'],
199
-
200
- 'vue/no-useless-v-bind': ['error'],
201
-
202
- 'vue/no-v-for-template-key': 'off',
203
-
204
- 'vue/no-v-html': ['error'],
205
-
206
- 'vue/no-v-model-argument': 'off',
207
-
208
- 'vue/no-v-text': ['error'],
209
-
210
- 'vue/no-v-text-v-html-on-component': ['error'],
211
-
212
- 'vue/object-shorthand': ['error'],
213
-
214
- 'vue/padding-line-between-blocks': ['error'],
215
-
216
- 'vue/padding-line-between-tags': [
217
- 'error',
218
- [
219
- {
220
- blankLine: 'always',
221
- next: '*',
222
- prev: '*',
223
- },
224
- ],
225
- ],
226
-
227
- 'vue/padding-lines-in-component-definition': [
228
- 'error',
229
- { groupSingleLineProperties: true },
230
- ],
231
-
232
- 'vue/prefer-define-options': ['error'],
233
-
234
- 'vue/prefer-prop-type-boolean-first': ['error'],
235
-
236
- 'vue/prefer-separate-static-class': ['error'],
237
-
238
- 'vue/prefer-true-attribute-shorthand': ['error'],
239
-
240
- 'vue/quote-props': ['error', 'as-needed'],
241
-
242
- 'vue/require-direct-export': 'off',
243
-
244
- 'vue/require-explicit-slots': ['warn'],
245
-
246
- 'vue/require-macro-variable-name': [
247
- 'error',
248
- {
249
- defineEmits: '$emit',
250
- defineProps: '$props',
251
- defineSlots: '$slots',
252
- useAttrs: '$attrs',
253
- useSlots: '$slots',
254
- },
255
- ],
256
-
257
- 'vue/require-typed-object-prop': ['error'],
258
-
259
- 'vue/require-typed-ref': ['error'],
260
-
261
- 'vue/sort-keys': 'off', // delegate to sort-keys-fix,
262
-
263
- 'vue/static-class-names-order': ['warn'],
264
-
265
- 'vue/this-in-template': ['error', 'never'],
266
-
267
- 'vue/v-bind-style': [
268
- 'error',
269
- 'shorthand',
270
- {
271
- sameNameShorthand: 'always',
272
- },
273
- ],
274
-
275
- 'vue/v-for-delimiter-style': ['error'],
276
-
277
- 'vue/v-if-else-key': ['error'],
278
-
279
- 'vue/v-on-event-hyphenation': ['error'],
280
-
281
- 'vue/v-on-handler-style': ['error', 'inline-function'],
282
-
283
- 'vue/valid-define-options': ['error'],
284
-
285
- 'vue/valid-next-tick': ['error'],
286
-
287
- 'vue/valid-v-bind-sync': ['error'],
288
-
289
- 'vue/valid-v-slot': ['error'],
290
- },
291
- };
@@ -1,20 +0,0 @@
1
- module.exports = {
2
- extends: ['plugin:vuejs-accessibility/recommended'],
3
-
4
- plugins: ['vuejs-accessibility'],
5
-
6
- rules: {
7
- 'vuejs-accessibility/label-has-for': [
8
- 'warn',
9
- {
10
- allowChildren: true,
11
-
12
- required: {
13
- some: ['nesting', 'id'],
14
- },
15
- },
16
- ],
17
-
18
- 'vuejs-accessibility/no-autofocus': ['warn', { ignoreNonDOM: true }],
19
- },
20
- };
@@ -1,5 +0,0 @@
1
- module.exports = {
2
- extends: ['plugin:wc/recommended'],
3
-
4
- plugins: ['wc'],
5
- };
@@ -1,7 +0,0 @@
1
- module.exports = {
2
- plugins: ['write-good-comments'],
3
-
4
- rules: {
5
- 'write-good-comments/write-good-comments': 'warn',
6
- },
7
- };