@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,133 +0,0 @@
1
- /* eslint-disable no-undef */
2
- module.exports = {
3
- extends: [
4
- 'plugin:import/errors',
5
- 'plugin:import/warnings',
6
- 'plugin:import/typescript',
7
- ],
8
-
9
- overrides: [
10
- {
11
- files: [
12
- '**/.*/**',
13
- '**/types/**',
14
- '*.d.ts',
15
- '*.stories.js',
16
- '*.stories.ts',
17
- '.*.js',
18
- '.*.ts',
19
- ],
20
-
21
- rules: {
22
- 'import/no-extraneous-dependencies': 'off',
23
- },
24
- },
25
- ],
26
-
27
- plugins: ['import'],
28
-
29
- rules: {
30
- 'import/extensions': [
31
- 'error',
32
- 'ignorePackages',
33
- {
34
- js: 'never',
35
- jsx: 'never',
36
- ts: 'never',
37
- tsx: 'never',
38
- },
39
- ],
40
-
41
- 'import/first': 'error',
42
- 'import/no-mutable-exports': 'error',
43
-
44
- 'import/order': [
45
- 'error',
46
- {
47
- alphabetize: { caseInsensitive: true, order: 'asc' },
48
-
49
- groups: [
50
- 'builtin',
51
- 'external',
52
- 'internal',
53
- 'parent',
54
- 'sibling',
55
- 'index',
56
- ],
57
-
58
- 'newlines-between': 'always',
59
-
60
- pathGroups: [
61
- // Nuxt
62
- { group: 'internal', pattern: '#**', position: 'after' },
63
- // Structure
64
- { group: 'internal', pattern: '{@,~}/api/**', position: 'after' },
65
- { group: 'internal', pattern: '{@,~}/core/**', position: 'after' },
66
- {
67
- group: 'internal',
68
- pattern: '{@,~}/features/**',
69
- position: 'after',
70
- },
71
- { group: 'internal', pattern: '{@,~}/modules/**', position: 'after' },
72
- // FSD
73
- {
74
- group: 'internal',
75
- pattern: '{@,~}/processes/**',
76
- position: 'after',
77
- },
78
- { group: 'internal', pattern: '{@,~}/pages/**', position: 'after' },
79
- { group: 'internal', pattern: '{@,~}/widgets/**', position: 'after' },
80
- {
81
- group: 'internal',
82
- pattern: '{@,~}/features/**',
83
- position: 'after',
84
- },
85
- {
86
- group: 'internal',
87
- pattern: '{@,~}/entities/**',
88
- position: 'after',
89
- },
90
- { group: 'internal', pattern: '{@,~}/shared/**', position: 'after' },
91
- ],
92
-
93
- pathGroupsExcludedImportTypes: ['builtin'],
94
- },
95
- ],
96
-
97
- 'import/prefer-default-export': 'off',
98
- },
99
-
100
- settings: {
101
- 'import/extensions': ['.js', '.mjs', '.jsx', '.ts', '.tsx', '.d.ts'],
102
- 'import/external-module-folders': ['node_modules', 'node_modules/@types'],
103
-
104
- 'import/parsers': {
105
- '@typescript-eslint/parser': ['.ts', '.tsx', '.d.ts'],
106
- },
107
-
108
- 'import/resolver': {
109
- alias: {
110
- extensions: ['.js', '.jsx', '.ts', '.tsx', '.d.ts'],
111
-
112
- map: [
113
- ['@', './src'],
114
- ['~', './src'],
115
- ['~~', './'],
116
- ],
117
- },
118
-
119
- node: {
120
- extensions: [
121
- '.cjs',
122
- '.cts',
123
- '.d.ts',
124
- '.js',
125
- '.json',
126
- '.mjs',
127
- '.mts',
128
- '.ts',
129
- ],
130
- },
131
- },
132
- },
133
- };
@@ -1,32 +0,0 @@
1
- module.exports = {
2
- extends: ['plugin:jsdoc/recommended'],
3
-
4
- plugins: ['jsdoc'],
5
-
6
- rules: {
7
- 'jsdoc/no-undefined-types': 'off',
8
-
9
- 'jsdoc/require-jsdoc': [
10
- 'warn',
11
- {
12
- enableFixer: false,
13
-
14
- require: {
15
- ArrowFunctionExpression: false,
16
- ClassDeclaration: true,
17
- ClassExpression: false,
18
- FunctionDeclaration: false,
19
- FunctionExpression: false,
20
- MethodDefinition: false,
21
- },
22
- },
23
- ],
24
-
25
- 'jsdoc/require-param-description': 'off',
26
- 'jsdoc/require-param-type': 'off',
27
- 'jsdoc/require-returns': 'off',
28
- 'jsdoc/require-returns-description': 'off',
29
- 'jsdoc/require-returns-type': 'off',
30
- 'jsdoc/tag-lines': 'off',
31
- },
32
- };
@@ -1,5 +0,0 @@
1
- module.exports = {
2
- extends: ['plugin:jsx-a11y/recommended'],
3
-
4
- plugins: ['jsx-a11y'],
5
- };
@@ -1,5 +0,0 @@
1
- module.exports = {
2
- extends: ['plugin:lit-a11y/recommended'],
3
-
4
- plugins: ['lit-a11y'],
5
- };
@@ -1,9 +0,0 @@
1
- module.exports = {
2
- extends: ['plugin:lit/recommended'],
3
-
4
- plugins: ['lit'],
5
-
6
- rules: {
7
- 'lit/attribute-value-entities': 'off',
8
- },
9
- };
@@ -1,17 +0,0 @@
1
- module.exports = {
2
- overrides: [
3
- {
4
- files: ['**/*.{test,spec}.{js,ts}'],
5
-
6
- rules: {
7
- 'more/no-numeric-endings-for-variables': 'off',
8
- },
9
- },
10
- ],
11
-
12
- plugins: ['more'],
13
-
14
- rules: {
15
- 'more/no-numeric-endings-for-variables': 'error',
16
- },
17
- };
@@ -1,5 +0,0 @@
1
- module.exports = {
2
- extends: ['plugin:no-await-in-promise/recommended-legacy'],
3
-
4
- plugins: ['no-await-in-promise'],
5
- };
@@ -1,8 +0,0 @@
1
- module.exports = {
2
- plugins: ['no-constructor-bind'],
3
-
4
- rules: {
5
- 'no-constructor-bind/no-constructor-bind': 'error',
6
- 'no-constructor-bind/no-constructor-state': 'error',
7
- },
8
- };
@@ -1,7 +0,0 @@
1
- module.exports = {
2
- plugins: ['eslint-plugin-no-explicit-type-exports'],
3
-
4
- rules: {
5
- 'no-explicit-type-exports/no-explicit-type-exports': 'error',
6
- },
7
- };
@@ -1,7 +0,0 @@
1
- module.exports = {
2
- plugins: ['no-loops'],
3
-
4
- rules: {
5
- 'no-loops/no-loops': 'warn',
6
- },
7
- };
@@ -1,12 +0,0 @@
1
- module.exports = {
2
- plugins: ['no-secrets'],
3
-
4
- rules: {
5
- 'no-secrets/no-secrets': [
6
- 'error',
7
- {
8
- ignoreContent: ['<', '://', '@example', 'META', 'I18N'],
9
- },
10
- ],
11
- },
12
- };
@@ -1,5 +0,0 @@
1
- module.exports = {
2
- extends: ['plugin:no-use-extend-native/recommended'],
3
-
4
- plugins: ['no-use-extend-native'],
5
- };
@@ -1,5 +0,0 @@
1
- module.exports = {
2
- extends: ['plugin:node/recommended'],
3
-
4
- plugins: ['node'],
5
- };
@@ -1,24 +0,0 @@
1
- module.exports = {
2
- extends: ['prettier'],
3
-
4
- // plugins: ['prettier'],
5
-
6
- rules: {
7
- // 'prettier/prettier': 'error',
8
-
9
- /** Fix for prettier/vue */
10
- 'vue/html-self-closing': [
11
- 'error',
12
- {
13
- html: {
14
- component: 'always',
15
- normal: 'never',
16
- void: 'always',
17
- },
18
-
19
- math: 'always',
20
- svg: 'always',
21
- },
22
- ],
23
- },
24
- };
@@ -1,10 +0,0 @@
1
- module.exports = {
2
- extends: ['plugin:promise/recommended'],
3
-
4
- plugins: ['promise'],
5
-
6
- rules: {
7
- 'promise/catch-or-return': ['warn', { allowFinally: true }],
8
- 'promise/no-promise-in-callback': 'off',
9
- },
10
- };
@@ -1,7 +0,0 @@
1
- module.exports = {
2
- extends: ['plugin:regexp/recommended'],
3
-
4
- plugins: ['regexp'],
5
-
6
- rules: {},
7
- };
@@ -1,10 +0,0 @@
1
- module.exports = {
2
- extends: ['plugin:security/recommended-legacy'],
3
-
4
- plugins: ['security'],
5
-
6
- rules: {
7
- 'security/detect-object-injection': 'off',
8
- 'security/detect-unsafe-regex': 'off',
9
- },
10
- };
@@ -1,7 +0,0 @@
1
- module.exports = {
2
- plugins: ['simple-import-sort'],
3
-
4
- rules: {
5
- 'simple-import-sort/exports': 'error',
6
- },
7
- };
@@ -1,5 +0,0 @@
1
- module.exports = {
2
- extends: ['plugin:sonarjs/recommended-legacy'],
3
-
4
- plugins: ['sonarjs'],
5
- };
@@ -1,298 +0,0 @@
1
- module.exports = {
2
- plugins: ['sort-class-members'],
3
-
4
- rules: {
5
- 'sort-class-members/sort-class-members': [
6
- 'error',
7
- {
8
- accessorPairPositioning: 'getThenSet',
9
-
10
- groups: {
11
- 'async-conventional-private-methods': [
12
- {
13
- async: true,
14
- name: '/_.+/',
15
- sort: 'alphabetical',
16
- type: 'method',
17
- },
18
- ],
19
-
20
- emits: [
21
- {
22
- name: '/emit[A-Z].*/',
23
- sort: 'alphabetical',
24
- type: 'method',
25
- },
26
- ],
27
-
28
- injects: [
29
- {
30
- groupByDecorator: 'Inject',
31
- sort: 'alphabetical',
32
- type: 'property',
33
- },
34
- {
35
- groupByDecorator: 'InjectReactive',
36
- sort: 'alphabetical',
37
- type: 'property',
38
- },
39
- ],
40
-
41
- models: [
42
- {
43
- groupByDecorator: 'Model',
44
- sort: 'alphabetical',
45
- type: 'property',
46
- },
47
- {
48
- groupByDecorator: 'ModelSync',
49
- sort: 'alphabetical',
50
- type: 'property',
51
- },
52
- {
53
- groupByDecorator: 'VModel',
54
- sort: 'alphabetical',
55
- type: 'property',
56
- },
57
- ],
58
-
59
- props: [
60
- {
61
- groupByDecorator: 'Prop',
62
- sort: 'alphabetical',
63
- type: 'property',
64
- },
65
- {
66
- groupByDecorator: 'PropSync',
67
- sort: 'alphabetical',
68
- type: 'property',
69
- },
70
- ],
71
-
72
- provides: [
73
- {
74
- groupByDecorator: 'Provide',
75
- sort: 'alphabetical',
76
- type: 'property',
77
- },
78
- {
79
- groupByDecorator: 'ProvideReactive',
80
- sort: 'alphabetical',
81
- type: 'property',
82
- },
83
- ],
84
-
85
- refs: [
86
- {
87
- groupByDecorator: 'Ref',
88
- sort: 'alphabetical',
89
- type: 'property',
90
- },
91
- ],
92
-
93
- 'sorted-methods': [
94
- {
95
- sort: 'alphabetical',
96
- type: 'method',
97
- },
98
- ],
99
-
100
- 'sorted-properties': [
101
- {
102
- sort: 'alphabetical',
103
- type: 'property',
104
- },
105
- ],
106
-
107
- 'static-accessor-pairs': [
108
- {
109
- accessorPair: true,
110
- sort: 'alphabetical',
111
- static: true,
112
- },
113
- ],
114
-
115
- 'static-arrow-function-properties': [
116
- {
117
- propertyType: 'ArrowFunctionExpression',
118
- sort: 'alphabetical',
119
- static: true,
120
- },
121
- ],
122
-
123
- 'static-async-conventional-private-methods': [
124
- {
125
- async: true,
126
- name: '/_.+/',
127
- sort: 'alphabetical',
128
- static: true,
129
- type: 'method',
130
- },
131
- ],
132
-
133
- 'static-async-methods': [
134
- {
135
- async: true,
136
- sort: 'alphabetical',
137
- static: true,
138
- type: 'method',
139
- },
140
- ],
141
-
142
- 'static-conventional-private-methods': [
143
- {
144
- name: '/_.+/',
145
- sort: 'alphabetical',
146
- static: true,
147
- type: 'method',
148
- },
149
- ],
150
-
151
- 'static-conventional-private-properties': [
152
- {
153
- name: '/_.+/',
154
- sort: 'alphabetical',
155
- static: true,
156
- type: 'property',
157
- },
158
- ],
159
-
160
- 'static-getters': [
161
- {
162
- kind: 'get',
163
- sort: 'alphabetical',
164
- static: true,
165
- },
166
- ],
167
-
168
- 'static-setters': [
169
- {
170
- kind: 'set',
171
- sort: 'alphabetical',
172
- static: true,
173
- },
174
- ],
175
-
176
- 'vue-activated': [{ name: 'activated', type: 'method' }],
177
-
178
- 'vue-before-create': [{ name: 'beforeCreate', type: 'method' }],
179
-
180
- 'vue-before-mount': [{ name: 'beforeMount', type: 'method' }],
181
-
182
- 'vue-before-unmount': [{ name: 'beforeUnmount', type: 'method' }],
183
-
184
- 'vue-before-update': [{ name: 'beforeUpdate', type: 'method' }],
185
-
186
- 'vue-created': [{ name: 'created', type: 'method' }],
187
-
188
- 'vue-deactivated': [{ name: 'deactivated', type: 'method' }],
189
-
190
- 'vue-error-captured': [{ name: 'errorCaptured', type: 'method' }],
191
-
192
- 'vue-mounted': [{ name: 'mounted', type: 'method' }],
193
-
194
- 'vue-render-tracked': [{ name: 'renderTracked', type: 'method' }],
195
-
196
- 'vue-render-triggered': [{ name: 'renderTriggered', type: 'method' }],
197
-
198
- 'vue-unmounted': [{ name: 'unmounted', type: 'method' }],
199
-
200
- 'vue-updated': [{ name: 'updated', type: 'method' }],
201
-
202
- vuex: [
203
- {
204
- groupByDecorator: 'namespace',
205
- sort: 'alphabetical',
206
- type: 'property',
207
- },
208
- {
209
- groupByDecorator: 'State',
210
- sort: 'alphabetical',
211
- type: 'property',
212
- },
213
- {
214
- groupByDecorator: 'Getter',
215
- sort: 'alphabetical',
216
- type: 'property',
217
- },
218
- {
219
- groupByDecorator: 'Mutation',
220
- sort: 'alphabetical',
221
- type: 'property',
222
- },
223
- {
224
- groupByDecorator: 'Action',
225
- sort: 'alphabetical',
226
- type: 'property',
227
- },
228
- {
229
- groupByDecorator: '(namespace',
230
- sort: 'alphabetical',
231
- type: 'property',
232
- },
233
- ],
234
- },
235
-
236
- order: [
237
- // static
238
- '[static-properties]',
239
- '[static-arrow-function-properties]',
240
- '[static-accessor-pairs]',
241
- '[static-getters]',
242
- '[static-setters]',
243
- '[static-methods]',
244
- '[static-async-methods]',
245
-
246
- // decorated properties
247
- '[vuex]',
248
- '[injects]',
249
- '[props]',
250
- '[models]',
251
- '[provides]',
252
- '[emits]',
253
- '[refs]',
254
-
255
- // properties
256
- '[sorted-properties]',
257
- '[arrow-function-properties]',
258
-
259
- // constructor
260
- 'constructor',
261
-
262
- // accessor
263
- '[accessor-pairs]',
264
- '[getters]',
265
- '[setters]',
266
-
267
- // vue lifecycle hooks
268
- '[vue-before-create]',
269
- '[vue-created]',
270
- '[vue-before-mount]',
271
- '[vue-mounted]',
272
- '[vue-before-update]',
273
- '[vue-updated]',
274
- '[vue-before-unmount]',
275
- '[vue-unmounted]',
276
- '[vue-error-captured]',
277
- '[vue-render-tracked]',
278
- '[vue-render-triggered]',
279
- '[vue-activated]',
280
-
281
- // methods
282
- '[sorted-methods]',
283
- '[async-methods]',
284
-
285
- // private static
286
- '[static-conventional-private-properties]',
287
- '[static-conventional-private-methods]',
288
- '[static-async-conventional-private-methods]',
289
-
290
- // private
291
- '[conventional-private-properties]',
292
- '[conventional-private-methods]',
293
- '[async-conventional-private-methods]',
294
- ],
295
- },
296
- ],
297
- },
298
- };
@@ -1,10 +0,0 @@
1
- module.exports = {
2
- plugins: ['sort-destructure-keys'],
3
-
4
- rules: {
5
- 'sort-destructure-keys/sort-destructure-keys': [
6
- 'warn',
7
- { caseSensitive: true },
8
- ],
9
- },
10
- };
@@ -1,7 +0,0 @@
1
- module.exports = {
2
- plugins: ['sort-keys-fix'],
3
-
4
- rules: {
5
- 'sort-keys-fix/sort-keys-fix': 'warn',
6
- },
7
- };
@@ -1,9 +0,0 @@
1
- const { extendSpellChecker } = require('../utils/extend-spell-checker');
2
-
3
- module.exports = {
4
- plugins: ['spellcheck'],
5
-
6
- rules: {
7
- 'spellcheck/spell-checker': extendSpellChecker(),
8
- },
9
- };