@rotki/eslint-plugin 0.3.1 → 0.3.2
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.cjs +15 -2
- package/dist/index.mjs +15 -2
- package/package.json +3 -1
package/dist/index.cjs
CHANGED
|
@@ -23,7 +23,7 @@ const createDebug__default = /*#__PURE__*/_interopDefaultCompat(createDebug);
|
|
|
23
23
|
const compat__namespace = /*#__PURE__*/_interopNamespaceCompat(compat);
|
|
24
24
|
|
|
25
25
|
const name = "@rotki/eslint-plugin";
|
|
26
|
-
const version = "0.3.
|
|
26
|
+
const version = "0.3.2";
|
|
27
27
|
const packageManager = "pnpm@8.15.0";
|
|
28
28
|
const type = "module";
|
|
29
29
|
const license = "AGPL-3.0";
|
|
@@ -59,6 +59,7 @@ const scripts = {
|
|
|
59
59
|
dev: "unbuild --stub",
|
|
60
60
|
prepublishOnly: "pnpm run build",
|
|
61
61
|
test: "vitest",
|
|
62
|
+
"test:coverage": "vitest run --coverage",
|
|
62
63
|
"new": "node --experimental-specifier-resolution=node --loader ts-node/esm ./scripts/new-rule.ts",
|
|
63
64
|
docs: "vitepress dev docs",
|
|
64
65
|
"docs:build": "pnpm run generate && vitepress build docs",
|
|
@@ -88,6 +89,7 @@ const devDependencies = {
|
|
|
88
89
|
"@typescript-eslint/eslint-plugin": "6.19.1",
|
|
89
90
|
"@typescript-eslint/parser": "6.19.1",
|
|
90
91
|
"@typescript-eslint/rule-tester": "6.19.1",
|
|
92
|
+
"@vitest/coverage-v8": "^1.2.2",
|
|
91
93
|
bumpp: "9.3.0",
|
|
92
94
|
debug: "4.3.4",
|
|
93
95
|
eslint: "8.56.0",
|
|
@@ -275,7 +277,18 @@ const replacements$2 = [
|
|
|
275
277
|
/^font-weight-(thin|extralight|light|normal|medium|semibold|bold|extrabold|black)$/,
|
|
276
278
|
([weight]) => `font-${weight}`
|
|
277
279
|
],
|
|
278
|
-
[/^text-(capitalize|uppercase|lowercase)$/, ([casing]) => casing]
|
|
280
|
+
[/^text-(capitalize|uppercase|lowercase)$/, ([casing]) => casing],
|
|
281
|
+
["text--secondary", "text-rui-text-secondary"],
|
|
282
|
+
["white--text", "text-white"],
|
|
283
|
+
["primary--text", "text-rui-primary"],
|
|
284
|
+
[
|
|
285
|
+
/^([mp])([abelr-txy]?)-n(\d)$/,
|
|
286
|
+
([type, position, size]) => `-${type}${position === "a" ? "" : position}-${size}`
|
|
287
|
+
],
|
|
288
|
+
[
|
|
289
|
+
/^([mp])a-(\d)$/,
|
|
290
|
+
([type, size]) => `${type}-${size}`
|
|
291
|
+
]
|
|
279
292
|
];
|
|
280
293
|
function isString(replacement) {
|
|
281
294
|
return typeof replacement[0] === "string";
|
package/dist/index.mjs
CHANGED
|
@@ -4,7 +4,7 @@ import * as compat from 'eslint-compat-utils';
|
|
|
4
4
|
import { pascalCase, kebabCase } from 'scule';
|
|
5
5
|
|
|
6
6
|
const name = "@rotki/eslint-plugin";
|
|
7
|
-
const version = "0.3.
|
|
7
|
+
const version = "0.3.2";
|
|
8
8
|
const packageManager = "pnpm@8.15.0";
|
|
9
9
|
const type = "module";
|
|
10
10
|
const license = "AGPL-3.0";
|
|
@@ -40,6 +40,7 @@ const scripts = {
|
|
|
40
40
|
dev: "unbuild --stub",
|
|
41
41
|
prepublishOnly: "pnpm run build",
|
|
42
42
|
test: "vitest",
|
|
43
|
+
"test:coverage": "vitest run --coverage",
|
|
43
44
|
"new": "node --experimental-specifier-resolution=node --loader ts-node/esm ./scripts/new-rule.ts",
|
|
44
45
|
docs: "vitepress dev docs",
|
|
45
46
|
"docs:build": "pnpm run generate && vitepress build docs",
|
|
@@ -69,6 +70,7 @@ const devDependencies = {
|
|
|
69
70
|
"@typescript-eslint/eslint-plugin": "6.19.1",
|
|
70
71
|
"@typescript-eslint/parser": "6.19.1",
|
|
71
72
|
"@typescript-eslint/rule-tester": "6.19.1",
|
|
73
|
+
"@vitest/coverage-v8": "^1.2.2",
|
|
72
74
|
bumpp: "9.3.0",
|
|
73
75
|
debug: "4.3.4",
|
|
74
76
|
eslint: "8.56.0",
|
|
@@ -256,7 +258,18 @@ const replacements$2 = [
|
|
|
256
258
|
/^font-weight-(thin|extralight|light|normal|medium|semibold|bold|extrabold|black)$/,
|
|
257
259
|
([weight]) => `font-${weight}`
|
|
258
260
|
],
|
|
259
|
-
[/^text-(capitalize|uppercase|lowercase)$/, ([casing]) => casing]
|
|
261
|
+
[/^text-(capitalize|uppercase|lowercase)$/, ([casing]) => casing],
|
|
262
|
+
["text--secondary", "text-rui-text-secondary"],
|
|
263
|
+
["white--text", "text-white"],
|
|
264
|
+
["primary--text", "text-rui-primary"],
|
|
265
|
+
[
|
|
266
|
+
/^([mp])([abelr-txy]?)-n(\d)$/,
|
|
267
|
+
([type, position, size]) => `-${type}${position === "a" ? "" : position}-${size}`
|
|
268
|
+
],
|
|
269
|
+
[
|
|
270
|
+
/^([mp])a-(\d)$/,
|
|
271
|
+
([type, size]) => `${type}-${size}`
|
|
272
|
+
]
|
|
260
273
|
];
|
|
261
274
|
function isString(replacement) {
|
|
262
275
|
return typeof replacement[0] === "string";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rotki/eslint-plugin",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.2",
|
|
4
4
|
"packageManager": "pnpm@8.15.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "AGPL-3.0",
|
|
@@ -48,6 +48,7 @@
|
|
|
48
48
|
"@typescript-eslint/eslint-plugin": "6.19.1",
|
|
49
49
|
"@typescript-eslint/parser": "6.19.1",
|
|
50
50
|
"@typescript-eslint/rule-tester": "6.19.1",
|
|
51
|
+
"@vitest/coverage-v8": "^1.2.2",
|
|
51
52
|
"bumpp": "9.3.0",
|
|
52
53
|
"debug": "4.3.4",
|
|
53
54
|
"eslint": "8.56.0",
|
|
@@ -76,6 +77,7 @@
|
|
|
76
77
|
"build": "unbuild",
|
|
77
78
|
"dev": "unbuild --stub",
|
|
78
79
|
"test": "vitest",
|
|
80
|
+
"test:coverage": "vitest run --coverage",
|
|
79
81
|
"new": "node --experimental-specifier-resolution=node --loader ts-node/esm ./scripts/new-rule.ts",
|
|
80
82
|
"docs": "vitepress dev docs",
|
|
81
83
|
"docs:build": "pnpm run generate && vitepress build docs",
|