@vyriy/stylelint-config 0.1.13

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Vyriy contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,66 @@
1
+ # @vyriy/stylelint-config
2
+
3
+ Shared Stylelint config for Vyriy projects.
4
+
5
+ ## Purpose
6
+
7
+ This package provides the base Stylelint setup used in Vyriy repositories for SCSS-friendly CSS linting and conventional property ordering.
8
+
9
+ ## Install
10
+
11
+ With npm:
12
+
13
+ ```bash
14
+ npm install -D @vyriy/stylelint-config stylelint
15
+ ```
16
+
17
+ With Yarn:
18
+
19
+ ```bash
20
+ yarn add -D @vyriy/stylelint-config stylelint
21
+ ```
22
+
23
+ Install `stylelint` in the consumer project so the CLI binary is available.
24
+
25
+ ## Usage
26
+
27
+ Create `stylelint.config.mjs` in your project:
28
+
29
+ ```js
30
+ export { default } from '@vyriy/stylelint-config';
31
+ ```
32
+
33
+ If you need local overrides:
34
+
35
+ ```js
36
+ import baseConfig from '@vyriy/stylelint-config';
37
+
38
+ export default {
39
+ ...baseConfig,
40
+ ignoreFiles: [
41
+ ...baseConfig.ignoreFiles,
42
+ 'coverage/**',
43
+ ],
44
+ rules: {
45
+ ...baseConfig.rules,
46
+ 'selector-class-pattern': '^[a-z][a-zA-Z0-9]+$',
47
+ },
48
+ };
49
+ ```
50
+
51
+ ## Ignore Files
52
+
53
+ The shared config ignores common generated and dependency directories:
54
+
55
+ - `build/**`
56
+ - `dist/**`
57
+ - `node_modules/**`
58
+
59
+ Project-specific generated output, such as `coverage/**` or framework-specific output directories, should be ignored in the consumer config when needed.
60
+
61
+ ## API
62
+
63
+ - `extends` uses `stylelint-config-standard-scss` and `stylelint-config-recess-order`.
64
+ - `customSyntax` is `postcss-scss`.
65
+ - `ignoreFiles` contains common generated and dependency directories.
66
+ - selected rules are disabled where the shared Vyriy style stays intentionally flexible.
package/index.d.ts ADDED
@@ -0,0 +1,15 @@
1
+ declare const config: {
2
+ extends: string[];
3
+ customSyntax: string;
4
+ ignoreFiles: string[];
5
+ rules: {
6
+ 'color-hex-length': null;
7
+ 'custom-property-empty-line-before': null;
8
+ 'media-feature-range-notation': null;
9
+ 'order/properties-order': null;
10
+ 'selector-class-pattern': null;
11
+ 'scss/dollar-variable-pattern': null;
12
+ 'value-keyword-case': null;
13
+ };
14
+ };
15
+ export default config;
package/index.js ADDED
@@ -0,0 +1,22 @@
1
+ const config = {
2
+ extends: [
3
+ 'stylelint-config-standard-scss',
4
+ 'stylelint-config-recess-order',
5
+ ],
6
+ customSyntax: 'postcss-scss',
7
+ ignoreFiles: [
8
+ 'build/**',
9
+ 'dist/**',
10
+ 'node_modules/**',
11
+ ],
12
+ rules: {
13
+ 'color-hex-length': null,
14
+ 'custom-property-empty-line-before': null,
15
+ 'media-feature-range-notation': null,
16
+ 'order/properties-order': null,
17
+ 'selector-class-pattern': null,
18
+ 'scss/dollar-variable-pattern': null,
19
+ 'value-keyword-case': null,
20
+ },
21
+ };
22
+ export default config;
package/package.json ADDED
@@ -0,0 +1,39 @@
1
+ {
2
+ "name": "@vyriy/stylelint-config",
3
+ "version": "0.1.13",
4
+ "description": "Shared Stylelint config for Vyriy projects",
5
+ "type": "module",
6
+ "main": "./index.js",
7
+ "dependencies": {
8
+ "postcss": "^8.5.14",
9
+ "postcss-scss": "^4.0.9",
10
+ "stylelint": "^17.11.0",
11
+ "stylelint-config-recess-order": "^7.7.0",
12
+ "stylelint-config-standard-scss": "^17.0.0",
13
+ "stylelint-order": "^7.0.0"
14
+ },
15
+ "license": "MIT",
16
+ "repository": {
17
+ "type": "git",
18
+ "url": "https://github.com/evheniy/vyriy",
19
+ "directory": "packages/stylelint"
20
+ },
21
+ "types": "./index.d.ts",
22
+ "exports": {
23
+ ".": {
24
+ "types": "./index.d.ts",
25
+ "import": "./index.js",
26
+ "default": "./index.js"
27
+ },
28
+ "./index": {
29
+ "types": "./index.d.ts",
30
+ "import": "./index.js",
31
+ "default": "./index.js"
32
+ },
33
+ "./index.js": {
34
+ "types": "./index.d.ts",
35
+ "import": "./index.js",
36
+ "default": "./index.js"
37
+ }
38
+ }
39
+ }