@flarian/frontend-preset 1.3.1 → 1.3.3

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 (35) hide show
  1. package/README.md +51 -5
  2. package/dist/eslint/config/base.cjs +7 -10
  3. package/dist/eslint/config/base.mjs +7 -10
  4. package/dist/eslint/config/vue.cjs +0 -1
  5. package/dist/eslint/config/vue.mjs +0 -1
  6. package/dist/index.cjs +2 -1
  7. package/dist/index.d.cts +1 -0
  8. package/dist/index.d.mts +1 -0
  9. package/dist/index.d.ts +1 -0
  10. package/dist/index.mjs +2 -1
  11. package/dist/prettier/config/pug.cjs +2 -1
  12. package/dist/prettier/config/pug.mjs +2 -1
  13. package/dist/shared/{frontend-preset.UJ8T0exL.mjs → frontend-preset.B7y_D1uK.mjs} +1 -1
  14. package/dist/shared/{frontend-preset.BhlqScTP.cjs → frontend-preset.DMaf4UkQ.cjs} +1 -1
  15. package/dist/stylelint/config/all.cjs +2 -1
  16. package/dist/stylelint/config/all.d.cts +4 -90
  17. package/dist/stylelint/config/all.d.mts +4 -90
  18. package/dist/stylelint/config/all.d.ts +4 -90
  19. package/dist/stylelint/config/all.mjs +2 -1
  20. package/dist/stylelint/config/less.cjs +15 -3
  21. package/dist/stylelint/config/less.d.cts +3 -45
  22. package/dist/stylelint/config/less.d.mts +3 -45
  23. package/dist/stylelint/config/less.d.ts +3 -45
  24. package/dist/stylelint/config/less.mjs +14 -3
  25. package/dist/stylelint/config/scss.cjs +15 -3
  26. package/dist/stylelint/config/scss.d.cts +3 -45
  27. package/dist/stylelint/config/scss.d.mts +3 -45
  28. package/dist/stylelint/config/scss.d.ts +3 -45
  29. package/dist/stylelint/config/scss.mjs +14 -3
  30. package/dist/stylelint/index.cjs +2 -1
  31. package/dist/stylelint/index.d.cts +1 -0
  32. package/dist/stylelint/index.d.mts +1 -0
  33. package/dist/stylelint/index.d.ts +1 -0
  34. package/dist/stylelint/index.mjs +2 -1
  35. package/package.json +3 -2
package/README.md CHANGED
@@ -16,7 +16,41 @@
16
16
 
17
17
  ## Установка
18
18
  ```sh
19
- pnpm add @flarian/frontend-preset
19
+ pnpm add @flarian/frontend-preset eslint prettier stylelint -D
20
+ ```
21
+
22
+ ## tsconfig.json
23
+ ```json
24
+ {
25
+ "compilerOptions": {
26
+ "target": "esnext",
27
+ "module": "esnext",
28
+ "moduleResolution": "node",
29
+ "esModuleInterop": true,
30
+ "strict": true,
31
+ "strictNullChecks": true,
32
+ "noUnusedLocals": true,
33
+ "jsx": "preserve",
34
+ "resolveJsonModule": true,
35
+ "outDir": "dist",
36
+ "baseUrl": ".",
37
+ "declaration": true,
38
+ "declarationMap": true,
39
+ },
40
+ }
41
+ ```
42
+
43
+ ## Для поддержки PUG синтаксиса в .vue:
44
+ ```sh
45
+ pnpm add pug @vue/language-plugin-pug -D
46
+ ```
47
+ Добавить в tsconfig.json:
48
+ ```json
49
+ {
50
+ "vueCompilerOptions": {
51
+ "plugins": ["@vue/language-plugin-pug"]
52
+ },
53
+ }
20
54
  ```
21
55
 
22
56
  ## Расширения vsCode:
@@ -26,7 +60,8 @@ pnpm add @flarian/frontend-preset
26
60
  - [EditorConfig](https://marketplace.visualstudio.com/items?itemName=EditorConfig.EditorConfig)
27
61
 
28
62
  ## Примеры конфигураций:
29
- ### eslint.config.ts
63
+ ### Настройка ESLint
64
+ #### eslint.config.ts
30
65
  ```ts
31
66
  import { all } from '@flarian/frontend-preset/eslint';
32
67
 
@@ -37,22 +72,33 @@ export default [
37
72
  ignores: ['dist/**', 'node_modules/**', 'pnpm-lock.yaml'],
38
73
  },
39
74
  ];
75
+ ```
76
+
77
+ ---
40
78
 
79
+ ### Настройка prettier
80
+ - Если вы не используете синтаксис pug в вашем vue проекте то вы можете пропустить этот шаг.
81
+ - Если вы используете Pug в Vue проекте, то необходимо добавить зависимость @prettier/plugin-pug в ваш проект и определить конфигурацию prettier.config.mjs:
82
+ ```sh
83
+ pnpm add @prettier/plugin-pug -D
41
84
  ```
42
85
 
43
- ### prettier.config.mjs
86
+ #### prettier.config.mjs
44
87
  ```js
45
88
  import { all } from '@flarian/frontend-preset/prettier';
46
89
 
47
90
  export default all;
48
91
  ```
49
92
 
50
- ### stylelint.config.mjs
93
+ ---
94
+
95
+ ### Настройка stylelint
96
+ #### stylelint.config.mjs
51
97
  ```js
52
98
  import { all } from '@flarian/frontend-preset/stylelint';
53
99
 
54
100
  export default {
55
- extends: [all.lessConfig, all.scssConfig],
101
+ extends: [all.less, all.scss],
56
102
  };
57
103
  ```
58
104
 
@@ -18,6 +18,7 @@ const esLintJavaScriptRules = {
18
18
  "arrow-body-style": ["error", "as-needed"],
19
19
  curly: "error",
20
20
  "func-names": ["error", "always"],
21
+ "no-undef": "off",
21
22
  "no-alert": "error",
22
23
  "no-console": "error",
23
24
  "no-var": "error",
@@ -562,22 +563,18 @@ const esLintStylisticRules = {
562
563
  const esLintTypeScriptRules = {
563
564
  files: ["**/*.{ts,tsx,vue}"],
564
565
  languageOptions: {
565
- parser: tsPlugin__default.parser
566
+ parserOptions: {
567
+ parser: tsPlugin__default.parser
568
+ }
566
569
  },
567
570
  plugins: {
568
571
  "@typescript-eslint": tsPlugin__default.plugin
569
572
  },
570
573
  rules: {
571
- "no-unused-vars": "off",
572
- "@typescript-eslint/consistent-type-definitions": ["error", "type"],
574
+ "@typescript-eslint/consistent-type-definitions": "off",
573
575
  "@typescript-eslint/no-shadow": "error",
574
- "@typescript-eslint/no-unused-vars": [
575
- "error",
576
- {
577
- argsIgnorePattern: "^_",
578
- varsIgnorePattern: "^_"
579
- }
580
- ]
576
+ "@typescript-eslint/no-unused-vars": "off",
577
+ "@typescript-eslint/no-namespace": "off"
581
578
  }
582
579
  };
583
580
 
@@ -9,6 +9,7 @@ const esLintJavaScriptRules = {
9
9
  "arrow-body-style": ["error", "as-needed"],
10
10
  curly: "error",
11
11
  "func-names": ["error", "always"],
12
+ "no-undef": "off",
12
13
  "no-alert": "error",
13
14
  "no-console": "error",
14
15
  "no-var": "error",
@@ -553,22 +554,18 @@ const esLintStylisticRules = {
553
554
  const esLintTypeScriptRules = {
554
555
  files: ["**/*.{ts,tsx,vue}"],
555
556
  languageOptions: {
556
- parser: tsPlugin.parser
557
+ parserOptions: {
558
+ parser: tsPlugin.parser
559
+ }
557
560
  },
558
561
  plugins: {
559
562
  "@typescript-eslint": tsPlugin.plugin
560
563
  },
561
564
  rules: {
562
- "no-unused-vars": "off",
563
- "@typescript-eslint/consistent-type-definitions": ["error", "type"],
565
+ "@typescript-eslint/consistent-type-definitions": "off",
564
566
  "@typescript-eslint/no-shadow": "error",
565
- "@typescript-eslint/no-unused-vars": [
566
- "error",
567
- {
568
- argsIgnorePattern: "^_",
569
- varsIgnorePattern: "^_"
570
- }
571
- ]
567
+ "@typescript-eslint/no-unused-vars": "off",
568
+ "@typescript-eslint/no-namespace": "off"
572
569
  }
573
570
  };
574
571
 
@@ -18,7 +18,6 @@ const esLintVueRules = {
18
18
  },
19
19
  rules: {
20
20
  "vue/multi-word-component-names": "off",
21
- "vue/script-setup-uses-vars": "error",
22
21
  "vue/html-indent": [
23
22
  "warn",
24
23
  "tab",
@@ -11,7 +11,6 @@ const esLintVueRules = {
11
11
  },
12
12
  rules: {
13
13
  "vue/multi-word-component-names": "off",
14
- "vue/script-setup-uses-vars": "error",
15
14
  "vue/html-indent": [
16
15
  "warn",
17
16
  "tab",
package/dist/index.cjs CHANGED
@@ -30,7 +30,8 @@ require('./prettier/config/vue.cjs');
30
30
  require('./prettier/config/yml.cjs');
31
31
  require('./stylelint/config/all.cjs');
32
32
  require('./stylelint/config/less.cjs');
33
- require('./shared/frontend-preset.BhlqScTP.cjs');
33
+ require('module');
34
+ require('./shared/frontend-preset.DMaf4UkQ.cjs');
34
35
  require('./stylelint/config/scss.cjs');
35
36
 
36
37
 
package/dist/index.d.cts CHANGED
@@ -17,5 +17,6 @@ import './prettier/config/pug.cjs';
17
17
  import './prettier/config/vue.cjs';
18
18
  import './prettier/config/yml.cjs';
19
19
  import './stylelint/config/all.cjs';
20
+ import 'stylelint';
20
21
  import './stylelint/config/less.cjs';
21
22
  import './stylelint/config/scss.cjs';
package/dist/index.d.mts CHANGED
@@ -17,5 +17,6 @@ import './prettier/config/pug.mjs';
17
17
  import './prettier/config/vue.mjs';
18
18
  import './prettier/config/yml.mjs';
19
19
  import './stylelint/config/all.mjs';
20
+ import 'stylelint';
20
21
  import './stylelint/config/less.mjs';
21
22
  import './stylelint/config/scss.mjs';
package/dist/index.d.ts CHANGED
@@ -17,5 +17,6 @@ import './prettier/config/pug.js';
17
17
  import './prettier/config/vue.js';
18
18
  import './prettier/config/yml.js';
19
19
  import './stylelint/config/all.js';
20
+ import 'stylelint';
20
21
  import './stylelint/config/less.js';
21
22
  import './stylelint/config/scss.js';
package/dist/index.mjs CHANGED
@@ -28,5 +28,6 @@ import './prettier/config/vue.mjs';
28
28
  import './prettier/config/yml.mjs';
29
29
  import './stylelint/config/all.mjs';
30
30
  import './stylelint/config/less.mjs';
31
- import './shared/frontend-preset.UJ8T0exL.mjs';
31
+ import 'module';
32
+ import './shared/frontend-preset.B7y_D1uK.mjs';
32
33
  import './stylelint/config/scss.mjs';
@@ -6,7 +6,8 @@ const pugConfig = {
6
6
  pugSortAttributes: "asc",
7
7
  pugClassNotation: "attribute",
8
8
  pugClassLocation: "before-attributes",
9
- pugIdNotation: "literal",
9
+ pugIdNotation: "as-is",
10
+ pugIdLocation: "before-attributes",
10
11
  pugExplicitDiv: false,
11
12
  pugSingleFileComponentIndentation: false,
12
13
  pugAttributeSeparator: "always",
@@ -4,7 +4,8 @@ const pugConfig = {
4
4
  pugSortAttributes: "asc",
5
5
  pugClassNotation: "attribute",
6
6
  pugClassLocation: "before-attributes",
7
- pugIdNotation: "literal",
7
+ pugIdNotation: "as-is",
8
+ pugIdLocation: "before-attributes",
8
9
  pugExplicitDiv: false,
9
10
  pugSingleFileComponentIndentation: false,
10
11
  pugAttributeSeparator: "always",
@@ -16,7 +16,7 @@ const baseRules = {
16
16
  ],
17
17
  "color-hex-length": ["long", { message: "\u0417\u0430\u043F\u0440\u0435\u0449\u0430\u0435\u043C \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u0438\u0435 \u043A\u043E\u0440\u043E\u0434\u043A\u0438\u0445 hex \u0446\u0432\u0435\u0442\u043E\u0432" }],
18
18
  "color-named": ["never", { message: "\u0417\u0430\u043F\u0440\u0435\u0449\u0430\u0435\u043C \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u0438\u0435 \u0438\u043C\u0435\u043D\u043E\u0432\u0430\u043D\u043D\u044B\u0445 \u0446\u0432\u0435\u0442\u043E\u0432" }],
19
- "custom-property-pattern": "^[A-z0-9]+(__[A-z0-9]+)*$",
19
+ "custom-property-pattern": "^[-_A-z0-9]*$",
20
20
  "declaration-empty-line-before": null,
21
21
  "declaration-property-value-no-unknown": null
22
22
  };
@@ -18,7 +18,7 @@ const baseRules = {
18
18
  ],
19
19
  "color-hex-length": ["long", { message: "\u0417\u0430\u043F\u0440\u0435\u0449\u0430\u0435\u043C \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u0438\u0435 \u043A\u043E\u0440\u043E\u0434\u043A\u0438\u0445 hex \u0446\u0432\u0435\u0442\u043E\u0432" }],
20
20
  "color-named": ["never", { message: "\u0417\u0430\u043F\u0440\u0435\u0449\u0430\u0435\u043C \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u0438\u0435 \u0438\u043C\u0435\u043D\u043E\u0432\u0430\u043D\u043D\u044B\u0445 \u0446\u0432\u0435\u0442\u043E\u0432" }],
21
- "custom-property-pattern": "^[A-z0-9]+(__[A-z0-9]+)*$",
21
+ "custom-property-pattern": "^[-_A-z0-9]*$",
22
22
  "declaration-empty-line-before": null,
23
23
  "declaration-property-value-no-unknown": null
24
24
  };
@@ -2,7 +2,8 @@
2
2
 
3
3
  const stylelint_config_less = require('./less.cjs');
4
4
  const stylelint_config_scss = require('./scss.cjs');
5
- require('../../shared/frontend-preset.BhlqScTP.cjs');
5
+ require('module');
6
+ require('../../shared/frontend-preset.DMaf4UkQ.cjs');
6
7
 
7
8
  const all = { less: stylelint_config_less.lessConfig, scss: stylelint_config_scss.scssConfig };
8
9
 
@@ -1,94 +1,8 @@
1
+ import * as stylelint from 'stylelint';
2
+
1
3
  declare const all: {
2
- less: {
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
- scss: {
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
- };
4
+ less: stylelint.Config;
5
+ scss: stylelint.Config;
92
6
  };
93
7
 
94
8
  export { all };
@@ -1,94 +1,8 @@
1
+ import * as stylelint from 'stylelint';
2
+
1
3
  declare const all: {
2
- less: {
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
- scss: {
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
- };
4
+ less: stylelint.Config;
5
+ scss: stylelint.Config;
92
6
  };
93
7
 
94
8
  export { all };
@@ -1,94 +1,8 @@
1
+ import * as stylelint from 'stylelint';
2
+
1
3
  declare const all: {
2
- less: {
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
- scss: {
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
- };
4
+ less: stylelint.Config;
5
+ scss: stylelint.Config;
92
6
  };
93
7
 
94
8
  export { all };
@@ -1,6 +1,7 @@
1
1
  import { lessConfig } from './less.mjs';
2
2
  import { scssConfig } from './scss.mjs';
3
- import '../../shared/frontend-preset.UJ8T0exL.mjs';
3
+ import 'module';
4
+ import '../../shared/frontend-preset.B7y_D1uK.mjs';
4
5
 
5
6
  const all = { less: lessConfig, scss: scssConfig };
6
7
 
@@ -1,10 +1,22 @@
1
1
  'use strict';
2
2
 
3
- const orderGroups = require('../../shared/frontend-preset.BhlqScTP.cjs');
3
+ const module$1 = require('module');
4
+ const orderGroups = require('../../shared/frontend-preset.DMaf4UkQ.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,
@@ -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';
2
+
3
+ declare const lessConfig: Config;
46
4
 
47
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';
2
+
3
+ declare const lessConfig: Config;
46
4
 
47
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';
2
+
3
+ declare const lessConfig: Config;
46
4
 
47
5
  export { lessConfig };
@@ -1,8 +1,19 @@
1
- import { o as orderGroupsRules, a as orderRules, b as baseRules } from '../../shared/frontend-preset.UJ8T0exL.mjs';
1
+ import { createRequire } from 'module';
2
+ import { o as orderGroupsRules, a as orderRules, b as baseRules } from '../../shared/frontend-preset.B7y_D1uK.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,
@@ -1,10 +1,22 @@
1
1
  'use strict';
2
2
 
3
- const orderGroups = require('../../shared/frontend-preset.BhlqScTP.cjs');
3
+ const module$1 = require('module');
4
+ const orderGroups = require('../../shared/frontend-preset.DMaf4UkQ.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/scss.cjs', document.baseURI).href)));
8
+ const stylelintPlugins = {
9
+ order: require$1.resolve("stylelint-order"),
10
+ scss: require$1.resolve("stylelint-scss")
11
+ };
12
+ const stylelintConfig = {
13
+ standard: require$1.resolve("stylelint-config-standard"),
14
+ standardScss: require$1.resolve("stylelint-config-standard-scss"),
15
+ recommendedVue: require$1.resolve("stylelint-config-recommended-vue")
16
+ };
5
17
  const scssConfig = {
6
- plugins: ["stylelint-order", "stylelint-scss"],
7
- extends: ["stylelint-config-standard", "stylelint-config-standard-scss", "stylelint-config-recommended-vue"],
18
+ plugins: [stylelintPlugins.order, stylelintPlugins.scss],
19
+ extends: [stylelintConfig.standard, stylelintConfig.standardScss, stylelintConfig.recommendedVue],
8
20
  rules: {
9
21
  ...orderGroups.baseRules,
10
22
  ...orderGroups.orderRules,
@@ -1,47 +1,5 @@
1
- declare const scssConfig: {
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';
2
+
3
+ declare const scssConfig: Config;
46
4
 
47
5
  export { scssConfig };
@@ -1,47 +1,5 @@
1
- declare const scssConfig: {
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';
2
+
3
+ declare const scssConfig: Config;
46
4
 
47
5
  export { scssConfig };
@@ -1,47 +1,5 @@
1
- declare const scssConfig: {
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';
2
+
3
+ declare const scssConfig: Config;
46
4
 
47
5
  export { scssConfig };
@@ -1,8 +1,19 @@
1
- import { o as orderGroupsRules, a as orderRules, b as baseRules } from '../../shared/frontend-preset.UJ8T0exL.mjs';
1
+ import { createRequire } from 'module';
2
+ import { o as orderGroupsRules, a as orderRules, b as baseRules } from '../../shared/frontend-preset.B7y_D1uK.mjs';
2
3
 
4
+ const require = createRequire(import.meta.url);
5
+ const stylelintPlugins = {
6
+ order: require.resolve("stylelint-order"),
7
+ scss: require.resolve("stylelint-scss")
8
+ };
9
+ const stylelintConfig = {
10
+ standard: require.resolve("stylelint-config-standard"),
11
+ standardScss: require.resolve("stylelint-config-standard-scss"),
12
+ recommendedVue: require.resolve("stylelint-config-recommended-vue")
13
+ };
3
14
  const scssConfig = {
4
- plugins: ["stylelint-order", "stylelint-scss"],
5
- extends: ["stylelint-config-standard", "stylelint-config-standard-scss", "stylelint-config-recommended-vue"],
15
+ plugins: [stylelintPlugins.order, stylelintPlugins.scss],
16
+ extends: [stylelintConfig.standard, stylelintConfig.standardScss, stylelintConfig.recommendedVue],
6
17
  rules: {
7
18
  ...baseRules,
8
19
  ...orderRules,
@@ -3,7 +3,8 @@
3
3
  const stylelint_config_all = require('./config/all.cjs');
4
4
  const stylelint_config_less = require('./config/less.cjs');
5
5
  const stylelint_config_scss = require('./config/scss.cjs');
6
- require('../shared/frontend-preset.BhlqScTP.cjs');
6
+ require('module');
7
+ require('../shared/frontend-preset.DMaf4UkQ.cjs');
7
8
 
8
9
 
9
10
 
@@ -1,3 +1,4 @@
1
1
  export { all } from './config/all.cjs';
2
2
  export { lessConfig } from './config/less.cjs';
3
3
  export { scssConfig } from './config/scss.cjs';
4
+ import 'stylelint';
@@ -1,3 +1,4 @@
1
1
  export { all } from './config/all.mjs';
2
2
  export { lessConfig } from './config/less.mjs';
3
3
  export { scssConfig } from './config/scss.mjs';
4
+ import 'stylelint';
@@ -1,3 +1,4 @@
1
1
  export { all } from './config/all.js';
2
2
  export { lessConfig } from './config/less.js';
3
3
  export { scssConfig } from './config/scss.js';
4
+ import 'stylelint';
@@ -1,4 +1,5 @@
1
1
  export { all } from './config/all.mjs';
2
2
  export { lessConfig } from './config/less.mjs';
3
3
  export { scssConfig } from './config/scss.mjs';
4
- import '../shared/frontend-preset.UJ8T0exL.mjs';
4
+ import 'module';
5
+ import '../shared/frontend-preset.B7y_D1uK.mjs';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flarian/frontend-preset",
3
- "version": "1.3.1",
3
+ "version": "1.3.3",
4
4
  "license": "MIT",
5
5
  "description": "Frontend preset with ESLint 9 flat config and Stylelint",
6
6
  "author": "FlarianWeb",
@@ -61,7 +61,7 @@
61
61
  "dist"
62
62
  ],
63
63
  "scripts": {
64
- "build": "unbuild",
64
+ "build": "NODE_OPTIONS=\"--max-old-space-size=4096\" unbuild",
65
65
  "lint": "eslint",
66
66
  "typecheck": "tsc --noEmit",
67
67
  "pack:local": "pnpm build && pnpm pack"
@@ -79,6 +79,7 @@
79
79
  "@semantic-release/npm": "12.0.2",
80
80
  "@stylistic/eslint-plugin": "5.3.1",
81
81
  "@types/eslint": "9.6.1",
82
+ "@types/node": "24.5.2",
82
83
  "conventional-changelog-conventionalcommits": "9.1.0",
83
84
  "eslint": "9.35.0",
84
85
  "eslint-config-prettier": "10.1.8",