@massimo-cassandro/stylelint-config 2.1.1 → 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 +15 -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
  ],
@@ -110,6 +109,7 @@ export default {
110
109
  overrides: [
111
110
  {
112
111
  files: ['**/*.scss'],
112
+ plugins: ['stylelint-scss'],
113
113
  extends: [
114
114
  'stylelint-config-standard-scss',
115
115
  'stylelint-config-recess-order'
@@ -123,22 +123,24 @@ export default {
123
123
  'scss/at-if-closing-brace-newline-after': null,
124
124
  'scss/at-if-closing-brace-space-after': null,
125
125
  'scss/at-if-no-null': null,
126
- 'scss/at-import-no-partial-leading-underscore': null,
127
- 'scss/at-import-partial-extension': 'never',
128
126
  'scss/at-mixin-argumentless-call-parentheses': 'always',
129
127
  'scss/at-mixin-named-arguments': null,
130
128
  'scss/at-mixin-parentheses-space-before': 'never',
131
129
  'scss/at-mixin-pattern': null,
132
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
133
135
  'scss/at-rule-no-unknown': [
134
136
  true,
135
137
  {
136
138
  ignoreAtRules: [
137
- // Tailwind CSS
138
- 'tailwind', 'apply', 'layer', 'variants', 'responsive', 'screen', 'config',
139
+ ...tailwindAtRules,
140
+ ...postCSSRules,
139
141
  // SCSS
140
- 'extend', 'include', 'if', 'else', 'mixin', 'function', 'at-root', 'use',
141
- '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'
142
144
  ]
143
145
  }
144
146
  ],
package/package.json CHANGED
@@ -1,14 +1,15 @@
1
1
  {
2
2
  "name": "@massimo-cassandro/stylelint-config",
3
- "version": "2.1.1",
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": "^2.1.0",
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"