@rotki/eslint-plugin 0.3.0 → 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 +44 -3
- package/dist/index.mjs +44 -3
- 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";
|
|
@@ -420,9 +433,37 @@ const noDeprecatedClasses = createEslintRule({
|
|
|
420
433
|
|
|
421
434
|
const debug$1 = createDebug__default("@rotki/eslint-plugin:no-deprecated-components");
|
|
422
435
|
const RULE_NAME$2 = "no-deprecated-components";
|
|
436
|
+
const vuetify = {
|
|
437
|
+
VApp: true,
|
|
438
|
+
VAppBar: true,
|
|
439
|
+
VAppBarNavIcon: true,
|
|
440
|
+
VAutocomplete: true,
|
|
441
|
+
VAvatar: true,
|
|
442
|
+
VBottomSheet: true,
|
|
443
|
+
VColorPicker: true,
|
|
444
|
+
VCombobox: true,
|
|
445
|
+
VDataFooter: true,
|
|
446
|
+
VDataTable: true,
|
|
447
|
+
VDialog: true,
|
|
448
|
+
VDialogTransition: true,
|
|
449
|
+
VExpansionPanel: true,
|
|
450
|
+
VExpansionPanelContent: true,
|
|
451
|
+
VExpansionPanelHeader: true,
|
|
452
|
+
VExpansionPanels: true,
|
|
453
|
+
VMain: true,
|
|
454
|
+
VMenu: true,
|
|
455
|
+
VNavigationDrawer: true,
|
|
456
|
+
VPagination: true,
|
|
457
|
+
VSelect: true,
|
|
458
|
+
VSlider: true,
|
|
459
|
+
VSnackbar: true,
|
|
460
|
+
VSwitch: true,
|
|
461
|
+
VTextField: true
|
|
462
|
+
};
|
|
423
463
|
const replacements$1 = {
|
|
424
464
|
DataTable: true,
|
|
425
|
-
Fragment: false
|
|
465
|
+
Fragment: false,
|
|
466
|
+
...vuetify
|
|
426
467
|
};
|
|
427
468
|
const skipInLegacy = [
|
|
428
469
|
"Fragment"
|
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";
|
|
@@ -401,9 +414,37 @@ const noDeprecatedClasses = createEslintRule({
|
|
|
401
414
|
|
|
402
415
|
const debug$1 = createDebug("@rotki/eslint-plugin:no-deprecated-components");
|
|
403
416
|
const RULE_NAME$2 = "no-deprecated-components";
|
|
417
|
+
const vuetify = {
|
|
418
|
+
VApp: true,
|
|
419
|
+
VAppBar: true,
|
|
420
|
+
VAppBarNavIcon: true,
|
|
421
|
+
VAutocomplete: true,
|
|
422
|
+
VAvatar: true,
|
|
423
|
+
VBottomSheet: true,
|
|
424
|
+
VColorPicker: true,
|
|
425
|
+
VCombobox: true,
|
|
426
|
+
VDataFooter: true,
|
|
427
|
+
VDataTable: true,
|
|
428
|
+
VDialog: true,
|
|
429
|
+
VDialogTransition: true,
|
|
430
|
+
VExpansionPanel: true,
|
|
431
|
+
VExpansionPanelContent: true,
|
|
432
|
+
VExpansionPanelHeader: true,
|
|
433
|
+
VExpansionPanels: true,
|
|
434
|
+
VMain: true,
|
|
435
|
+
VMenu: true,
|
|
436
|
+
VNavigationDrawer: true,
|
|
437
|
+
VPagination: true,
|
|
438
|
+
VSelect: true,
|
|
439
|
+
VSlider: true,
|
|
440
|
+
VSnackbar: true,
|
|
441
|
+
VSwitch: true,
|
|
442
|
+
VTextField: true
|
|
443
|
+
};
|
|
404
444
|
const replacements$1 = {
|
|
405
445
|
DataTable: true,
|
|
406
|
-
Fragment: false
|
|
446
|
+
Fragment: false,
|
|
447
|
+
...vuetify
|
|
407
448
|
};
|
|
408
449
|
const skipInLegacy = [
|
|
409
450
|
"Fragment"
|
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",
|