@vyriy/stylelint-config 0.3.0 → 0.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
@@ -56,6 +56,8 @@ npx stylelint styles.scss
56
56
  npx stylelint "src/**/*.{css,scss}"
57
57
  ```
58
58
 
59
+ The shared config imports its parser, plugins, and upstream configs from `@vyriy/stylelint-config` itself, so consumer scripts do not need `--config-basedir`.
60
+
59
61
  ## Ignore Files
60
62
 
61
63
  The shared config ignores common generated and dependency directories:
@@ -68,8 +70,9 @@ Project-specific generated output, such as `coverage/**` or framework-specific o
68
70
 
69
71
  ## API
70
72
 
71
- - `extends` uses `stylelint-config-standard-scss` and `stylelint-config-recess-order`.
72
- - `customSyntax` is `postcss-scss`.
73
+ - upstream `stylelint-config-standard-scss` and `stylelint-config-recess-order` rules are merged into the exported config.
74
+ - `customSyntax` uses the imported `postcss-scss` syntax object.
75
+ - `plugins` uses imported `stylelint-scss` and `stylelint-order` plugin objects.
73
76
  - `ignoreFiles` contains common generated and dependency directories.
74
77
  - selected rules are disabled where the shared Vyriy style stays intentionally flexible.
75
78
 
package/index.d.ts CHANGED
@@ -1,7 +1,8 @@
1
+ import postcssScss from 'postcss-scss';
1
2
  declare const config: {
2
- extends: string[];
3
- customSyntax: string;
3
+ customSyntax: typeof postcssScss;
4
4
  ignoreFiles: string[];
5
+ plugins: unknown[];
5
6
  rules: {
6
7
  'color-hex-length': null;
7
8
  'custom-property-empty-line-before': null;
package/index.js CHANGED
@@ -1,15 +1,29 @@
1
+ import postcssScss from 'postcss-scss';
2
+ import recommended from 'stylelint-config-recommended';
3
+ import recommendedScss from 'stylelint-config-recommended-scss';
4
+ import recessOrder from 'stylelint-config-recess-order';
5
+ import standard from 'stylelint-config-standard';
6
+ import standardScss from 'stylelint-config-standard-scss';
7
+ import stylelintOrder from 'stylelint-order';
8
+ import stylelintScss from 'stylelint-scss';
9
+ const plugins = [
10
+ stylelintScss,
11
+ stylelintOrder,
12
+ ];
1
13
  const config = {
2
- extends: [
3
- 'stylelint-config-standard-scss',
4
- 'stylelint-config-recess-order',
5
- ],
6
- customSyntax: 'postcss-scss',
14
+ customSyntax: postcssScss,
7
15
  ignoreFiles: [
8
16
  'build/**',
9
17
  'dist/**',
10
18
  'node_modules/**',
11
19
  ],
20
+ plugins,
12
21
  rules: {
22
+ ...recommended.rules,
23
+ ...standard.rules,
24
+ ...recommendedScss.rules,
25
+ ...standardScss.rules,
26
+ ...recessOrder.rules,
13
27
  'color-hex-length': null,
14
28
  'custom-property-empty-line-before': null,
15
29
  'media-feature-range-notation': null,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vyriy/stylelint-config",
3
- "version": "0.3.0",
3
+ "version": "0.3.2",
4
4
  "description": "Shared Stylelint config for Vyriy projects",
5
5
  "type": "module",
6
6
  "main": "./index.js",
@@ -9,8 +9,12 @@
9
9
  "postcss-scss": "^4.0.9",
10
10
  "stylelint": "^17.11.0",
11
11
  "stylelint-config-recess-order": "^7.7.0",
12
+ "stylelint-config-recommended": "^18.0.0",
13
+ "stylelint-config-recommended-scss": "^17.0.0",
14
+ "stylelint-config-standard": "^40.0.0",
12
15
  "stylelint-config-standard-scss": "^17.0.0",
13
- "stylelint-order": "^8.1.1"
16
+ "stylelint-order": "^8.1.1",
17
+ "stylelint-scss": "^7.1.0"
14
18
  },
15
19
  "agents": "./AGENTS.md",
16
20
  "license": "MIT",