@fr0st/stylelint-config 1.0.7 → 2.0.0

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 (4) hide show
  1. package/LICENSE +0 -0
  2. package/README.md +32 -19
  3. package/index.js +4 -1
  4. package/package.json +24 -10
package/LICENSE CHANGED
File without changes
package/README.md CHANGED
@@ -1,21 +1,34 @@
1
- # Frost Stylelint Config
1
+ # Frost Stylelint Config
2
+
3
+ [![CI](https://github.com/elusivecodes/Stylelint-Config/actions/workflows/ci.yml/badge.svg)](https://github.com/elusivecodes/Stylelint-Config/actions/workflows/ci.yml)
4
+ [![npm version](https://img.shields.io/npm/v/%40fr0st/stylelint-config)](https://www.npmjs.com/package/@fr0st/stylelint-config)
5
+ [![npm downloads](https://img.shields.io/npm/dm/%40fr0st/stylelint-config)](https://www.npmjs.com/package/@fr0st/stylelint-config)
6
+ [![License](https://img.shields.io/npm/l/%40fr0st/stylelint-config)](./LICENSE)
7
+
8
+ Stylelint shareable config for the *Frost* style.
2
9
 
3
- Stylelint shareable config for the *Frost* style.
4
10
 
5
-
6
- ## Installation
7
-
8
- ```
9
- npm i @fr0st/stylelint-config --save-dev
10
- ```
11
-
12
-
13
- ## Usage
14
-
15
- ```javascript
16
- export default [
17
- extends: {
18
- '@fr0st/stylelint-config'
19
- }
20
- ];
21
- ```
11
+ ## Installation
12
+
13
+ ```bash
14
+ npm i -D @fr0st/stylelint-config stylelint
15
+ ```
16
+
17
+
18
+ ## Usage
19
+
20
+ Create `stylelint.config.js`:
21
+
22
+ ```js
23
+ export default {
24
+ extends: ['@fr0st/stylelint-config'],
25
+ };
26
+ ```
27
+
28
+ The shared config supports both CSS and SCSS. SCSS-specific rules are applied to `**/*.scss`.
29
+
30
+ ## Compatibility
31
+
32
+ - Node.js: `>=20.19.0`
33
+ - Stylelint: `^17.4.0`
34
+ - File types: CSS and SCSS
package/index.js CHANGED
@@ -25,6 +25,7 @@ export default {
25
25
  '@stylistic/value-list-comma-space-after': 'always',
26
26
  'alpha-value-notation': null,
27
27
  'at-rule-empty-line-before': null,
28
+ 'color-function-alias-notation': null,
28
29
  'color-function-notation': null,
29
30
  'color-named': 'never',
30
31
  'custom-property-empty-line-before': null,
@@ -63,7 +64,6 @@ export default {
63
64
  },
64
65
  ],
65
66
  'selector-not-notation': null,
66
- 'scss/at-function-named-arguments': null,
67
67
  },
68
68
  overrides: [
69
69
  {
@@ -73,8 +73,10 @@ export default {
73
73
  'stylelint-config-recess-order',
74
74
  ],
75
75
  rules: {
76
+ 'declaration-property-value-no-unknown': null,
76
77
  'no-invalid-position-at-import-rule': null,
77
78
  'scss/at-extend-no-missing-placeholder': null,
79
+ 'scss/at-function-named-arguments': null,
78
80
  'scss/at-if-closing-brace-newline-after': null,
79
81
  'scss/at-if-closing-brace-space-after': null,
80
82
  'scss/at-if-no-null': null,
@@ -82,6 +84,7 @@ export default {
82
84
  'scss/at-mixin-pattern': null,
83
85
  'scss/at-rule-conditional-no-parentheses': null,
84
86
  'scss/comment-no-empty': null,
87
+ 'scss/declaration-property-value-no-unknown': true,
85
88
  'scss/dimension-no-non-numeric-values': true,
86
89
  'scss/dollar-variable-colon-space-after': 'at-least-one-space',
87
90
  'scss/dollar-variable-empty-line-before': null,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fr0st/stylelint-config",
3
- "version": "1.0.7",
3
+ "version": "2.0.0",
4
4
  "description": "Stylelint shareable config for the Frost style.",
5
5
  "keywords": [
6
6
  "code",
@@ -16,6 +16,7 @@
16
16
  "email": "elusivecodes@gmail.com"
17
17
  },
18
18
  "main": "index.js",
19
+ "exports": "./index.js",
19
20
  "type": "module",
20
21
  "files": [
21
22
  "index.js",
@@ -23,21 +24,34 @@
23
24
  "README.md"
24
25
  ],
25
26
  "scripts": {
26
- "js-lint": "eslint"
27
+ "lint": "eslint .",
28
+ "smoke": "stylelint --config ./index.js ./test/fixtures/smoke.css ./test/fixtures/smoke.scss",
29
+ "test": "npm run lint && npm run smoke"
27
30
  },
28
31
  "repository": {
29
32
  "type": "git",
30
- "url": "https://github.com/elusivecodes/Stylelint-Config.git"
33
+ "url": "git+https://github.com/elusivecodes/Stylelint-Config.git"
31
34
  },
32
35
  "author": "Elusive <elusivecodes@gmail.com>",
33
36
  "license": "MIT",
34
37
  "private": false,
38
+ "publishConfig": {
39
+ "access": "public"
40
+ },
41
+ "engines": {
42
+ "node": ">=20.19.0"
43
+ },
35
44
  "dependencies": {
36
- "@fr0st/eslint-config": "^1.0.3",
37
- "@stylistic/stylelint-config": "^2.0.0",
38
- "stylelint": "^16.19.1",
39
- "stylelint-config-recess-order": "^6.0.0",
40
- "stylelint-config-standard": "^38.0.0",
41
- "stylelint-config-standard-scss": "^14.0.0"
45
+ "@stylistic/stylelint-config": "^4.0.0",
46
+ "stylelint-config-recess-order": "^7.7.0",
47
+ "stylelint-config-standard": "^40.0.0",
48
+ "stylelint-config-standard-scss": "^17.0.0"
49
+ },
50
+ "peerDependencies": {
51
+ "stylelint": "^17.4.0"
52
+ },
53
+ "devDependencies": {
54
+ "@fr0st/eslint-config": "^2.0.0",
55
+ "stylelint": "^17.4.0"
42
56
  }
43
- }
57
+ }