@maz-ui/eslint-config 5.0.0-beta.43 → 5.0.0-beta.47
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/dist/index.mjs +3 -2
- package/package.json +7 -8
package/dist/index.mjs
CHANGED
|
@@ -127,9 +127,9 @@ const sonarjsTestRules = {
|
|
|
127
127
|
|
|
128
128
|
const DEFAULT_BASE_FONT_SIZE = 16;
|
|
129
129
|
const DEFAULT_UNIT = "rem";
|
|
130
|
-
const ARBITRARY_BRACKET = /\[([^\s\]]+)\]/g;
|
|
130
|
+
const ARBITRARY_BRACKET = /\[(?=([^\s\]]+))\1\]/g;
|
|
131
131
|
const HAS_PX_VALUE = /\dpx/i;
|
|
132
|
-
const PX_VALUE = /(-?(
|
|
132
|
+
const PX_VALUE = /(-?(?=(\d+(?:\.\d+)?|\.\d+))\2)px/gi;
|
|
133
133
|
function convertPx(pxStr, base, unit) {
|
|
134
134
|
const px = Number.parseFloat(pxStr);
|
|
135
135
|
const value = px / base;
|
|
@@ -281,6 +281,7 @@ function tailwindcssConfigs(preset, settings) {
|
|
|
281
281
|
...presetConfig.rules,
|
|
282
282
|
"better-tailwindcss/no-unknown-classes": "off",
|
|
283
283
|
"better-tailwindcss/enforce-consistent-line-wrapping": "off",
|
|
284
|
+
"better-tailwindcss/no-concatenated-classes": "off",
|
|
284
285
|
"maz/tailwind-no-arbitrary-px": [noArbitraryPx.severity, noArbitraryPx.options]
|
|
285
286
|
}
|
|
286
287
|
}];
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maz-ui/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "5.0.0-beta.
|
|
4
|
+
"version": "5.0.0-beta.47",
|
|
5
5
|
"description": "ESLint configuration for JavaScript/TypeScript projects",
|
|
6
6
|
"author": "Louis Mazel <me@loicmazuel.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -43,16 +43,16 @@
|
|
|
43
43
|
"eslint": "^9.10.0 || ^10.0.0"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@antfu/eslint-config": "^9.
|
|
46
|
+
"@antfu/eslint-config": "^9.5.1",
|
|
47
47
|
"consola": "^3.4.2",
|
|
48
|
-
"eslint-plugin-better-tailwindcss": "^4.
|
|
48
|
+
"eslint-plugin-better-tailwindcss": "^4.7.0",
|
|
49
49
|
"eslint-plugin-format": "^2.0.1",
|
|
50
|
-
"eslint-plugin-sonarjs": "^4.
|
|
51
|
-
"eslint-plugin-vuejs-accessibility": "^2.
|
|
50
|
+
"eslint-plugin-sonarjs": "^4.2.2",
|
|
51
|
+
"eslint-plugin-vuejs-accessibility": "^2.6.0"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
|
-
"@typescript-eslint/rule-tester": "^8.
|
|
55
|
-
"eslint": "^10.
|
|
54
|
+
"@typescript-eslint/rule-tester": "^8.71.0",
|
|
55
|
+
"eslint": "^10.12.0",
|
|
56
56
|
"unbuild": "^3.6.1",
|
|
57
57
|
"vue-eslint-parser": "^10.4.0"
|
|
58
58
|
},
|
|
@@ -62,7 +62,6 @@
|
|
|
62
62
|
]
|
|
63
63
|
},
|
|
64
64
|
"scripts": {
|
|
65
|
-
"codegen": "nx build",
|
|
66
65
|
"build": "unbuild",
|
|
67
66
|
"dev": "unbuild --stub",
|
|
68
67
|
"typecheck": "tsc --noEmit --skipLibCheck",
|