@massimo-cassandro/stylelint-config 1.1.0 → 1.1.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.
Files changed (3) hide show
  1. package/README.md +33 -1
  2. package/index.js +6 -1
  3. package/package.json +8 -11
package/README.md CHANGED
@@ -1,3 +1,35 @@
1
1
  # Stylelint config
2
2
 
3
- My stylelint config
3
+ My [stylelint](https://stylelint.io/) config,
4
+
5
+ Previous versions at <https://github.com/massimo-cassandro/linters-config>.
6
+
7
+ ## Use
8
+
9
+ Install `styleint` and the other nedeed packages:
10
+
11
+ ```bash
12
+ npm install -D @massimo-cassandro/stylelint-config stylelint @stylistic/stylelint-plugin stylelint-config-css-modules stylelint-config-twbs-bootstrap
13
+ ```
14
+
15
+ Create a `.stylelintrc.cjs` file (or use any other name you like, following the instructions at <https://stylelint.io/user-guide/configure>) and add:
16
+
17
+ ```javascript
18
+ /* eslint-env node */
19
+
20
+ module.exports = {
21
+ extends: '@massimo-cassandro/stylelint-config'
22
+ };
23
+ ```
24
+
25
+ Optionally you can extends your `.stylelintrc` file with other configuration (see <https://stylelint.io/user-guide/configure/#extends>):
26
+
27
+ ```javascript
28
+ /* eslint-env node */
29
+
30
+ module.exports = {
31
+ extends: [ 'stylelint-config-recommended', 'stylelint-config-recommended-scss', 'stylelint-order', '@massimo-cassandro/stylelint-config']
32
+ };
33
+ ```
34
+
35
+ (NB: note that `stylelint-config-standard` is included in [stylelint-config-twbs-bootstrap](https://github.com/twbs/stylelint-config-twbs-bootstrap) )
package/index.js CHANGED
@@ -64,7 +64,12 @@ module.exports = {
64
64
  'comment-empty-line-before': null,
65
65
  'font-family-name-quotes': 'always-where-recommended',
66
66
 
67
-
67
+ 'function-no-unknown': [true,
68
+ {
69
+ // tailwind
70
+ ignoreFunctions: ['theme']
71
+ }
72
+ ],
68
73
  'function-url-no-scheme-relative': true,
69
74
  'function-url-quotes': 'always',
70
75
 
package/package.json CHANGED
@@ -1,11 +1,13 @@
1
1
  {
2
2
  "name": "@massimo-cassandro/stylelint-config",
3
- "version": "1.1.0",
3
+ "version": "1.1.2",
4
4
  "description": "my stylelint config",
5
5
  "author": "Massimo Cassandro",
6
6
  "license": "MIT",
7
7
  "main": "index.js",
8
8
  "scripts": {
9
+ "UPD-version": "npx update-version #--config=./dev-utilities.config.mjs",
10
+ "upd@m": "npx upd@m",
9
11
  "npm-publish": "npm publish"
10
12
  },
11
13
  "publishConfig": {
@@ -25,14 +27,9 @@
25
27
  "files": [
26
28
  "index.js"
27
29
  ],
28
- "dependencies": {
29
- "@stylistic/stylelint-plugin": "^2.1.0",
30
- "stylelint": "^16.2.1",
31
- "stylelint-config-css-modules": "^4.4.0",
32
- "stylelint-config-recommended": "^14.0.0",
33
- "stylelint-config-recommended-scss": "^14.0.0",
34
- "stylelint-config-standard": "^36.0.0",
35
- "stylelint-config-twbs-bootstrap": "^14.0.0",
36
- "stylelint-order": "^6.0.4"
30
+ "devDependencies": {
31
+ "@massimo-cassandro/dev-updater": "^1.0.0",
32
+ "@massimo-cassandro/eslint-config": "^1.1.0",
33
+ "eslint": "^8.57.0"
37
34
  }
38
- }
35
+ }