@cherepanov.pavel/shareable-config 1.0.3 → 1.0.4

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 (48) hide show
  1. package/.editorconfig +2 -3
  2. package/.editorconfig-get.js +3 -3
  3. package/.get-all.js +16 -12
  4. package/.gitattributes-get.js +3 -3
  5. package/.gitignore-get.js +33 -30
  6. package/.vscode/.code-snippets-get.js +34 -31
  7. package/.vscode/extensions.json +17 -17
  8. package/.vscode/extensions.json-get.js +25 -25
  9. package/.vscode/settings.json +36 -27
  10. package/.vscode/settings.json-get.js +25 -25
  11. package/env.json5.set.js +1 -1
  12. package/jsconfig.json +4 -7
  13. package/package.json +10 -1
  14. package/tools/eslint-config/configs/global.js +21 -18
  15. package/tools/eslint-config/configs/javascript.js +14 -14
  16. package/tools/eslint-config/configs/json.js +93 -0
  17. package/tools/eslint-config/configs/typescript.js +17 -17
  18. package/tools/eslint-config/configs/vue.js +22 -22
  19. package/tools/eslint-config/index.js +1 -0
  20. package/tools/eslint-config/rules/constants.js +10 -9
  21. package/tools/eslint-config/rules/javascript/index.js +2 -2
  22. package/tools/eslint-config/rules/javascript/possible-problems.js +76 -58
  23. package/tools/eslint-config/rules/javascript/suggestions.js +405 -249
  24. package/tools/eslint-config/rules/stylistic/jsFormatting.js +321 -167
  25. package/tools/eslint-config/rules/stylistic/tsFormatting.js +4 -4
  26. package/tools/eslint-config/rules/typescript/common.js +135 -126
  27. package/tools/eslint-config/rules/typescript/compatibility.js +20 -20
  28. package/tools/eslint-config/rules/typescript/extension.js +44 -44
  29. package/tools/eslint-config/rules/typescript/index.js +3 -3
  30. package/tools/eslint-config/rules/vue/base.js +2 -2
  31. package/tools/eslint-config/rules/vue/extension.js +47 -44
  32. package/tools/eslint-config/rules/vue/formatting.js +66 -36
  33. package/tools/eslint-config/rules/vue/index.js +5 -5
  34. package/tools/eslint-config/rules/vue/possibleProblems.js +182 -109
  35. package/tools/eslint-config/rules/vue/suggestions.js +82 -79
  36. package/tools/stylelint-config/config.js +18 -20
  37. package/tools/stylelint-config/rules/base.js +30 -24
  38. package/tools/stylelint-config/rules/conflicts.js +5 -5
  39. package/tools/stylelint-config/rules/order.js +38 -38
  40. package/tools/stylelint-config/rules/property-groups.js +392 -389
  41. package/tools/stylelint-config/rules/scss.js +9 -6
  42. package/tools/stylelint-config/rules/stylistic.js +110 -109
  43. package/utils/communication.js +26 -26
  44. package/utils/copy-with-override.js +35 -33
  45. package/utils/env.js +4 -4
  46. package/utils/file-header.js +9 -9
  47. package/utils/file.js +46 -46
  48. package/utils/merge.js +161 -155
@@ -1,26 +1,32 @@
1
1
  export default {
2
- rules: {
3
- 'color-hex-alpha': 'never',
4
- 'color-hex-length': 'long',
5
- 'color-named': 'never',
6
- 'declaration-no-important': true,
7
- 'declaration-property-value-no-unknown': null,
8
- 'font-family-name-quotes': 'always-unless-keyword',
9
- 'font-family-no-missing-generic-family-keyword': null,
10
- 'font-weight-notation': ['numeric', {
11
- ignore: ['relative'],
12
- }],
13
- 'max-nesting-depth': [7, {
14
- ignore: [
15
- 'blockless-at-rules',
16
- 'pseudo-classes',
17
- ],
18
- }],
19
- 'media-feature-name-value-no-unknown': true,
20
- 'no-descending-specificity': null,
21
- 'selector-class-pattern': null,
22
- 'selector-max-compound-selectors': 99,
23
- 'selector-max-id': 0,
24
- 'selector-max-universal': 2,
25
- },
2
+ rules: {
3
+ 'color-hex-alpha': 'never',
4
+ 'color-hex-length': 'long',
5
+ 'color-named': 'never',
6
+ 'declaration-no-important': true,
7
+ 'declaration-property-value-no-unknown': null,
8
+ 'font-family-name-quotes': 'always-unless-keyword',
9
+ 'font-family-no-missing-generic-family-keyword': null,
10
+ 'font-weight-notation': [
11
+ 'numeric',
12
+ {
13
+ ignore: ['relative'],
14
+ },
15
+ ],
16
+ 'max-nesting-depth': [
17
+ 7,
18
+ {
19
+ ignore: [
20
+ 'blockless-at-rules',
21
+ 'pseudo-classes',
22
+ ],
23
+ },
24
+ ],
25
+ 'media-feature-name-value-no-unknown': true,
26
+ 'no-descending-specificity': null,
27
+ 'selector-class-pattern': null,
28
+ 'selector-max-compound-selectors': 99,
29
+ 'selector-max-id': 0,
30
+ 'selector-max-universal': 2,
31
+ },
26
32
  };
@@ -1,7 +1,7 @@
1
1
  export default {
2
- rules: {
3
- 'declaration-empty-line-before': null, // order/properties-order [./order.cjs]
4
- // https://gitlab.kadnk.ru/frontend/configs/-/issues/2
5
- 'length-zero-no-unit': null,
6
- },
2
+ rules: {
3
+ 'declaration-empty-line-before': null, // order/properties-order [./order.cjs]
4
+ // https://gitlab.kadnk.ru/frontend/configs/-/issues/2
5
+ 'length-zero-no-unit': null,
6
+ },
7
7
  };
@@ -1,42 +1,42 @@
1
1
  import { propertyGroups } from './property-groups.js';
2
2
 
3
3
  export default {
4
- plugins: ['stylelint-order'],
5
- rules: {
6
- 'order/order': [
7
- [
8
- 'dollar-variables',
9
- 'custom-properties',
10
- 'declarations',
11
- {
12
- type: 'at-rule',
13
- name: 'supports',
14
- },
15
- 'rules',
16
- {
17
- type: 'at-rule',
18
- name: 'container',
19
- },
20
- {
21
- type: 'at-rule',
22
- name: 'media',
23
- },
24
- ],
25
- { severity: 'error' },
26
- ],
27
- 'order/properties-order': [
28
- propertyGroups.map((group) => {
29
- return {
30
- ...group,
31
- emptyLineBefore: 'always',
32
- noEmptyLineBetween: true,
33
- };
34
- }),
35
- {
36
- unspecified: 'bottom',
37
- emptyLineBeforeUnspecified: 'always',
38
- severity: 'error',
39
- },
40
- ],
41
- },
4
+ plugins: ['stylelint-order'],
5
+ rules: {
6
+ 'order/order': [
7
+ [
8
+ 'dollar-variables',
9
+ 'custom-properties',
10
+ 'declarations',
11
+ {
12
+ type: 'at-rule',
13
+ name: 'supports',
14
+ },
15
+ 'rules',
16
+ {
17
+ type: 'at-rule',
18
+ name: 'container',
19
+ },
20
+ {
21
+ type: 'at-rule',
22
+ name: 'media',
23
+ },
24
+ ],
25
+ { severity: 'error' },
26
+ ],
27
+ 'order/properties-order': [
28
+ propertyGroups.map((group) => {
29
+ return {
30
+ ...group,
31
+ emptyLineBefore: 'always',
32
+ noEmptyLineBetween: true,
33
+ };
34
+ }),
35
+ {
36
+ unspecified: 'bottom',
37
+ emptyLineBeforeUnspecified: 'always',
38
+ severity: 'error',
39
+ },
40
+ ],
41
+ },
42
42
  };