@massimo-cassandro/stylelint-config 1.1.11 → 2.0.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 (3) hide show
  1. package/README.md +1 -2
  2. package/package.json +14 -10
  3. package/index.cjs +0 -247
package/README.md CHANGED
@@ -9,8 +9,7 @@ Previous versions at <https://github.com/massimo-cassandro/linters-config>.
9
9
  Install `styleint` and the other nedeed packages:
10
10
 
11
11
  ```bash
12
- npm install -D @massimo-cassandro/stylelint-config stylelint @stylistic/stylelint-plugin stylelint-config-css-modules stylelint-config-twbs-bootstrap
13
- ```
12
+ npm install -D stylelint @massimo-cassandro/stylelint-config
14
13
 
15
14
  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
15
 
package/package.json CHANGED
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "name": "@massimo-cassandro/stylelint-config",
3
- "version": "1.1.11",
3
+ "version": "2.0.0",
4
4
  "description": "my stylelint config",
5
5
  "author": "Massimo Cassandro",
6
6
  "license": "MIT",
7
7
  "main": "index.cjs",
8
+ "type": "module",
8
9
  "scripts": {
9
10
  "UPD-version": "npx update-version #--config=./dev-utilities.config.mjs",
10
11
  "upd@m": "npx upd@m",
@@ -28,16 +29,19 @@
28
29
  "index.cjs"
29
30
  ],
30
31
  "devDependencies": {
31
- "@eslint/js": "^9.23.0",
32
+ "@eslint/js": "^10.0.1",
32
33
  "@massimo-cassandro/dev-updater": "^2.1.0",
33
- "@massimo-cassandro/eslint-config": "^2.0.6",
34
- "eslint": "^9.32.0",
35
- "globals": "^16.3.0"
34
+ "@massimo-cassandro/eslint-config": "^2.0.8",
35
+ "eslint": "^10.0.0",
36
+ "globals": "^17.3.0"
36
37
  },
37
- "peerDependencies": {
38
- "@stylistic/stylelint-plugin": "^4.0.0",
39
- "stylelint": "^16.23.0",
40
- "stylelint-config-css-modules": "^4.5.1",
41
- "stylelint-config-twbs-bootstrap": "^16.1.0"
38
+ "dependencies": {
39
+ "@stylistic/stylelint-config": "^4.0.0",
40
+ "@stylistic/stylelint-plugin": "^5.0.1",
41
+ "stylelint": "^17.1.1",
42
+ "stylelint-config-recess-order": "^7.6.0",
43
+ "stylelint-config-standard": "^40.0.0",
44
+ "stylelint-config-standard-scss": "^17.0.0",
45
+ "stylelint-scss": "^7.0.0"
42
46
  }
43
47
  }
package/index.cjs DELETED
@@ -1,247 +0,0 @@
1
- /* eslint-env node */
2
-
3
-
4
- module.exports = {
5
- extends: [
6
- 'stylelint-config-twbs-bootstrap/'
7
- // 'stylelint-config-standard' // in twb
8
- ],
9
- plugins: [
10
- // 'stylelint-order',
11
- '@stylistic/stylelint-plugin'
12
- ],
13
- 'ignoreFiles': [
14
- 'node_modules/**/*.*',
15
- 'vendor/**/*.*',
16
- 'build/**/*.*',
17
- 'public/**/*.*',
18
- 'templates/**/*.*',
19
- 'dist/**/*.*'
20
- ],
21
-
22
- 'rules': {
23
-
24
- // order overrides
25
- // https://github.com/stormwarning/stylelint-config-recess-order
26
- // 'order/properties-order': {
27
- // 'padding-inline-start'
28
- // },
29
-
30
- 'alpha-value-notation': null,
31
- 'at-rule-no-vendor-prefix': true,
32
- 'at-rule-no-unknown': [
33
- true,
34
- {
35
- ignoreAtRules: [
36
- // tailwind
37
- 'tailwind',
38
- 'apply',
39
- 'layer',
40
- 'variants',
41
- 'responsive',
42
- 'screen',
43
- 'config',
44
-
45
- // postcss
46
- 'define-mixin',
47
- 'mixin',
48
-
49
- // sass
50
- 'extend',
51
- 'include',
52
- 'if',
53
- 'else',
54
- // 'mixin',
55
- 'function',
56
- 'at-root',
57
- 'use',
58
- 'forward',
59
- 'each',
60
- 'while',
61
- 'for',
62
- 'error',
63
- 'warn',
64
- 'debug',
65
- 'return'
66
- ],
67
- },
68
- ],
69
-
70
- // 'color-function-notation': 'legacy',
71
- // 'comment-empty-line-before': [
72
- // 'always',
73
- // {
74
- // // except: ['first-nested'],
75
- // ignore: ['after-comment', 'stylelint-commands']
76
- // }
77
- // ],
78
- 'comment-empty-line-before': null,
79
- 'font-family-name-quotes': 'always-where-recommended',
80
-
81
- 'function-no-unknown': [true,
82
- {
83
- // tailwind
84
- ignoreFunctions: ['theme']
85
- }
86
- ],
87
- 'function-url-no-scheme-relative': true,
88
- 'function-url-quotes': 'always',
89
-
90
- 'hue-degree-notation': null,
91
- 'import-notation': null,
92
-
93
- 'max-nesting-depth': [
94
- 3,
95
- {
96
- ignore: ['pseudo-classes', 'blockless-at-rules'],
97
- ignoreAtRules: [/media/, /include/],
98
- ignorePseudoClasses: ['before', 'after']
99
- }
100
- ],
101
- // 'media-feature-name-no-vendor-prefix': true,
102
-
103
- 'property-no-vendor-prefix': true,
104
- 'selector-attribute-quotes': 'always',
105
- 'selector-class-pattern': [
106
- '^[a-z][a-z0-9\\-]*[a-z0-9]$',
107
- {
108
- resolveNestedSelectors: true
109
- }
110
- ],
111
- 'selector-max-type': [
112
- 3,
113
- {
114
- ignore: ['child', 'compounded', 'descendant', 'next-sibling']
115
- }
116
- ],
117
-
118
- 'selector-no-qualifying-type': [
119
- null,
120
- {
121
- ignore: ['attribute', 'class', 'id']
122
- }
123
- ],
124
- 'selector-no-vendor-prefix': true,
125
- 'selector-pseudo-class-no-unknown': [
126
- true,
127
- {
128
- "ignorePseudoClasses": ["global"]
129
- }
130
- ],
131
-
132
- 'shorthand-property-no-redundant-values': true,
133
- // 'shorthand-property-no-redundant-values': [
134
- // true,
135
- // {
136
- // ignoreShorthands: [ /^grid-/ ]
137
- // }
138
- // ],
139
-
140
-
141
- // =>> stylistic
142
- // https://github.com/elirasza/stylelint-stylistic
143
- '@stylistic/function-max-empty-lines': 2,
144
- '@stylistic/function-parentheses-space-inside': 'never-single-line',
145
- '@stylistic/no-empty-first-line': null,
146
- '@stylistic/no-missing-end-of-source-newline': null,
147
- '@stylistic/max-empty-lines': [3, {ignore: ['comments']}],
148
- '@stylistic/number-leading-zero': null, //'never',
149
- '@stylistic/string-quotes': 'single',
150
- '@stylistic/selector-list-comma-space-after': null,
151
- '@stylistic/selector-list-comma-space-before': 'never',
152
- '@stylistic/selector-list-comma-newline-after': 'always-multi-line',
153
- '@stylistic/value-list-comma-space-after': 'always-single-line',
154
- '@stylistic/value-list-comma-newline-after': 'always-multi-line', //'never-multi-line',
155
- '@stylistic/value-list-max-empty-lines': 3,
156
-
157
- 'value-keyword-case': [
158
- 'lower',
159
- {
160
- ignoreKeywords: ['currentColor']
161
- }
162
- ],
163
-
164
- 'value-no-vendor-prefix': true
165
- },
166
- 'overrides': [
167
- {
168
- 'files': ['**/*.scss'],
169
- // 'extends': ['stylelint-config-twbs-bootstrap/'],
170
- 'rules': {
171
-
172
-
173
- 'scss/at-function-pattern': '^[a-z][a-z-]*$',
174
- 'scss/at-function-parentheses-space-before': 'never',
175
- 'scss/at-import-no-partial-leading-underscore': null, //true,
176
- 'scss/at-import-partial-extension': 'never',
177
- 'scss/at-mixin-named-arguments': null,
178
- 'scss/at-mixin-parentheses-space-before': 'never',
179
- // 'scss/at-rule-no-unknown': true,
180
- 'scss/at-rule-no-unknown': [
181
- true,
182
- {
183
- ignoreAtRules: [
184
-
185
- // tailwind
186
- 'tailwind',
187
- 'apply',
188
- 'layer',
189
- 'variants',
190
- 'responsive',
191
- 'screen',
192
- 'config',
193
-
194
- // sass
195
- 'extend',
196
- 'include',
197
- 'if',
198
- 'else',
199
- 'mixin',
200
- 'function',
201
- 'at-root',
202
- 'use',
203
- 'forward',
204
- 'each',
205
- 'while',
206
- 'for',
207
- 'error',
208
- 'warn',
209
- 'debug',
210
- 'return'
211
- ]
212
- }
213
- ],
214
- 'scss/dollar-variable-colon-space-before': 'never',
215
- 'scss/dollar-variable-no-missing-interpolation': true,
216
- 'scss/dollar-variable-pattern': '^[a-z][a-z-\\d]*$',
217
- 'scss/no-duplicate-dollar-variables': [
218
- null,
219
- {
220
- 'ignoreInsideAtRules': [
221
- 'extend',
222
- 'if',
223
- 'mixin'
224
- ]
225
- }
226
- ],
227
- 'scss/no-duplicate-mixins': true,
228
- 'scss/operator-no-newline-after': true,
229
- 'scss/operator-no-newline-before': true,
230
- 'scss/operator-no-unspaced': true,
231
- }
232
- },
233
- {
234
- 'files': ['**/*.module.scss', '**/*.module.css'],
235
- 'extends': [/* 'stylelint-config-twbs-bootstrap/', */ 'stylelint-config-css-modules'],
236
- 'rules': {
237
- 'selector-class-pattern': [
238
- '^[a-z]+(_?[A-Z]?[a-z0-9]*)*$',
239
- // '(?<=:global[ \(])^[a-z][a-z0-9\\-]*[a-z0-9]$\)?'
240
- {
241
- resolveNestedSelectors: true
242
- }
243
- ]
244
- }
245
- }
246
- ]
247
- };