@massimo-cassandro/stylelint-config 2.1.2 → 2.2.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 (2) hide show
  1. package/index.js +14 -13
  2. package/package.json +6 -5
package/index.js CHANGED
@@ -1,4 +1,8 @@
1
1
  /** @type {import('stylelint').Config} */
2
+
3
+ const tailwindAtRules = ['tailwind', 'apply', 'layer', 'variants', 'responsive', 'screen', 'config'],
4
+ postCSSRules = ['define-mixin', 'mixin'];
5
+
2
6
  export default {
3
7
  extends: [
4
8
  'stylelint-config-standard',
@@ -25,13 +29,8 @@ export default {
25
29
  true,
26
30
  {
27
31
  ignoreAtRules: [
28
- // Tailwind CSS
29
- 'tailwind', 'apply', 'layer', 'variants', 'responsive', 'screen', 'config',
30
- // PostCSS
31
- 'define-mixin', 'mixin',
32
- // SCSS
33
- 'extend', 'include', 'if', 'else', 'function', 'at-root',
34
- 'use', 'forward', 'each', 'while', 'for', 'error', 'warn', 'debug', 'return'
32
+ ...tailwindAtRules,
33
+ ...postCSSRules
35
34
  ]
36
35
  }
37
36
  ],
@@ -124,22 +123,24 @@ export default {
124
123
  'scss/at-if-closing-brace-newline-after': null,
125
124
  'scss/at-if-closing-brace-space-after': null,
126
125
  'scss/at-if-no-null': null,
127
- 'scss/at-import-no-partial-leading-underscore': null,
128
- 'scss/at-import-partial-extension': 'never',
129
126
  'scss/at-mixin-argumentless-call-parentheses': 'always',
130
127
  'scss/at-mixin-named-arguments': null,
131
128
  'scss/at-mixin-parentheses-space-before': 'never',
132
129
  'scss/at-mixin-pattern': null,
133
130
  'scss/at-rule-conditional-no-parentheses': null,
131
+ 'scss/load-no-partial-leading-underscore': true,
132
+ 'scss/load-partial-extension': 'never',
133
+
134
+ 'at-rule-no-unknown': null, // disabilita regola base per evitare conflitti
134
135
  'scss/at-rule-no-unknown': [
135
136
  true,
136
137
  {
137
138
  ignoreAtRules: [
138
- // Tailwind CSS
139
- 'tailwind', 'apply', 'layer', 'variants', 'responsive', 'screen', 'config',
139
+ ...tailwindAtRules,
140
+ ...postCSSRules,
140
141
  // SCSS
141
- 'extend', 'include', 'if', 'else', 'mixin', 'function', 'at-root', 'use',
142
- 'forward', 'each', 'while', 'for', 'error', 'warn', 'debug', 'return'
142
+ 'extend', 'include', 'if', 'else', 'function', 'at-root',
143
+ 'use', 'forward', 'each', 'while', 'for', 'error', 'warn', 'debug', 'return'
143
144
  ]
144
145
  }
145
146
  ],
package/package.json CHANGED
@@ -1,14 +1,15 @@
1
1
  {
2
2
  "name": "@massimo-cassandro/stylelint-config",
3
- "version": "2.1.2",
3
+ "version": "2.2.0",
4
4
  "description": "my stylelint config",
5
5
  "author": "Massimo Cassandro",
6
6
  "license": "MIT",
7
- "main": "index.cjs",
7
+ "main": "index.js",
8
8
  "type": "module",
9
9
  "scripts": {
10
10
  "UPD-version": "npx update-version #--config=./dev-utilities.config.mjs",
11
11
  "upd@m": "npx upd@m",
12
+ "npm-upd": "npm update --save",
12
13
  "npm-publish": "npm publish"
13
14
  },
14
15
  "publishConfig": {
@@ -30,7 +31,7 @@
30
31
  ],
31
32
  "devDependencies": {
32
33
  "@eslint/js": "^10.0.1",
33
- "@massimo-cassandro/dev-updater": "^3.0.1",
34
+ "@massimo-cassandro/dev-updater": "^3.0.2",
34
35
  "@massimo-cassandro/eslint-config": "^2.0.8",
35
36
  "eslint": "^10.0.0",
36
37
  "globals": "^17.3.0"
@@ -38,9 +39,9 @@
38
39
  "dependencies": {
39
40
  "@stylistic/stylelint-config": "^4.0.0",
40
41
  "@stylistic/stylelint-plugin": "^5.0.1",
41
- "stylelint": "^17.1.1",
42
+ "stylelint": "^17.3.0",
42
43
  "stylelint-config-css-modules": "^4.6.0",
43
- "stylelint-config-recess-order": "^7.6.0",
44
+ "stylelint-config-recess-order": "^7.6.1",
44
45
  "stylelint-config-standard": "^40.0.0",
45
46
  "stylelint-config-standard-scss": "^17.0.0",
46
47
  "stylelint-scss": "^7.0.0"