@flarian/frontend-preset 1.3.1 → 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.
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:
@@ -52,7 +86,7 @@ export default all;
52
86
  import { all } from '@flarian/frontend-preset/stylelint';
53
87
 
54
88
  export default {
55
- extends: [all.lessConfig, all.scssConfig],
89
+ extends: [all.less, all.scss],
56
90
  };
57
91
  ```
58
92
 
@@ -562,22 +562,18 @@ const esLintStylisticRules = {
562
562
  const esLintTypeScriptRules = {
563
563
  files: ["**/*.{ts,tsx,vue}"],
564
564
  languageOptions: {
565
- parser: tsPlugin__default.parser
565
+ parserOptions: {
566
+ parser: tsPlugin__default.parser
567
+ }
566
568
  },
567
569
  plugins: {
568
570
  "@typescript-eslint": tsPlugin__default.plugin
569
571
  },
570
572
  rules: {
571
- "no-unused-vars": "off",
572
573
  "@typescript-eslint/consistent-type-definitions": ["error", "type"],
573
574
  "@typescript-eslint/no-shadow": "error",
574
- "@typescript-eslint/no-unused-vars": [
575
- "error",
576
- {
577
- argsIgnorePattern: "^_",
578
- varsIgnorePattern: "^_"
579
- }
580
- ]
575
+ "@typescript-eslint/no-unused-vars": "off",
576
+ "@typescript-eslint/no-namespace": "off"
581
577
  }
582
578
  };
583
579
 
@@ -553,22 +553,18 @@ const esLintStylisticRules = {
553
553
  const esLintTypeScriptRules = {
554
554
  files: ["**/*.{ts,tsx,vue}"],
555
555
  languageOptions: {
556
- parser: tsPlugin.parser
556
+ parserOptions: {
557
+ parser: tsPlugin.parser
558
+ }
557
559
  },
558
560
  plugins: {
559
561
  "@typescript-eslint": tsPlugin.plugin
560
562
  },
561
563
  rules: {
562
- "no-unused-vars": "off",
563
564
  "@typescript-eslint/consistent-type-definitions": ["error", "type"],
564
565
  "@typescript-eslint/no-shadow": "error",
565
- "@typescript-eslint/no-unused-vars": [
566
- "error",
567
- {
568
- argsIgnorePattern: "^_",
569
- varsIgnorePattern: "^_"
570
- }
571
- ]
566
+ "@typescript-eslint/no-unused-vars": "off",
567
+ "@typescript-eslint/no-namespace": "off"
572
568
  }
573
569
  };
574
570
 
@@ -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,6 +30,7 @@ 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('module');
33
34
  require('./shared/frontend-preset.BhlqScTP.cjs');
34
35
  require('./stylelint/config/scss.cjs');
35
36
 
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 'module';
31
32
  import './shared/frontend-preset.UJ8T0exL.mjs';
32
33
  import './stylelint/config/scss.mjs';
@@ -2,6 +2,7 @@
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
8
  const all = { less: stylelint_config_less.lessConfig, scss: stylelint_config_scss.scssConfig };
@@ -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,5 +1,6 @@
1
1
  import { lessConfig } from './less.mjs';
2
2
  import { scssConfig } from './scss.mjs';
3
+ import 'module';
3
4
  import '../../shared/frontend-preset.UJ8T0exL.mjs';
4
5
 
5
6
  const all = { less: lessConfig, scss: scssConfig };
@@ -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,
@@ -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 { 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,
@@ -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/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 { 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
+ 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,6 +3,7 @@
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('module');
6
7
  require('../shared/frontend-preset.BhlqScTP.cjs');
7
8
 
8
9
 
@@ -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 'module';
4
5
  import '../shared/frontend-preset.UJ8T0exL.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.2",
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",