@alexlit/lint-kit 214.4.0 → 216.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 (157) hide show
  1. package/README.md +27 -22
  2. package/eslint.config.js +31 -60
  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 +181 -106
  7. package/packages/config-eslint/base.js +8 -3
  8. package/packages/config-eslint/index.d.ts +114 -0
  9. package/packages/config-eslint/index.js +82 -23
  10. package/packages/config-eslint/package.json +20 -17
  11. package/packages/config-eslint/plugins/de-morgan.js +11 -4
  12. package/packages/config-eslint/plugins/import-x.js +54 -37
  13. package/packages/config-eslint/plugins/javascript.js +100 -85
  14. package/packages/config-eslint/plugins/jsdoc.js +28 -17
  15. package/packages/config-eslint/plugins/json.js +35 -24
  16. package/packages/config-eslint/plugins/perfectionist.js +112 -95
  17. package/packages/config-eslint/plugins/pinia.js +21 -10
  18. package/packages/config-eslint/plugins/prettier.js +32 -10
  19. package/packages/config-eslint/plugins/regexp.js +20 -9
  20. package/packages/config-eslint/plugins/sonar.js +23 -12
  21. package/packages/config-eslint/plugins/stylistic.js +111 -100
  22. package/packages/config-eslint/plugins/tailwindcss.js +24 -10
  23. package/packages/config-eslint/plugins/tanstack-query.js +20 -9
  24. package/packages/config-eslint/plugins/typescript-type-checked.js +42 -33
  25. package/packages/config-eslint/plugins/typescript.js +27 -14
  26. package/packages/config-eslint/plugins/unicorn.js +77 -64
  27. package/packages/config-eslint/plugins/unocss.js +16 -5
  28. package/packages/config-eslint/plugins/vitest.js +24 -13
  29. package/packages/config-eslint/plugins/vue-accessibility.js +26 -13
  30. package/packages/config-eslint/plugins/vue-i18n.js +43 -31
  31. package/packages/config-eslint/plugins/vue.js +259 -242
  32. package/packages/config-eslint/plugins/zod.js +21 -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 +158 -23
  48. package/packages/config-prettier/index.d.ts +100 -0
  49. package/packages/config-prettier/index.js +63 -85
  50. package/packages/config-prettier/package.json +6 -4
  51. package/packages/config-prettier/plugins/jsdoc.js +17 -2
  52. package/packages/config-prettier/plugins/mdc.js +17 -2
  53. package/packages/config-prettier/plugins/packagejson.js +17 -4
  54. package/packages/config-prettier/plugins/php.js +17 -4
  55. package/packages/config-prettier/plugins/pug.js +17 -2
  56. package/packages/config-prettier/plugins/ruby.js +17 -11
  57. package/packages/config-prettier/plugins/sh.js +17 -4
  58. package/packages/config-prettier/plugins/solidity.js +17 -4
  59. package/packages/config-prettier/plugins/sort-json.js +17 -2
  60. package/packages/config-prettier/plugins/sql.js +17 -4
  61. package/packages/config-prettier/plugins/tailwindcss.js +17 -2
  62. package/packages/config-prettier/plugins/xml.js +17 -2
  63. package/packages/config-prettier/utils/merge-configs.js +18 -0
  64. package/packages/config-stylelint/README.md +182 -44
  65. package/packages/config-stylelint/index.d.ts +56 -0
  66. package/packages/config-stylelint/index.js +161 -165
  67. package/packages/config-stylelint/package.json +5 -2
  68. package/packages/config-stylelint/plugins/a11y.js +13 -6
  69. package/packages/config-stylelint/plugins/bem.js +14 -6
  70. package/packages/config-stylelint/plugins/color-format.js +14 -2
  71. package/packages/config-stylelint/plugins/declaration-block-no-ignored-properties.js +14 -5
  72. package/packages/config-stylelint/plugins/gamut.js +13 -5
  73. package/packages/config-stylelint/plugins/high-performance-animation.js +15 -6
  74. package/packages/config-stylelint/plugins/logical-css.js +13 -5
  75. package/packages/config-stylelint/plugins/media-use-custom-media.js +14 -5
  76. package/packages/config-stylelint/plugins/no-indistinguishable-colors.js +14 -5
  77. package/packages/config-stylelint/plugins/no-nested-media.js +13 -5
  78. package/packages/config-stylelint/plugins/no-unresolved-module.js +15 -6
  79. package/packages/config-stylelint/plugins/no-unsupported-browser-features.js +15 -6
  80. package/packages/config-stylelint/plugins/order.js +14 -6
  81. package/packages/config-stylelint/plugins/prettier.js +13 -5
  82. package/packages/config-stylelint/plugins/scss.js +13 -6
  83. package/packages/config-stylelint/plugins/selector-no-empty.js +14 -5
  84. package/packages/config-stylelint/plugins/use-nesting.js +13 -5
  85. package/packages/config-stylelint/plugins/vue.js +10 -2
  86. package/packages/config-stylelint/utils/merge-configs.js +20 -0
  87. package/prettier.config.js +15 -7
  88. package/scripts/semver.sh +3 -3
  89. package/stylelint.config.js +25 -11
  90. package/packages/config-eslint/_legacy/LICENSE +0 -20
  91. package/packages/config-eslint/_legacy/README.md +0 -48
  92. package/packages/config-eslint/_legacy/constants/allow-boolean-property-list.js +0 -38
  93. package/packages/config-eslint/_legacy/constants/boolean-prefixes.js +0 -11
  94. package/packages/config-eslint/_legacy/constants/english-verbs.js +0 -3368
  95. package/packages/config-eslint/_legacy/dictionaries/index.js +0 -467
  96. package/packages/config-eslint/_legacy/dictionaries/programming/bash.js +0 -25
  97. package/packages/config-eslint/_legacy/dictionaries/programming/django.js +0 -2345
  98. package/packages/config-eslint/_legacy/dictionaries/programming/elixir.js +0 -64
  99. package/packages/config-eslint/_legacy/dictionaries/programming/go.js +0 -7748
  100. package/packages/config-eslint/_legacy/dictionaries/programming/java.js +0 -33527
  101. package/packages/config-eslint/_legacy/dictionaries/programming/latex.js +0 -675
  102. package/packages/config-eslint/_legacy/dictionaries/programming/lua.js +0 -394
  103. package/packages/config-eslint/_legacy/dictionaries/programming/php.js +0 -9788
  104. package/packages/config-eslint/_legacy/dictionaries/programming/python.js +0 -367
  105. package/packages/config-eslint/_legacy/dictionaries/programming/ruby.js +0 -357
  106. package/packages/config-eslint/_legacy/dictionaries/programming/rust.js +0 -115
  107. package/packages/config-eslint/_legacy/dictionaries/programming/scala.js +0 -2755
  108. package/packages/config-eslint/_legacy/dictionaries/specialized/html-symbol-entities.js +0 -1118
  109. package/packages/config-eslint/_legacy/dictionaries/specialized/lorem-ipsum.js +0 -359
  110. package/packages/config-eslint/_legacy/index.js +0 -12
  111. package/packages/config-eslint/_legacy/legacy.js +0 -3
  112. package/packages/config-eslint/_legacy/package.json +0 -97
  113. package/packages/config-eslint/_legacy/plugins/array-func.js +0 -20
  114. package/packages/config-eslint/_legacy/plugins/compat.js +0 -7
  115. package/packages/config-eslint/_legacy/plugins/decorator-position.js +0 -15
  116. package/packages/config-eslint/_legacy/plugins/eslint-comments.js +0 -9
  117. package/packages/config-eslint/_legacy/plugins/etc.js +0 -13
  118. package/packages/config-eslint/_legacy/plugins/ext.js +0 -12
  119. package/packages/config-eslint/_legacy/plugins/filenames.js +0 -38
  120. package/packages/config-eslint/_legacy/plugins/import.js +0 -133
  121. package/packages/config-eslint/_legacy/plugins/jsdoc.js +0 -32
  122. package/packages/config-eslint/_legacy/plugins/jsx-a11y.js +0 -5
  123. package/packages/config-eslint/_legacy/plugins/lit-a11y.js +0 -5
  124. package/packages/config-eslint/_legacy/plugins/lit.js +0 -9
  125. package/packages/config-eslint/_legacy/plugins/more.js +0 -17
  126. package/packages/config-eslint/_legacy/plugins/no-await-in-promise.js +0 -5
  127. package/packages/config-eslint/_legacy/plugins/no-constructor-bind.js +0 -8
  128. package/packages/config-eslint/_legacy/plugins/no-explicit-type-exports.js +0 -7
  129. package/packages/config-eslint/_legacy/plugins/no-loops.js +0 -7
  130. package/packages/config-eslint/_legacy/plugins/no-secrets.js +0 -12
  131. package/packages/config-eslint/_legacy/plugins/no-use-extend-native.js +0 -5
  132. package/packages/config-eslint/_legacy/plugins/node.js +0 -5
  133. package/packages/config-eslint/_legacy/plugins/prettier.js +0 -24
  134. package/packages/config-eslint/_legacy/plugins/promise.js +0 -10
  135. package/packages/config-eslint/_legacy/plugins/regexp.js +0 -7
  136. package/packages/config-eslint/_legacy/plugins/security.js +0 -10
  137. package/packages/config-eslint/_legacy/plugins/simple-import-sort.js +0 -7
  138. package/packages/config-eslint/_legacy/plugins/sonar.js +0 -5
  139. package/packages/config-eslint/_legacy/plugins/sort-class-members.js +0 -298
  140. package/packages/config-eslint/_legacy/plugins/sort-destructure-keys.js +0 -10
  141. package/packages/config-eslint/_legacy/plugins/sort-keys-fix.js +0 -7
  142. package/packages/config-eslint/_legacy/plugins/spellcheck.js +0 -9
  143. package/packages/config-eslint/_legacy/plugins/sql.js +0 -26
  144. package/packages/config-eslint/_legacy/plugins/tanstack-query.js +0 -4
  145. package/packages/config-eslint/_legacy/plugins/testing-library.js +0 -9
  146. package/packages/config-eslint/_legacy/plugins/typescript-sort-keys.js +0 -5
  147. package/packages/config-eslint/_legacy/plugins/typescript.js +0 -157
  148. package/packages/config-eslint/_legacy/plugins/unicorn.js +0 -70
  149. package/packages/config-eslint/_legacy/plugins/unused-imports.js +0 -17
  150. package/packages/config-eslint/_legacy/plugins/vitest.js +0 -16
  151. package/packages/config-eslint/_legacy/plugins/vue-i18n.js +0 -34
  152. package/packages/config-eslint/_legacy/plugins/vue.js +0 -291
  153. package/packages/config-eslint/_legacy/plugins/vuejs-accessibility.js +0 -20
  154. package/packages/config-eslint/_legacy/plugins/wc.js +0 -5
  155. package/packages/config-eslint/_legacy/plugins/write-good-comments.js +0 -7
  156. package/packages/config-eslint/_legacy/utils/create-config.js +0 -377
  157. package/packages/config-eslint/_legacy/utils/extend-spell-checker.js +0 -23
@@ -1,9 +1,6 @@
1
- /**
2
- * @type {import('stylelint').Config}
3
- *
4
- * @see [stylelint-no-unsupported-browser-features](https://github.com/ismay/stylelint-no-unsupported-browser-features)
5
- */
6
- export default {
1
+ import { mergeConfigs } from '../utils/merge-configs.js';
2
+
3
+ const DEFAULTS = {
7
4
  plugins: ['stylelint-no-unsupported-browser-features'],
8
5
  rules: {
9
6
  'plugin/no-unsupported-browser-features': [
@@ -16,3 +13,15 @@ export default {
16
13
  ],
17
14
  },
18
15
  };
16
+
17
+ /**
18
+ * Проверяет поддержку CSS-функций целевыми браузерами.
19
+ *
20
+ * @param {Partial<import('stylelint').Config>} [options]
21
+ *
22
+ * @returns {import('stylelint').Config}
23
+ *
24
+ * @see [stylelint-no-unsupported-browser-features](https://github.com/ismay/stylelint-no-unsupported-browser-features)
25
+ */
26
+ export const noUnsupportedBrowserFeatures = (options = {}) =>
27
+ mergeConfigs(DEFAULTS, options);
@@ -1,3 +1,5 @@
1
+ import { mergeConfigs } from '../utils/merge-configs.js';
2
+
1
3
  const LETTERS = 'abcdefghijklmnopqrstuvwxyz'.split('');
2
4
 
3
5
  const MEDIA_FEATURES = [
@@ -115,12 +117,7 @@ const buildPseudoElementRules = () => [
115
117
  { selector: '::', type: 'rule' },
116
118
  ];
117
119
 
118
- /**
119
- * @type {import('stylelint').Config}
120
- *
121
- * @see [stylelint-order](https://github.com/hudochenkov/stylelint-order)
122
- */
123
- export default {
120
+ const DEFAULTS = {
124
121
  plugins: ['stylelint-order'],
125
122
  rules: {
126
123
  'order/custom-properties-alphabetical-order': true,
@@ -192,3 +189,14 @@ export default {
192
189
  'order/properties-alphabetical-order': true,
193
190
  },
194
191
  };
192
+
193
+ /**
194
+ * Настраивает порядок свойств и селекторов.
195
+ *
196
+ * @param {Partial<import('stylelint').Config>} [options]
197
+ *
198
+ * @returns {import('stylelint').Config}
199
+ *
200
+ * @see [stylelint-order](https://github.com/hudochenkov/stylelint-order)
201
+ */
202
+ export const order = (options = {}) => mergeConfigs(DEFAULTS, options);
@@ -1,9 +1,17 @@
1
+ import { mergeConfigs } from '../utils/merge-configs.js';
2
+
3
+ const DEFAULTS = {
4
+ plugins: ['stylelint-prettier'],
5
+ rules: { 'prettier/prettier': true },
6
+ };
7
+
1
8
  /**
2
- * @type {import('stylelint').Config}
9
+ * Интегрирует Prettier.
10
+ *
11
+ * @param {Partial<import('stylelint').Config>} [options]
12
+ *
13
+ * @returns {import('stylelint').Config}
3
14
  *
4
15
  * @see [stylelint-prettier](https://github.com/prettier/stylelint-prettier)
5
16
  */
6
- export default {
7
- plugins: ['stylelint-prettier'],
8
- rules: { 'prettier/prettier': true },
9
- };
17
+ export const prettier = (options = {}) => mergeConfigs(DEFAULTS, options);
@@ -1,13 +1,9 @@
1
1
  /* eslint-disable unicorn/no-null */
2
+ import { mergeConfigs } from '../utils/merge-configs.js';
2
3
 
3
4
  const KEBAB_CASE_PATTERN = '^[a-z]+([a-z0-9-]+[a-z0-9]+)?$';
4
5
 
5
- /**
6
- * @type {import('stylelint').Config}
7
- *
8
- * @see [stylelint-scss](https://github.com/kristerkari/stylelint-scss)
9
- */
10
- export default {
6
+ const DEFAULTS = {
11
7
  extends: ['stylelint-config-standard-scss'],
12
8
  plugins: ['stylelint-scss'],
13
9
  rules: {
@@ -94,3 +90,14 @@ export default {
94
90
  ],
95
91
  },
96
92
  };
93
+
94
+ /**
95
+ * Настраивает линтинг SCSS.
96
+ *
97
+ * @param {Partial<import('stylelint').Config>} [options]
98
+ *
99
+ * @returns {import('stylelint').Config}
100
+ *
101
+ * @see [stylelint-scss](https://github.com/kristerkari/stylelint-scss)
102
+ */
103
+ export const scss = (options = {}) => mergeConfigs(DEFAULTS, options);
@@ -1,9 +1,18 @@
1
+ import { mergeConfigs } from '../utils/merge-configs.js';
2
+
3
+ const DEFAULTS = {
4
+ plugins: ['stylelint-selector-no-empty'],
5
+ rules: { 'plugin/stylelint-selector-no-empty': true },
6
+ };
7
+
1
8
  /**
2
- * @type {import('stylelint').Config} *
9
+ * Запрещает пустые селекторы.
10
+ *
11
+ * @param {Partial<import('stylelint').Config>} [options]
12
+ *
13
+ * @returns {import('stylelint').Config}
3
14
  *
4
15
  * @see [stylelint-selector-no-empty](https://github.com/ssivanatarajan/stylelint-selector-no-empty)
5
16
  */
6
- export default {
7
- plugins: ['stylelint-selector-no-empty'],
8
- rules: { 'plugin/stylelint-selector-no-empty': true },
9
- };
17
+ export const selectorNoEmpty = (options = {}) =>
18
+ mergeConfigs(DEFAULTS, options);
@@ -1,9 +1,17 @@
1
+ import { mergeConfigs } from '../utils/merge-configs.js';
2
+
3
+ const DEFAULTS = {
4
+ plugins: ['stylelint-use-nesting'],
5
+ rules: { 'csstools/use-nesting': ['always', { except: [], syntax: 'scss' }] },
6
+ };
7
+
1
8
  /**
2
- * @type {import('stylelint').Config}
9
+ * Требует использования CSS-вложенности.
10
+ *
11
+ * @param {Partial<import('stylelint').Config>} [options]
12
+ *
13
+ * @returns {import('stylelint').Config}
3
14
  *
4
15
  * @see [stylelint-use-nesting](https://github.com/csstools/stylelint-use-nesting)
5
16
  */
6
- export default {
7
- plugins: ['stylelint-use-nesting'],
8
- rules: { 'csstools/use-nesting': ['always', { except: [], syntax: 'scss' }] },
9
- };
17
+ export const useNesting = (options = {}) => mergeConfigs(DEFAULTS, options);
@@ -1,6 +1,14 @@
1
+ import { mergeConfigs } from '../utils/merge-configs.js';
2
+
3
+ const DEFAULTS = { extends: 'stylelint-config-recommended-vue' };
4
+
1
5
  /**
2
- * @type {import('stylelint').Config}
6
+ * Подключает поддержку Vue.js SFC.
7
+ *
8
+ * @param {Partial<import('stylelint').Config>} [options]
9
+ *
10
+ * @returns {import('stylelint').Config}
3
11
  *
4
12
  * @see [stylelint-config-recommended-vue](https://github.com/ota-meshi/stylelint-config-recommended-vue)
5
13
  */
6
- export default { extends: 'stylelint-config-recommended-vue' };
14
+ export const vue = (options = {}) => mergeConfigs(DEFAULTS, options);
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Объединяет конфиги Stylelint по единой политике.
3
+ *
4
+ * Коллекции (`extends`, `ignoreFiles`, `overrides`, `plugins`) дополняются в
5
+ * порядке аргументов, `plugins` дедуплицируются. `rules` мержатся поверхностно:
6
+ * настройка одноимённого правила из последнего конфига заменяет предыдущую
7
+ * целиком. Остальные поля перезаписываются последним конфигом.
8
+ *
9
+ * @param {...import('stylelint').Config} configs - Конфиги в порядке приоритета
10
+ *
11
+ * @returns {import('stylelint').Config}
12
+ */
13
+ export const mergeConfigs = (...configs) => ({
14
+ ...Object.assign({}, ...configs),
15
+ extends: configs.flatMap((config) => config.extends ?? []),
16
+ ignoreFiles: configs.flatMap((config) => config.ignoreFiles ?? []),
17
+ overrides: configs.flatMap((config) => config.overrides ?? []),
18
+ plugins: [...new Set(configs.flatMap((config) => config.plugins ?? []))],
19
+ rules: Object.assign({}, ...configs.map((config) => config.rules ?? {})),
20
+ });
@@ -1,8 +1,16 @@
1
- import { createConfig } from '@alexlit/config-prettier';
1
+ import { defineConfig, plugins } from '@alexlit/config-prettier';
2
2
 
3
- export default createConfig({
4
- php: true,
5
- ruby: true,
6
- sql: true,
7
- tailwindcss: true,
8
- });
3
+ export default defineConfig([
4
+ plugins.jsdoc(),
5
+ plugins.mdc(),
6
+ plugins.packageJson(),
7
+ plugins.php(),
8
+ plugins.pug(),
9
+ plugins.ruby(),
10
+ plugins.sh(),
11
+ plugins.sortJson(),
12
+ plugins.solidity(),
13
+ plugins.sql(),
14
+ plugins.tailwindcss(),
15
+ plugins.xml(),
16
+ ]);
package/scripts/semver.sh CHANGED
@@ -44,17 +44,17 @@ done
44
44
 
45
45
  echo -e "${YELLOW}Поднимаю ${GREEN}${VERSION}${YELLOW} версию пакета ${GREEN}${CURRENT_PACKAGE_NAME}${YELLOW}...${WHITE}"
46
46
 
47
- # Базовый тег — последний релиз ТОЛЬКО этого пакета (в монорепо git-теги глобальные)
47
+ # Базовый тег - последний релиз ТОЛЬКО этого пакета (в монорепо git-теги глобальные)
48
48
  LAST_PACKAGE_TAG=$(git describe --tags --abbrev=0 --match "${CURRENT_PACKAGE_NAME}@*" 2> /dev/null || true)
49
49
 
50
50
  # --bump (а не --release): поднимает версию, но НЕ делает коммит/тег/GitHub
51
- # release — их делаем сами ниже, ПОСЛЕ коммита бампа
51
+ # release - их делаем сами ниже, ПОСЛЕ коммита бампа
52
52
  CHANGELOGEN_ARGS=(--${VERSION} --bump)
53
53
  if [ -n "${LAST_PACKAGE_TAG}" ]; then
54
54
  CHANGELOGEN_ARGS+=(--from "${LAST_PACKAGE_TAG}")
55
55
  fi
56
56
 
57
- # CHANGELOG.md пишем только для корневого пакета, в сабмодулях — без него
57
+ # CHANGELOG.md пишем только для корневого пакета, в сабмодулях - без него
58
58
  if [ "${CURRENT_PACKAGE_NAME}" != "${MAIN_PACKAGE}" ]; then
59
59
  CHANGELOGEN_ARGS+=(--no-output)
60
60
  fi
@@ -1,12 +1,26 @@
1
- import { createConfig } from '@alexlit/config-stylelint';
1
+ import { defineConfig, plugins } from '@alexlit/config-stylelint';
2
2
 
3
- export default createConfig({
4
- 'a11y': true,
5
- 'bem': true,
6
- 'gamut': true,
7
- 'logical-css': true,
8
- 'media-use-custom-media': true,
9
- 'no-indistinguishable-colors': false,
10
- 'no-unresolved-module': true,
11
- 'no-unsupported-browser-features': true,
12
- });
3
+ export default defineConfig([
4
+ // Бывшие плагины по умолчанию (v61)
5
+ plugins.colorFormat(),
6
+ plugins.declarationBlockNoIgnoredProperties(),
7
+ plugins.highPerformanceAnimation(),
8
+ plugins.noNestedMedia(),
9
+ plugins.order(),
10
+ plugins.scss(),
11
+ plugins.selectorNoEmpty(),
12
+ plugins.useNesting(),
13
+ plugins.vue(),
14
+
15
+ // Включённые опциональные плагины
16
+ plugins.a11y(),
17
+ plugins.bem(),
18
+ plugins.gamut(),
19
+ plugins.logicalCss(),
20
+ plugins.mediaUseCustomMedia(),
21
+ plugins.noUnresolvedModule(),
22
+ plugins.noUnsupportedBrowserFeatures(),
23
+
24
+ // Кодстайл
25
+ plugins.prettier(),
26
+ ]);
@@ -1,20 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2020 Alexey Litovchenko
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy of
6
- this software and associated documentation files (the "Software"), to deal in
7
- the Software without restriction, including without limitation the rights to
8
- use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9
- the Software, and to permit persons to whom the Software is furnished to do so,
10
- subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17
- FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18
- COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19
- IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20
- CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -1,48 +0,0 @@
1
- # ESLint Configuration
2
-
3
- ## Installation
4
-
5
- ```sh
6
- npm i @alexlit/config-eslint -D
7
- ```
8
-
9
- ## Connection
10
-
11
- - Default
12
- ([see plugins enabled by default](https://github.com/alex-lit/lint-kit/blob/master/packages/config-eslint/index.js))
13
-
14
- ```js
15
- // .eslintrc.js
16
- const { createConfig } = require('@alexlit/config-eslint');
17
-
18
- module.exports = createConfig();
19
- ```
20
-
21
- - Custom
22
-
23
- ```js
24
- // .eslintrc.js
25
- const {
26
- createConfig,
27
- extendSpellChecker,
28
- } = require('@alexlit/config-eslint');
29
-
30
- module.exports = createConfig(
31
- {
32
- // disable some default plugins
33
- vitest: false,
34
-
35
- // enable some optional plugins
36
- node: true,
37
- },
38
- {
39
- // add custom rules
40
- rules: {
41
- 'no-implicit-coercion': 'warn',
42
- 'spellcheck/spell-checker': extendSpellChecker({
43
- skipWords: ['word1', 'word2'],
44
- }),
45
- },
46
- },
47
- );
48
- ```
@@ -1,38 +0,0 @@
1
- module.exports = [
2
- // html attributes
3
- 'allowfullscreen',
4
- 'allowpaymentrequest',
5
- 'async',
6
- 'autofocus',
7
- 'autoplay',
8
- 'checked',
9
- 'controls',
10
- 'default',
11
- 'defer',
12
- 'disabled',
13
- 'formnovalidate',
14
- 'hidden',
15
- 'ismap',
16
- 'itemscope',
17
- 'multiple',
18
- 'muted',
19
- 'nomodule',
20
- 'novalidate',
21
- 'open',
22
- 'playsinline',
23
- 'readonly',
24
- 'required',
25
- 'reversed',
26
- 'selected',
27
- 'truespeed',
28
-
29
- // vuex store module registration
30
- 'namespaced',
31
-
32
- // other
33
- 'enabled',
34
- 'invalid',
35
- 'loading',
36
- 'valid',
37
- 'value',
38
- ];
@@ -1,11 +0,0 @@
1
- module.exports = [
2
- 'can',
3
- 'did',
4
- 'has',
5
- 'is',
6
- 'may',
7
- 'must',
8
- 'need',
9
- 'should',
10
- 'will',
11
- ];