@massimo-cassandro/stylelint-config 2.3.1 → 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.
- package/index.js +25 -2
- package/package.json +6 -5
package/index.js
CHANGED
|
@@ -155,14 +155,37 @@ export default {
|
|
|
155
155
|
},
|
|
156
156
|
{
|
|
157
157
|
files: ['**/*.module.scss', '**/*.module.css'],
|
|
158
|
-
|
|
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
|
-
|
|
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.
|
|
3
|
+
"version": "2.3.3",
|
|
4
4
|
"description": "my stylelint config",
|
|
5
5
|
"author": "Massimo Cassandro",
|
|
6
6
|
"license": "MIT",
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
"scripts": {
|
|
10
10
|
"UPD-version": "npx update-version #--config=./dev-utilities.config.mjs",
|
|
11
11
|
"upd@m": "npx upd@m",
|
|
12
|
+
"npm-outdated": "npm outdated",
|
|
12
13
|
"npm-upd": "npm update --save",
|
|
13
14
|
"npm-publish": "npm publish"
|
|
14
15
|
},
|
|
@@ -33,13 +34,13 @@
|
|
|
33
34
|
"@eslint/js": "^10.0.1",
|
|
34
35
|
"@massimo-cassandro/dev-updater": "^3.0.2",
|
|
35
36
|
"@massimo-cassandro/eslint-config": "^3.0.3",
|
|
36
|
-
"eslint": "^10.0
|
|
37
|
+
"eslint": "^10.1.0",
|
|
37
38
|
"globals": "^17.4.0"
|
|
38
39
|
},
|
|
39
40
|
"dependencies": {
|
|
40
|
-
"@stylistic/stylelint-config": "^
|
|
41
|
-
"@stylistic/stylelint-plugin": "^5.0
|
|
42
|
-
"stylelint": "^17.
|
|
41
|
+
"@stylistic/stylelint-config": "^5.0.0",
|
|
42
|
+
"@stylistic/stylelint-plugin": "^5.1.0",
|
|
43
|
+
"stylelint": "^17.6.0",
|
|
43
44
|
"stylelint-config-css-modules": "^4.6.0",
|
|
44
45
|
"stylelint-config-recess-order": "^7.7.0",
|
|
45
46
|
"stylelint-config-standard": "^40.0.0",
|