@massimo-cassandro/stylelint-config 2.3.2 → 2.3.3

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 +25 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -155,14 +155,37 @@ export default {
155
155
  },
156
156
  {
157
157
  files: ['**/*.module.scss', '**/*.module.css'],
158
- extends: ['stylelint-config-css-modules'],
158
+ plugins: ['stylelint-scss'],
159
+ extends: [
160
+ 'stylelint-config-css-modules',
161
+ 'stylelint-config-standard-scss',
162
+ 'stylelint-config-recess-order'
163
+ ],
159
164
  rules: {
160
165
  'selector-class-pattern': [
161
166
  '^[a-z]+(_?[A-Z]?[a-z0-9]*)*$',
162
167
  {
163
- ignoreSelectors: [/:global/],
168
+ // intero selettore :global(...) o blocco :global senza parentesi
169
+ ignoreSelectors: [
170
+ /^:global\(.*\)$/, // es. :global(.MyClass)
171
+ /^:global$/ // es. :global usato come blocco
172
+ ],
164
173
  resolveNestedSelectors: true
165
174
  }
175
+ ],
176
+
177
+ 'no-invalid-position-at-import-rule': null,
178
+ 'at-rule-no-unknown': null, // disabilita regola base per evitare conflitti
179
+ 'scss/at-rule-no-unknown': [
180
+ true,
181
+ {
182
+ ignoreAtRules: [
183
+ ...tailwindAtRules,
184
+ ...postCSSRules,
185
+ 'extend', 'include', 'if', 'else', 'function', 'at-root',
186
+ 'use', 'forward', 'each', 'while', 'for', 'error', 'warn', 'debug', 'return'
187
+ ]
188
+ }
166
189
  ]
167
190
  }
168
191
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@massimo-cassandro/stylelint-config",
3
- "version": "2.3.2",
3
+ "version": "2.3.3",
4
4
  "description": "my stylelint config",
5
5
  "author": "Massimo Cassandro",
6
6
  "license": "MIT",