@rotki/eslint-plugin 0.2.1 → 0.3.1

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 CHANGED
@@ -23,8 +23,8 @@ 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.2.1";
27
- const packageManager = "pnpm@8.14.3";
26
+ const version = "0.3.1";
27
+ const packageManager = "pnpm@8.15.0";
28
28
  const type = "module";
29
29
  const license = "AGPL-3.0";
30
30
  const bugs = {
@@ -79,9 +79,9 @@ const dependencies = {
79
79
  "yaml-eslint-parser": "1.2.2"
80
80
  };
81
81
  const devDependencies = {
82
- "@commitlint/cli": "18.5.0",
83
- "@commitlint/config-conventional": "18.5.0",
84
- "@rotki/eslint-config": "2.4.1",
82
+ "@commitlint/cli": "18.6.0",
83
+ "@commitlint/config-conventional": "18.6.0",
84
+ "@rotki/eslint-config": "2.4.4",
85
85
  "@types/debug": "4.1.12",
86
86
  "@types/eslint": "8.56.2",
87
87
  "@types/node": "20",
@@ -91,17 +91,17 @@ const devDependencies = {
91
91
  bumpp: "9.3.0",
92
92
  debug: "4.3.4",
93
93
  eslint: "8.56.0",
94
- husky: "8.0.3",
94
+ husky: "9.0.7",
95
95
  "lint-staged": "15.2.0",
96
96
  rimraf: "5.0.5",
97
97
  "ts-node": "10.9.2",
98
98
  typescript: "5.3.3",
99
99
  unbuild: "2.0.0",
100
100
  vitepress: "1.0.0-rc.40",
101
- vitest: "1.2.1"
101
+ vitest: "1.2.2"
102
102
  };
103
103
  const engines = {
104
- node: ">=18.0.0",
104
+ node: ">=20",
105
105
  pnpm: ">=8 <9"
106
106
  };
107
107
  const pkg = {
@@ -420,9 +420,37 @@ const noDeprecatedClasses = createEslintRule({
420
420
 
421
421
  const debug$1 = createDebug__default("@rotki/eslint-plugin:no-deprecated-components");
422
422
  const RULE_NAME$2 = "no-deprecated-components";
423
+ const vuetify = {
424
+ VApp: true,
425
+ VAppBar: true,
426
+ VAppBarNavIcon: true,
427
+ VAutocomplete: true,
428
+ VAvatar: true,
429
+ VBottomSheet: true,
430
+ VColorPicker: true,
431
+ VCombobox: true,
432
+ VDataFooter: true,
433
+ VDataTable: true,
434
+ VDialog: true,
435
+ VDialogTransition: true,
436
+ VExpansionPanel: true,
437
+ VExpansionPanelContent: true,
438
+ VExpansionPanelHeader: true,
439
+ VExpansionPanels: true,
440
+ VMain: true,
441
+ VMenu: true,
442
+ VNavigationDrawer: true,
443
+ VPagination: true,
444
+ VSelect: true,
445
+ VSlider: true,
446
+ VSnackbar: true,
447
+ VSwitch: true,
448
+ VTextField: true
449
+ };
423
450
  const replacements$1 = {
424
451
  DataTable: true,
425
- Fragment: false
452
+ Fragment: false,
453
+ ...vuetify
426
454
  };
427
455
  const skipInLegacy = [
428
456
  "Fragment"
@@ -447,7 +475,7 @@ const noDeprecatedComponents = createEslintRule({
447
475
  debug$1(`${tag} has been deprecated`);
448
476
  context.report({
449
477
  data: {
450
- name: scule.snakeCase(tag)
478
+ name: tag
451
479
  },
452
480
  messageId: "deprecated",
453
481
  node: element
@@ -456,7 +484,7 @@ const noDeprecatedComponents = createEslintRule({
456
484
  debug$1(`${tag} has will be removed`);
457
485
  context.report({
458
486
  data: {
459
- name: scule.snakeCase(tag)
487
+ name: tag
460
488
  },
461
489
  fix(fixer) {
462
490
  return [
package/dist/index.mjs CHANGED
@@ -1,11 +1,11 @@
1
1
  import createDebug from 'debug';
2
2
  import { extname } from 'node:path';
3
3
  import * as compat from 'eslint-compat-utils';
4
- import { pascalCase, snakeCase, kebabCase } from 'scule';
4
+ import { pascalCase, kebabCase } from 'scule';
5
5
 
6
6
  const name = "@rotki/eslint-plugin";
7
- const version = "0.2.1";
8
- const packageManager = "pnpm@8.14.3";
7
+ const version = "0.3.1";
8
+ const packageManager = "pnpm@8.15.0";
9
9
  const type = "module";
10
10
  const license = "AGPL-3.0";
11
11
  const bugs = {
@@ -60,9 +60,9 @@ const dependencies = {
60
60
  "yaml-eslint-parser": "1.2.2"
61
61
  };
62
62
  const devDependencies = {
63
- "@commitlint/cli": "18.5.0",
64
- "@commitlint/config-conventional": "18.5.0",
65
- "@rotki/eslint-config": "2.4.1",
63
+ "@commitlint/cli": "18.6.0",
64
+ "@commitlint/config-conventional": "18.6.0",
65
+ "@rotki/eslint-config": "2.4.4",
66
66
  "@types/debug": "4.1.12",
67
67
  "@types/eslint": "8.56.2",
68
68
  "@types/node": "20",
@@ -72,17 +72,17 @@ const devDependencies = {
72
72
  bumpp: "9.3.0",
73
73
  debug: "4.3.4",
74
74
  eslint: "8.56.0",
75
- husky: "8.0.3",
75
+ husky: "9.0.7",
76
76
  "lint-staged": "15.2.0",
77
77
  rimraf: "5.0.5",
78
78
  "ts-node": "10.9.2",
79
79
  typescript: "5.3.3",
80
80
  unbuild: "2.0.0",
81
81
  vitepress: "1.0.0-rc.40",
82
- vitest: "1.2.1"
82
+ vitest: "1.2.2"
83
83
  };
84
84
  const engines = {
85
- node: ">=18.0.0",
85
+ node: ">=20",
86
86
  pnpm: ">=8 <9"
87
87
  };
88
88
  const pkg = {
@@ -401,9 +401,37 @@ const noDeprecatedClasses = createEslintRule({
401
401
 
402
402
  const debug$1 = createDebug("@rotki/eslint-plugin:no-deprecated-components");
403
403
  const RULE_NAME$2 = "no-deprecated-components";
404
+ const vuetify = {
405
+ VApp: true,
406
+ VAppBar: true,
407
+ VAppBarNavIcon: true,
408
+ VAutocomplete: true,
409
+ VAvatar: true,
410
+ VBottomSheet: true,
411
+ VColorPicker: true,
412
+ VCombobox: true,
413
+ VDataFooter: true,
414
+ VDataTable: true,
415
+ VDialog: true,
416
+ VDialogTransition: true,
417
+ VExpansionPanel: true,
418
+ VExpansionPanelContent: true,
419
+ VExpansionPanelHeader: true,
420
+ VExpansionPanels: true,
421
+ VMain: true,
422
+ VMenu: true,
423
+ VNavigationDrawer: true,
424
+ VPagination: true,
425
+ VSelect: true,
426
+ VSlider: true,
427
+ VSnackbar: true,
428
+ VSwitch: true,
429
+ VTextField: true
430
+ };
404
431
  const replacements$1 = {
405
432
  DataTable: true,
406
- Fragment: false
433
+ Fragment: false,
434
+ ...vuetify
407
435
  };
408
436
  const skipInLegacy = [
409
437
  "Fragment"
@@ -428,7 +456,7 @@ const noDeprecatedComponents = createEslintRule({
428
456
  debug$1(`${tag} has been deprecated`);
429
457
  context.report({
430
458
  data: {
431
- name: snakeCase(tag)
459
+ name: tag
432
460
  },
433
461
  messageId: "deprecated",
434
462
  node: element
@@ -437,7 +465,7 @@ const noDeprecatedComponents = createEslintRule({
437
465
  debug$1(`${tag} has will be removed`);
438
466
  context.report({
439
467
  data: {
440
- name: snakeCase(tag)
468
+ name: tag
441
469
  },
442
470
  fix(fixer) {
443
471
  return [
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@rotki/eslint-plugin",
3
- "version": "0.2.1",
4
- "packageManager": "pnpm@8.14.3",
3
+ "version": "0.3.1",
4
+ "packageManager": "pnpm@8.15.0",
5
5
  "type": "module",
6
6
  "license": "AGPL-3.0",
7
7
  "bugs": {
@@ -39,9 +39,9 @@
39
39
  "yaml-eslint-parser": "1.2.2"
40
40
  },
41
41
  "devDependencies": {
42
- "@commitlint/cli": "18.5.0",
43
- "@commitlint/config-conventional": "18.5.0",
44
- "@rotki/eslint-config": "2.4.1",
42
+ "@commitlint/cli": "18.6.0",
43
+ "@commitlint/config-conventional": "18.6.0",
44
+ "@rotki/eslint-config": "2.4.4",
45
45
  "@types/debug": "4.1.12",
46
46
  "@types/eslint": "8.56.2",
47
47
  "@types/node": "20",
@@ -51,17 +51,17 @@
51
51
  "bumpp": "9.3.0",
52
52
  "debug": "4.3.4",
53
53
  "eslint": "8.56.0",
54
- "husky": "8.0.3",
54
+ "husky": "9.0.7",
55
55
  "lint-staged": "15.2.0",
56
56
  "rimraf": "5.0.5",
57
57
  "ts-node": "10.9.2",
58
58
  "typescript": "5.3.3",
59
59
  "unbuild": "2.0.0",
60
60
  "vitepress": "1.0.0-rc.40",
61
- "vitest": "1.2.1"
61
+ "vitest": "1.2.2"
62
62
  },
63
63
  "engines": {
64
- "node": ">=18.0.0",
64
+ "node": ">=20",
65
65
  "pnpm": ">=8 <9"
66
66
  },
67
67
  "lint-staged": {