@brickflow/lint 0.0.29 → 0.0.30
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/package.json +1 -1
- package/shared.js +15 -4
package/package.json
CHANGED
package/shared.js
CHANGED
|
@@ -180,12 +180,15 @@ const baseRules = {
|
|
|
180
180
|
'promise/prefer-await-to-then': warn,
|
|
181
181
|
'promise/valid-params': 'error',
|
|
182
182
|
'require-await': warn,
|
|
183
|
-
'tailwindcss/no-arbitrary-value': warn,
|
|
184
|
-
'tailwindcss/no-custom-classname': [warn, { whitelist: ['global.*'] }],
|
|
185
183
|
'unicorn/name-replacements': 'off',
|
|
186
184
|
yoda: 'error',
|
|
187
185
|
}
|
|
188
186
|
|
|
187
|
+
const tailwindcssRules = {
|
|
188
|
+
'tailwindcss/no-arbitrary-value': warn,
|
|
189
|
+
'tailwindcss/no-custom-classname': [warn, { whitelist: ['global.*'] }],
|
|
190
|
+
}
|
|
191
|
+
|
|
189
192
|
const vueRules = {
|
|
190
193
|
'vue/attribute-hyphenation': [
|
|
191
194
|
'error',
|
|
@@ -323,6 +326,10 @@ export function createLintConfig(options = {}) {
|
|
|
323
326
|
{
|
|
324
327
|
...tailwindcss.configs.recommended,
|
|
325
328
|
files: ['**/*.{js,mjs,cjs,ts,mts,cts,vue}'],
|
|
329
|
+
rules: {
|
|
330
|
+
...tailwindcss.configs.recommended.rules,
|
|
331
|
+
...tailwindcssRules,
|
|
332
|
+
},
|
|
326
333
|
settings: {
|
|
327
334
|
tailwindcss: {
|
|
328
335
|
cssConfigPath: tailwindcssConfigPath,
|
|
@@ -339,7 +346,7 @@ export function createLintConfig(options = {}) {
|
|
|
339
346
|
{
|
|
340
347
|
plugins: {
|
|
341
348
|
brick,
|
|
342
|
-
tailwindcss,
|
|
349
|
+
...(tailwindcssConfigPath ? { tailwindcss } : {}),
|
|
343
350
|
// unicorn,
|
|
344
351
|
},
|
|
345
352
|
},
|
|
@@ -354,7 +361,10 @@ export function createLintConfig(options = {}) {
|
|
|
354
361
|
},
|
|
355
362
|
sourceType: 'module',
|
|
356
363
|
},
|
|
357
|
-
rules:
|
|
364
|
+
rules: {
|
|
365
|
+
...baseRules,
|
|
366
|
+
...(tailwindcssConfigPath ? tailwindcssRules : {}),
|
|
367
|
+
},
|
|
358
368
|
},
|
|
359
369
|
...(includeVue
|
|
360
370
|
? [
|
|
@@ -372,6 +382,7 @@ export function createLintConfig(options = {}) {
|
|
|
372
382
|
},
|
|
373
383
|
rules: {
|
|
374
384
|
...baseRules,
|
|
385
|
+
...(tailwindcssConfigPath ? tailwindcssRules : {}),
|
|
375
386
|
...vueRules,
|
|
376
387
|
},
|
|
377
388
|
},
|