@flarian/frontend-preset 1.3.0 → 1.3.2

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 (129) hide show
  1. package/README.md +36 -2
  2. package/dist/eslint/config/all.cjs +5 -5
  3. package/dist/eslint/config/all.d.cts +7 -7
  4. package/dist/eslint/config/all.d.mts +7 -7
  5. package/dist/eslint/config/all.d.ts +7 -7
  6. package/dist/eslint/config/all.mjs +8 -8
  7. package/dist/eslint/config/base.cjs +7 -3
  8. package/dist/eslint/config/base.d.cts +1 -1
  9. package/dist/eslint/config/base.d.mts +1 -1
  10. package/dist/eslint/config/base.d.ts +1 -1
  11. package/dist/eslint/config/base.mjs +7 -3
  12. package/dist/eslint/config/imports.cjs +1 -1
  13. package/dist/eslint/config/imports.d.cts +1 -1
  14. package/dist/eslint/config/imports.d.mts +1 -1
  15. package/dist/eslint/config/imports.d.ts +1 -1
  16. package/dist/eslint/config/imports.mjs +1 -1
  17. package/dist/eslint/config/json.cjs +1 -1
  18. package/dist/eslint/config/json.d.cts +1 -1
  19. package/dist/eslint/config/json.d.mts +1 -1
  20. package/dist/eslint/config/json.d.ts +1 -1
  21. package/dist/eslint/config/json.mjs +1 -1
  22. package/dist/eslint/config/jsx.cjs +1 -1
  23. package/dist/eslint/config/jsx.d.cts +1 -1
  24. package/dist/eslint/config/jsx.d.mts +1 -1
  25. package/dist/eslint/config/jsx.d.ts +1 -1
  26. package/dist/eslint/config/jsx.mjs +1 -1
  27. package/dist/eslint/config/prettier.cjs +2 -2
  28. package/dist/eslint/config/prettier.d.cts +1 -1
  29. package/dist/eslint/config/prettier.d.mts +1 -1
  30. package/dist/eslint/config/prettier.d.ts +1 -1
  31. package/dist/eslint/config/prettier.mjs +2 -2
  32. package/dist/eslint/config/react.cjs +1 -1
  33. package/dist/eslint/config/react.d.cts +1 -1
  34. package/dist/eslint/config/react.d.mts +1 -1
  35. package/dist/eslint/config/react.d.ts +1 -1
  36. package/dist/eslint/config/react.mjs +1 -1
  37. package/dist/eslint/config/vue.cjs +2 -1
  38. package/dist/eslint/config/vue.d.cts +1 -1
  39. package/dist/eslint/config/vue.d.mts +1 -1
  40. package/dist/eslint/config/vue.d.ts +1 -1
  41. package/dist/eslint/config/vue.mjs +2 -1
  42. package/dist/eslint/index.cjs +8 -8
  43. package/dist/eslint/index.d.cts +8 -8
  44. package/dist/eslint/index.d.mts +8 -8
  45. package/dist/eslint/index.d.ts +8 -8
  46. package/dist/eslint/index.mjs +8 -8
  47. package/dist/index.cjs +4 -3
  48. package/dist/index.d.cts +4 -3
  49. package/dist/index.d.mts +4 -3
  50. package/dist/index.d.ts +4 -3
  51. package/dist/index.mjs +4 -3
  52. package/dist/prettier/config/all.cjs +6 -6
  53. package/dist/prettier/config/all.d.cts +36 -3
  54. package/dist/prettier/config/all.d.mts +36 -3
  55. package/dist/prettier/config/all.d.ts +36 -3
  56. package/dist/prettier/config/all.mjs +6 -6
  57. package/dist/prettier/config/base.cjs +1 -1
  58. package/dist/prettier/config/base.d.cts +1 -1
  59. package/dist/prettier/config/base.d.mts +1 -1
  60. package/dist/prettier/config/base.d.ts +1 -1
  61. package/dist/prettier/config/base.mjs +1 -1
  62. package/dist/prettier/config/pug.cjs +1 -1
  63. package/dist/prettier/config/pug.d.cts +1 -1
  64. package/dist/prettier/config/pug.d.mts +1 -1
  65. package/dist/prettier/config/pug.d.ts +1 -1
  66. package/dist/prettier/config/pug.mjs +1 -1
  67. package/dist/prettier/config/vue.cjs +1 -1
  68. package/dist/prettier/config/vue.d.cts +1 -1
  69. package/dist/prettier/config/vue.d.mts +1 -1
  70. package/dist/prettier/config/vue.d.ts +1 -1
  71. package/dist/prettier/config/vue.mjs +1 -1
  72. package/dist/prettier/config/yml.cjs +1 -1
  73. package/dist/prettier/config/yml.d.cts +1 -1
  74. package/dist/prettier/config/yml.d.mts +1 -1
  75. package/dist/prettier/config/yml.d.ts +1 -1
  76. package/dist/prettier/config/yml.mjs +1 -1
  77. package/dist/prettier/index.cjs +5 -5
  78. package/dist/prettier/index.d.cts +5 -5
  79. package/dist/prettier/index.d.mts +5 -5
  80. package/dist/prettier/index.d.ts +5 -5
  81. package/dist/prettier/index.mjs +5 -5
  82. package/dist/shared/frontend-preset.95FKUpmG.mjs +12 -0
  83. package/dist/shared/frontend-preset.BCCY-cfn.d.ts +22 -0
  84. package/dist/shared/frontend-preset.BGsd47Ct.d.mts +31 -0
  85. package/dist/shared/{frontend-preset.DwWnly25.cjs → frontend-preset.BH-HOAaq.cjs} +3 -3
  86. package/dist/shared/frontend-preset.BIs-w0C8.d.ts +16 -0
  87. package/dist/shared/frontend-preset.BJdJCa-t.d.ts +31 -0
  88. package/dist/shared/{frontend-preset.BPbLrmoT.cjs → frontend-preset.BeQLBkOj.cjs} +8 -8
  89. package/dist/shared/frontend-preset.Bfe6Dlal.d.mts +22 -0
  90. package/dist/shared/frontend-preset.Byc0_f39.d.cts +31 -0
  91. package/dist/shared/{frontend-preset.rpaOq_Gx.cjs → frontend-preset.D424bicL.cjs} +5 -5
  92. package/dist/shared/frontend-preset.DIpRniQQ.mjs +22 -0
  93. package/dist/shared/frontend-preset.Dz9eyMNC.d.cts +16 -0
  94. package/dist/shared/frontend-preset.WrSW9IWu.d.cts +22 -0
  95. package/dist/shared/frontend-preset.boYPITmk.mjs +16 -0
  96. package/dist/shared/frontend-preset.ub5JUkCJ.d.mts +16 -0
  97. package/dist/stylelint/config/all.cjs +3 -2
  98. package/dist/stylelint/config/all.d.cts +6 -92
  99. package/dist/stylelint/config/all.d.mts +6 -92
  100. package/dist/stylelint/config/all.d.ts +6 -92
  101. package/dist/stylelint/config/all.mjs +5 -4
  102. package/dist/stylelint/config/less.cjs +15 -3
  103. package/dist/stylelint/config/less.d.cts +4 -46
  104. package/dist/stylelint/config/less.d.mts +4 -46
  105. package/dist/stylelint/config/less.d.ts +4 -46
  106. package/dist/stylelint/config/less.mjs +14 -3
  107. package/dist/stylelint/config/scss.cjs +15 -3
  108. package/dist/stylelint/config/scss.d.cts +4 -46
  109. package/dist/stylelint/config/scss.d.mts +4 -46
  110. package/dist/stylelint/config/scss.d.ts +4 -46
  111. package/dist/stylelint/config/scss.mjs +14 -3
  112. package/dist/stylelint/index.cjs +4 -3
  113. package/dist/stylelint/index.d.cts +4 -3
  114. package/dist/stylelint/index.d.mts +4 -3
  115. package/dist/stylelint/index.d.ts +4 -3
  116. package/dist/stylelint/index.mjs +4 -3
  117. package/package.json +5 -3
  118. package/dist/shared/frontend-preset.0jMq7xRp.d.cts +0 -13
  119. package/dist/shared/frontend-preset.BOIuEWn5.d.cts +0 -23
  120. package/dist/shared/frontend-preset.BUZTYmRm.d.mts +0 -17
  121. package/dist/shared/frontend-preset.BqEaWEKy.d.cts +0 -17
  122. package/dist/shared/frontend-preset.CpuXgM2m.d.ts +0 -17
  123. package/dist/shared/frontend-preset.CtWMCAnj.d.ts +0 -23
  124. package/dist/shared/frontend-preset.DFe94ri5.mjs +0 -12
  125. package/dist/shared/frontend-preset.DdT5rVxR.mjs +0 -16
  126. package/dist/shared/frontend-preset.DrUk0z26.mjs +0 -22
  127. package/dist/shared/frontend-preset.LUquEVxB.d.ts +0 -13
  128. package/dist/shared/frontend-preset.XIsgQ85Y.d.mts +0 -23
  129. package/dist/shared/frontend-preset.bJz2J5gD.d.mts +0 -13
@@ -8,11 +8,11 @@ const prettier_config_yml = require('../prettier/config/yml.cjs');
8
8
 
9
9
  const index = {
10
10
  __proto__: null,
11
- all: prettier_config_all,
12
- base: prettier_config_base,
13
- pug: prettier_config_pug,
14
- vue: prettier_config_vue,
15
- yml: prettier_config_yml
11
+ all: prettier_config_all.all,
12
+ baseConfig: prettier_config_base.baseConfig,
13
+ pugConfig: prettier_config_pug.pugConfig,
14
+ vueConfig: prettier_config_vue.vueConfig,
15
+ ymlConfig: prettier_config_yml.ymlConfig
16
16
  };
17
17
 
18
18
  exports.index = index;
@@ -0,0 +1,22 @@
1
+ import { all } from '../eslint/config/all.mjs';
2
+ import { baseConfig } from '../eslint/config/base.mjs';
3
+ import { importsConfig } from '../eslint/config/imports.mjs';
4
+ import { jsonConfig } from '../eslint/config/json.mjs';
5
+ import { jsxConfig } from '../eslint/config/jsx.mjs';
6
+ import { prettierConfig } from '../eslint/config/prettier.mjs';
7
+ import { reactConfig } from '../eslint/config/react.mjs';
8
+ import { vueConfig } from '../eslint/config/vue.mjs';
9
+
10
+ const index = {
11
+ __proto__: null,
12
+ all: all,
13
+ baseConfig: baseConfig,
14
+ importsConfig: importsConfig,
15
+ jsonConfig: jsonConfig,
16
+ jsxConfig: jsxConfig,
17
+ prettierConfig: prettierConfig,
18
+ reactConfig: reactConfig,
19
+ vueConfig: vueConfig
20
+ };
21
+
22
+ export { index as i };
@@ -0,0 +1,16 @@
1
+ import { all } from '../stylelint/config/all.cjs';
2
+ import { lessConfig } from '../stylelint/config/less.cjs';
3
+ import { scssConfig } from '../stylelint/config/scss.cjs';
4
+
5
+ declare const index_all: typeof all;
6
+ declare const index_lessConfig: typeof lessConfig;
7
+ declare const index_scssConfig: typeof scssConfig;
8
+ declare namespace index {
9
+ export {
10
+ index_all as all,
11
+ index_lessConfig as lessConfig,
12
+ index_scssConfig as scssConfig,
13
+ };
14
+ }
15
+
16
+ export { index as i };
@@ -0,0 +1,22 @@
1
+ import { all } from '../prettier/config/all.cjs';
2
+ import { baseConfig } from '../prettier/config/base.cjs';
3
+ import { pugConfig } from '../prettier/config/pug.cjs';
4
+ import { vueConfig } from '../prettier/config/vue.cjs';
5
+ import { ymlConfig } from '../prettier/config/yml.cjs';
6
+
7
+ declare const index_all: typeof all;
8
+ declare const index_baseConfig: typeof baseConfig;
9
+ declare const index_pugConfig: typeof pugConfig;
10
+ declare const index_vueConfig: typeof vueConfig;
11
+ declare const index_ymlConfig: typeof ymlConfig;
12
+ declare namespace index {
13
+ export {
14
+ index_all as all,
15
+ index_baseConfig as baseConfig,
16
+ index_pugConfig as pugConfig,
17
+ index_vueConfig as vueConfig,
18
+ index_ymlConfig as ymlConfig,
19
+ };
20
+ }
21
+
22
+ export { index as i };
@@ -0,0 +1,16 @@
1
+ import { all } from '../prettier/config/all.mjs';
2
+ import { baseConfig } from '../prettier/config/base.mjs';
3
+ import { pugConfig } from '../prettier/config/pug.mjs';
4
+ import { vueConfig } from '../prettier/config/vue.mjs';
5
+ import { ymlConfig } from '../prettier/config/yml.mjs';
6
+
7
+ const index = {
8
+ __proto__: null,
9
+ all: all,
10
+ baseConfig: baseConfig,
11
+ pugConfig: pugConfig,
12
+ vueConfig: vueConfig,
13
+ ymlConfig: ymlConfig
14
+ };
15
+
16
+ export { index as i };
@@ -0,0 +1,16 @@
1
+ import { all } from '../stylelint/config/all.mjs';
2
+ import { lessConfig } from '../stylelint/config/less.mjs';
3
+ import { scssConfig } from '../stylelint/config/scss.mjs';
4
+
5
+ declare const index_all: typeof all;
6
+ declare const index_lessConfig: typeof lessConfig;
7
+ declare const index_scssConfig: typeof scssConfig;
8
+ declare namespace index {
9
+ export {
10
+ index_all as all,
11
+ index_lessConfig as lessConfig,
12
+ index_scssConfig as scssConfig,
13
+ };
14
+ }
15
+
16
+ export { index as i };
@@ -2,8 +2,9 @@
2
2
 
3
3
  const stylelint_config_less = require('./less.cjs');
4
4
  const stylelint_config_scss = require('./scss.cjs');
5
+ require('module');
5
6
  require('../../shared/frontend-preset.BhlqScTP.cjs');
6
7
 
7
- const all = { lessConfig: stylelint_config_less, scssConfig: stylelint_config_scss };
8
+ const all = { less: stylelint_config_less.lessConfig, scss: stylelint_config_scss.scssConfig };
8
9
 
9
- module.exports = all;
10
+ exports.all = all;
@@ -1,94 +1,8 @@
1
- declare const _default: {
2
- lessConfig: {
3
- plugins: string[];
4
- extends: string[];
5
- rules: {
6
- 'order/properties-order': ({
7
- groupName: number;
8
- emptyLineBefore: string;
9
- noEmptyLineBetween: boolean;
10
- properties: string[];
11
- }[] | {
12
- severity: string;
13
- unspecified: string;
14
- })[];
15
- 'order/order': (string | {
16
- type: string;
17
- name: string;
18
- mixin?: undefined;
19
- } | {
20
- type: string;
21
- mixin: boolean;
22
- name?: undefined;
23
- })[][];
24
- 'no-empty-source': (boolean | {
25
- message: string;
26
- })[];
27
- 'string-no-newline': (boolean | {
28
- message: string;
29
- })[];
30
- 'declaration-block-single-line-max-declarations': (number | {
31
- message: string;
32
- })[];
33
- 'function-name-case': (string | {
34
- message: string;
35
- })[];
36
- 'color-hex-length': (string | {
37
- message: string;
38
- })[];
39
- 'color-named': (string | {
40
- message: string;
41
- })[];
42
- 'custom-property-pattern': string;
43
- 'declaration-empty-line-before': null;
44
- 'declaration-property-value-no-unknown': null;
45
- };
46
- };
47
- scssConfig: {
48
- plugins: string[];
49
- extends: string[];
50
- rules: {
51
- 'order/properties-order': ({
52
- groupName: number;
53
- emptyLineBefore: string;
54
- noEmptyLineBetween: boolean;
55
- properties: string[];
56
- }[] | {
57
- severity: string;
58
- unspecified: string;
59
- })[];
60
- 'order/order': (string | {
61
- type: string;
62
- name: string;
63
- mixin?: undefined;
64
- } | {
65
- type: string;
66
- mixin: boolean;
67
- name?: undefined;
68
- })[][];
69
- 'no-empty-source': (boolean | {
70
- message: string;
71
- })[];
72
- 'string-no-newline': (boolean | {
73
- message: string;
74
- })[];
75
- 'declaration-block-single-line-max-declarations': (number | {
76
- message: string;
77
- })[];
78
- 'function-name-case': (string | {
79
- message: string;
80
- })[];
81
- 'color-hex-length': (string | {
82
- message: string;
83
- })[];
84
- 'color-named': (string | {
85
- message: string;
86
- })[];
87
- 'custom-property-pattern': string;
88
- 'declaration-empty-line-before': null;
89
- 'declaration-property-value-no-unknown': null;
90
- };
91
- };
1
+ import * as stylelint from 'stylelint';
2
+
3
+ declare const all: {
4
+ less: stylelint.Config;
5
+ scss: stylelint.Config;
92
6
  };
93
7
 
94
- export = _default;
8
+ export { all };
@@ -1,94 +1,8 @@
1
- declare const _default: {
2
- lessConfig: {
3
- plugins: string[];
4
- extends: string[];
5
- rules: {
6
- 'order/properties-order': ({
7
- groupName: number;
8
- emptyLineBefore: string;
9
- noEmptyLineBetween: boolean;
10
- properties: string[];
11
- }[] | {
12
- severity: string;
13
- unspecified: string;
14
- })[];
15
- 'order/order': (string | {
16
- type: string;
17
- name: string;
18
- mixin?: undefined;
19
- } | {
20
- type: string;
21
- mixin: boolean;
22
- name?: undefined;
23
- })[][];
24
- 'no-empty-source': (boolean | {
25
- message: string;
26
- })[];
27
- 'string-no-newline': (boolean | {
28
- message: string;
29
- })[];
30
- 'declaration-block-single-line-max-declarations': (number | {
31
- message: string;
32
- })[];
33
- 'function-name-case': (string | {
34
- message: string;
35
- })[];
36
- 'color-hex-length': (string | {
37
- message: string;
38
- })[];
39
- 'color-named': (string | {
40
- message: string;
41
- })[];
42
- 'custom-property-pattern': string;
43
- 'declaration-empty-line-before': null;
44
- 'declaration-property-value-no-unknown': null;
45
- };
46
- };
47
- scssConfig: {
48
- plugins: string[];
49
- extends: string[];
50
- rules: {
51
- 'order/properties-order': ({
52
- groupName: number;
53
- emptyLineBefore: string;
54
- noEmptyLineBetween: boolean;
55
- properties: string[];
56
- }[] | {
57
- severity: string;
58
- unspecified: string;
59
- })[];
60
- 'order/order': (string | {
61
- type: string;
62
- name: string;
63
- mixin?: undefined;
64
- } | {
65
- type: string;
66
- mixin: boolean;
67
- name?: undefined;
68
- })[][];
69
- 'no-empty-source': (boolean | {
70
- message: string;
71
- })[];
72
- 'string-no-newline': (boolean | {
73
- message: string;
74
- })[];
75
- 'declaration-block-single-line-max-declarations': (number | {
76
- message: string;
77
- })[];
78
- 'function-name-case': (string | {
79
- message: string;
80
- })[];
81
- 'color-hex-length': (string | {
82
- message: string;
83
- })[];
84
- 'color-named': (string | {
85
- message: string;
86
- })[];
87
- 'custom-property-pattern': string;
88
- 'declaration-empty-line-before': null;
89
- 'declaration-property-value-no-unknown': null;
90
- };
91
- };
1
+ import * as stylelint from 'stylelint';
2
+
3
+ declare const all: {
4
+ less: stylelint.Config;
5
+ scss: stylelint.Config;
92
6
  };
93
7
 
94
- export { _default as default };
8
+ export { all };
@@ -1,94 +1,8 @@
1
- declare const _default: {
2
- lessConfig: {
3
- plugins: string[];
4
- extends: string[];
5
- rules: {
6
- 'order/properties-order': ({
7
- groupName: number;
8
- emptyLineBefore: string;
9
- noEmptyLineBetween: boolean;
10
- properties: string[];
11
- }[] | {
12
- severity: string;
13
- unspecified: string;
14
- })[];
15
- 'order/order': (string | {
16
- type: string;
17
- name: string;
18
- mixin?: undefined;
19
- } | {
20
- type: string;
21
- mixin: boolean;
22
- name?: undefined;
23
- })[][];
24
- 'no-empty-source': (boolean | {
25
- message: string;
26
- })[];
27
- 'string-no-newline': (boolean | {
28
- message: string;
29
- })[];
30
- 'declaration-block-single-line-max-declarations': (number | {
31
- message: string;
32
- })[];
33
- 'function-name-case': (string | {
34
- message: string;
35
- })[];
36
- 'color-hex-length': (string | {
37
- message: string;
38
- })[];
39
- 'color-named': (string | {
40
- message: string;
41
- })[];
42
- 'custom-property-pattern': string;
43
- 'declaration-empty-line-before': null;
44
- 'declaration-property-value-no-unknown': null;
45
- };
46
- };
47
- scssConfig: {
48
- plugins: string[];
49
- extends: string[];
50
- rules: {
51
- 'order/properties-order': ({
52
- groupName: number;
53
- emptyLineBefore: string;
54
- noEmptyLineBetween: boolean;
55
- properties: string[];
56
- }[] | {
57
- severity: string;
58
- unspecified: string;
59
- })[];
60
- 'order/order': (string | {
61
- type: string;
62
- name: string;
63
- mixin?: undefined;
64
- } | {
65
- type: string;
66
- mixin: boolean;
67
- name?: undefined;
68
- })[][];
69
- 'no-empty-source': (boolean | {
70
- message: string;
71
- })[];
72
- 'string-no-newline': (boolean | {
73
- message: string;
74
- })[];
75
- 'declaration-block-single-line-max-declarations': (number | {
76
- message: string;
77
- })[];
78
- 'function-name-case': (string | {
79
- message: string;
80
- })[];
81
- 'color-hex-length': (string | {
82
- message: string;
83
- })[];
84
- 'color-named': (string | {
85
- message: string;
86
- })[];
87
- 'custom-property-pattern': string;
88
- 'declaration-empty-line-before': null;
89
- 'declaration-property-value-no-unknown': null;
90
- };
91
- };
1
+ import * as stylelint from 'stylelint';
2
+
3
+ declare const all: {
4
+ less: stylelint.Config;
5
+ scss: stylelint.Config;
92
6
  };
93
7
 
94
- export = _default;
8
+ export { all };
@@ -1,7 +1,8 @@
1
- import lessConfig from './less.mjs';
2
- import scssConfig from './scss.mjs';
1
+ import { lessConfig } from './less.mjs';
2
+ import { scssConfig } from './scss.mjs';
3
+ import 'module';
3
4
  import '../../shared/frontend-preset.UJ8T0exL.mjs';
4
5
 
5
- const all = { lessConfig, scssConfig };
6
+ const all = { less: lessConfig, scss: scssConfig };
6
7
 
7
- export { all as default };
8
+ export { all };
@@ -1,10 +1,22 @@
1
1
  'use strict';
2
2
 
3
+ const module$1 = require('module');
3
4
  const orderGroups = require('../../shared/frontend-preset.BhlqScTP.cjs');
4
5
 
6
+ var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
7
+ const require$1 = module$1.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('stylelint/config/less.cjs', document.baseURI).href)));
8
+ const stylelintPlugins = {
9
+ order: require$1.resolve("stylelint-order"),
10
+ less: require$1.resolve("stylelint-less")
11
+ };
12
+ const stylelintConfig = {
13
+ standard: require$1.resolve("stylelint-config-standard"),
14
+ standardLess: require$1.resolve("stylelint-config-standard-less"),
15
+ recommendedVue: require$1.resolve("stylelint-config-recommended-vue")
16
+ };
5
17
  const lessConfig = {
6
- plugins: ["stylelint-order", "stylelint-less"],
7
- extends: ["stylelint-config-standard", "stylelint-config-standard-less", "stylelint-config-recommended-vue"],
18
+ plugins: [stylelintPlugins.order, stylelintPlugins.less],
19
+ extends: [stylelintConfig.standard, stylelintConfig.standardLess, stylelintConfig.recommendedVue],
8
20
  rules: {
9
21
  ...orderGroups.baseRules,
10
22
  ...orderGroups.orderRules,
@@ -12,4 +24,4 @@ const lessConfig = {
12
24
  }
13
25
  };
14
26
 
15
- module.exports = lessConfig;
27
+ exports.lessConfig = lessConfig;
@@ -1,47 +1,5 @@
1
- declare const lessConfig: {
2
- plugins: string[];
3
- extends: string[];
4
- rules: {
5
- 'order/properties-order': ({
6
- groupName: number;
7
- emptyLineBefore: string;
8
- noEmptyLineBetween: boolean;
9
- properties: string[];
10
- }[] | {
11
- severity: string;
12
- unspecified: string;
13
- })[];
14
- 'order/order': (string | {
15
- type: string;
16
- name: string;
17
- mixin?: undefined;
18
- } | {
19
- type: string;
20
- mixin: boolean;
21
- name?: undefined;
22
- })[][];
23
- 'no-empty-source': (boolean | {
24
- message: string;
25
- })[];
26
- 'string-no-newline': (boolean | {
27
- message: string;
28
- })[];
29
- 'declaration-block-single-line-max-declarations': (number | {
30
- message: string;
31
- })[];
32
- 'function-name-case': (string | {
33
- message: string;
34
- })[];
35
- 'color-hex-length': (string | {
36
- message: string;
37
- })[];
38
- 'color-named': (string | {
39
- message: string;
40
- })[];
41
- 'custom-property-pattern': string;
42
- 'declaration-empty-line-before': null;
43
- 'declaration-property-value-no-unknown': null;
44
- };
45
- };
1
+ import { Config } from 'stylelint';
46
2
 
47
- export = lessConfig;
3
+ declare const lessConfig: Config;
4
+
5
+ export { lessConfig };
@@ -1,47 +1,5 @@
1
- declare const lessConfig: {
2
- plugins: string[];
3
- extends: string[];
4
- rules: {
5
- 'order/properties-order': ({
6
- groupName: number;
7
- emptyLineBefore: string;
8
- noEmptyLineBetween: boolean;
9
- properties: string[];
10
- }[] | {
11
- severity: string;
12
- unspecified: string;
13
- })[];
14
- 'order/order': (string | {
15
- type: string;
16
- name: string;
17
- mixin?: undefined;
18
- } | {
19
- type: string;
20
- mixin: boolean;
21
- name?: undefined;
22
- })[][];
23
- 'no-empty-source': (boolean | {
24
- message: string;
25
- })[];
26
- 'string-no-newline': (boolean | {
27
- message: string;
28
- })[];
29
- 'declaration-block-single-line-max-declarations': (number | {
30
- message: string;
31
- })[];
32
- 'function-name-case': (string | {
33
- message: string;
34
- })[];
35
- 'color-hex-length': (string | {
36
- message: string;
37
- })[];
38
- 'color-named': (string | {
39
- message: string;
40
- })[];
41
- 'custom-property-pattern': string;
42
- 'declaration-empty-line-before': null;
43
- 'declaration-property-value-no-unknown': null;
44
- };
45
- };
1
+ import { Config } from 'stylelint';
46
2
 
47
- export { lessConfig as default };
3
+ declare const lessConfig: Config;
4
+
5
+ export { lessConfig };
@@ -1,47 +1,5 @@
1
- declare const lessConfig: {
2
- plugins: string[];
3
- extends: string[];
4
- rules: {
5
- 'order/properties-order': ({
6
- groupName: number;
7
- emptyLineBefore: string;
8
- noEmptyLineBetween: boolean;
9
- properties: string[];
10
- }[] | {
11
- severity: string;
12
- unspecified: string;
13
- })[];
14
- 'order/order': (string | {
15
- type: string;
16
- name: string;
17
- mixin?: undefined;
18
- } | {
19
- type: string;
20
- mixin: boolean;
21
- name?: undefined;
22
- })[][];
23
- 'no-empty-source': (boolean | {
24
- message: string;
25
- })[];
26
- 'string-no-newline': (boolean | {
27
- message: string;
28
- })[];
29
- 'declaration-block-single-line-max-declarations': (number | {
30
- message: string;
31
- })[];
32
- 'function-name-case': (string | {
33
- message: string;
34
- })[];
35
- 'color-hex-length': (string | {
36
- message: string;
37
- })[];
38
- 'color-named': (string | {
39
- message: string;
40
- })[];
41
- 'custom-property-pattern': string;
42
- 'declaration-empty-line-before': null;
43
- 'declaration-property-value-no-unknown': null;
44
- };
45
- };
1
+ import { Config } from 'stylelint';
46
2
 
47
- export = lessConfig;
3
+ declare const lessConfig: Config;
4
+
5
+ export { lessConfig };
@@ -1,8 +1,19 @@
1
+ import { createRequire } from 'module';
1
2
  import { o as orderGroupsRules, a as orderRules, b as baseRules } from '../../shared/frontend-preset.UJ8T0exL.mjs';
2
3
 
4
+ const require = createRequire(import.meta.url);
5
+ const stylelintPlugins = {
6
+ order: require.resolve("stylelint-order"),
7
+ less: require.resolve("stylelint-less")
8
+ };
9
+ const stylelintConfig = {
10
+ standard: require.resolve("stylelint-config-standard"),
11
+ standardLess: require.resolve("stylelint-config-standard-less"),
12
+ recommendedVue: require.resolve("stylelint-config-recommended-vue")
13
+ };
3
14
  const lessConfig = {
4
- plugins: ["stylelint-order", "stylelint-less"],
5
- extends: ["stylelint-config-standard", "stylelint-config-standard-less", "stylelint-config-recommended-vue"],
15
+ plugins: [stylelintPlugins.order, stylelintPlugins.less],
16
+ extends: [stylelintConfig.standard, stylelintConfig.standardLess, stylelintConfig.recommendedVue],
6
17
  rules: {
7
18
  ...baseRules,
8
19
  ...orderRules,
@@ -10,4 +21,4 @@ const lessConfig = {
10
21
  }
11
22
  };
12
23
 
13
- export { lessConfig as default };
24
+ export { lessConfig };