@rotki/eslint-plugin 0.4.0 → 0.5.0

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.
Files changed (3) hide show
  1. package/dist/index.cjs +27 -26
  2. package/dist/index.mjs +27 -26
  3. package/package.json +20 -20
package/dist/index.cjs CHANGED
@@ -24,8 +24,8 @@ const createDebug__default = /*#__PURE__*/_interopDefaultCompat(createDebug);
24
24
  const compat__namespace = /*#__PURE__*/_interopNamespaceCompat(compat);
25
25
 
26
26
  const name = "@rotki/eslint-plugin";
27
- const version = "0.4.0";
28
- const packageManager = "pnpm@9.4.0";
27
+ const version = "0.5.0";
28
+ const packageManager = "pnpm@9.7.0";
29
29
  const type = "module";
30
30
  const license = "AGPL-3.0";
31
31
  const bugs = {
@@ -64,16 +64,16 @@ const scripts = {
64
64
  "new": "node --experimental-specifier-resolution=node --loader ts-node/esm ./scripts/new-rule.ts",
65
65
  docs: "vitepress dev docs",
66
66
  "docs:build": "pnpm run generate && vitepress build docs",
67
- prepare: "husky install",
67
+ prepare: "husky",
68
68
  typecheck: "tsc --noEmit",
69
69
  release: "bumpp -r --no-push"
70
70
  };
71
71
  const peerDependencies = {
72
- eslint: "^8.0.0 || ^9.0.0"
72
+ eslint: "^9.0.0"
73
73
  };
74
74
  const dependencies = {
75
- "@typescript-eslint/utils": "7.15.0",
76
- debug: "4.3.5",
75
+ "@typescript-eslint/utils": "8.1.0",
76
+ debug: "4.3.6",
77
77
  "eslint-compat-utils": "0.5.1",
78
78
  "jsonc-eslint-parser": "2.4.0",
79
79
  scule: "1.3.0",
@@ -81,27 +81,27 @@ const dependencies = {
81
81
  "yaml-eslint-parser": "1.2.3"
82
82
  };
83
83
  const devDependencies = {
84
- "@commitlint/cli": "19.3.0",
84
+ "@commitlint/cli": "19.4.0",
85
85
  "@commitlint/config-conventional": "19.2.2",
86
- "@rotki/eslint-config": "2.9.0",
86
+ "@rotki/eslint-config": "3.0.0",
87
87
  "@types/debug": "4.1.12",
88
- "@types/eslint": "8.56.10",
88
+ "@types/eslint": "9.6.0",
89
89
  "@types/node": "20",
90
- "@typescript-eslint/eslint-plugin": "7.15.0",
91
- "@typescript-eslint/parser": "7.15.0",
92
- "@typescript-eslint/rule-tester": "7.15.0",
93
- "@vitest/coverage-v8": "1.6.0",
94
- bumpp: "9.4.1",
95
- debug: "4.3.5",
96
- eslint: "8.57.0",
97
- husky: "9.0.11",
98
- "lint-staged": "15.2.7",
99
- rimraf: "5.0.8",
90
+ "@typescript-eslint/eslint-plugin": "8.1.0",
91
+ "@typescript-eslint/parser": "8.1.0",
92
+ "@typescript-eslint/rule-tester": "8.1.0",
93
+ "@vitest/coverage-v8": "2.0.5",
94
+ bumpp: "9.5.1",
95
+ debug: "4.3.6",
96
+ eslint: "9.9.0",
97
+ husky: "9.1.4",
98
+ "lint-staged": "15.2.9",
99
+ rimraf: "6.0.1",
100
100
  "ts-node": "10.9.2",
101
- typescript: "5.5.3",
101
+ typescript: "5.5.4",
102
102
  unbuild: "2.0.0",
103
- vitepress: "1.2.3",
104
- vitest: "1.6.0"
103
+ vitepress: "1.3.2",
104
+ vitest: "2.0.5"
105
105
  };
106
106
  const engines = {
107
107
  node: ">=20",
@@ -214,8 +214,9 @@ function getStringLiteralValue(node, stringOnly = false) {
214
214
  return String(node.value);
215
215
  return null;
216
216
  }
217
- if (node.type === "TemplateLiteral" && node.expressions.length === 0 && node.quasis.length === 1)
217
+ if (node.type === "TemplateLiteral" && node.expressions.length === 0 && node.quasis.length === 1) {
218
218
  return node.quasis[0].value.cooked;
219
+ }
219
220
  return null;
220
221
  }
221
222
  function getStaticPropertyName(node) {
@@ -422,7 +423,7 @@ const noDeprecatedClasses = createEslintRule({
422
423
  meta: {
423
424
  docs: {
424
425
  description: "disallow the usage of vuetify css classes since they are replaced with tailwindcss",
425
- recommended: "recommended"
426
+ recommendation: "recommended"
426
427
  },
427
428
  fixable: "code",
428
429
  messages: {
@@ -519,7 +520,7 @@ const noDeprecatedComponents = createEslintRule({
519
520
  meta: {
520
521
  docs: {
521
522
  description: "Removes deprecated classes that do not exist anymore",
522
- recommended: "recommended"
523
+ recommendation: "recommended"
523
524
  },
524
525
  fixable: "code",
525
526
  messages: {
@@ -722,7 +723,7 @@ const consistentRefTypeAnnotation = createEslintRule({
722
723
  meta: {
723
724
  docs: {
724
725
  description: "Ensures consistent type annotation position for ref, computed assignments",
725
- recommended: "recommended"
726
+ recommendation: "recommended"
726
727
  },
727
728
  fixable: "code",
728
729
  messages: {
package/dist/index.mjs CHANGED
@@ -5,8 +5,8 @@ import { pascalCase, kebabCase } from 'scule';
5
5
  import { TSESTree } from '@typescript-eslint/utils';
6
6
 
7
7
  const name = "@rotki/eslint-plugin";
8
- const version = "0.4.0";
9
- const packageManager = "pnpm@9.4.0";
8
+ const version = "0.5.0";
9
+ const packageManager = "pnpm@9.7.0";
10
10
  const type = "module";
11
11
  const license = "AGPL-3.0";
12
12
  const bugs = {
@@ -45,16 +45,16 @@ const scripts = {
45
45
  "new": "node --experimental-specifier-resolution=node --loader ts-node/esm ./scripts/new-rule.ts",
46
46
  docs: "vitepress dev docs",
47
47
  "docs:build": "pnpm run generate && vitepress build docs",
48
- prepare: "husky install",
48
+ prepare: "husky",
49
49
  typecheck: "tsc --noEmit",
50
50
  release: "bumpp -r --no-push"
51
51
  };
52
52
  const peerDependencies = {
53
- eslint: "^8.0.0 || ^9.0.0"
53
+ eslint: "^9.0.0"
54
54
  };
55
55
  const dependencies = {
56
- "@typescript-eslint/utils": "7.15.0",
57
- debug: "4.3.5",
56
+ "@typescript-eslint/utils": "8.1.0",
57
+ debug: "4.3.6",
58
58
  "eslint-compat-utils": "0.5.1",
59
59
  "jsonc-eslint-parser": "2.4.0",
60
60
  scule: "1.3.0",
@@ -62,27 +62,27 @@ const dependencies = {
62
62
  "yaml-eslint-parser": "1.2.3"
63
63
  };
64
64
  const devDependencies = {
65
- "@commitlint/cli": "19.3.0",
65
+ "@commitlint/cli": "19.4.0",
66
66
  "@commitlint/config-conventional": "19.2.2",
67
- "@rotki/eslint-config": "2.9.0",
67
+ "@rotki/eslint-config": "3.0.0",
68
68
  "@types/debug": "4.1.12",
69
- "@types/eslint": "8.56.10",
69
+ "@types/eslint": "9.6.0",
70
70
  "@types/node": "20",
71
- "@typescript-eslint/eslint-plugin": "7.15.0",
72
- "@typescript-eslint/parser": "7.15.0",
73
- "@typescript-eslint/rule-tester": "7.15.0",
74
- "@vitest/coverage-v8": "1.6.0",
75
- bumpp: "9.4.1",
76
- debug: "4.3.5",
77
- eslint: "8.57.0",
78
- husky: "9.0.11",
79
- "lint-staged": "15.2.7",
80
- rimraf: "5.0.8",
71
+ "@typescript-eslint/eslint-plugin": "8.1.0",
72
+ "@typescript-eslint/parser": "8.1.0",
73
+ "@typescript-eslint/rule-tester": "8.1.0",
74
+ "@vitest/coverage-v8": "2.0.5",
75
+ bumpp: "9.5.1",
76
+ debug: "4.3.6",
77
+ eslint: "9.9.0",
78
+ husky: "9.1.4",
79
+ "lint-staged": "15.2.9",
80
+ rimraf: "6.0.1",
81
81
  "ts-node": "10.9.2",
82
- typescript: "5.5.3",
82
+ typescript: "5.5.4",
83
83
  unbuild: "2.0.0",
84
- vitepress: "1.2.3",
85
- vitest: "1.6.0"
84
+ vitepress: "1.3.2",
85
+ vitest: "2.0.5"
86
86
  };
87
87
  const engines = {
88
88
  node: ">=20",
@@ -195,8 +195,9 @@ function getStringLiteralValue(node, stringOnly = false) {
195
195
  return String(node.value);
196
196
  return null;
197
197
  }
198
- if (node.type === "TemplateLiteral" && node.expressions.length === 0 && node.quasis.length === 1)
198
+ if (node.type === "TemplateLiteral" && node.expressions.length === 0 && node.quasis.length === 1) {
199
199
  return node.quasis[0].value.cooked;
200
+ }
200
201
  return null;
201
202
  }
202
203
  function getStaticPropertyName(node) {
@@ -403,7 +404,7 @@ const noDeprecatedClasses = createEslintRule({
403
404
  meta: {
404
405
  docs: {
405
406
  description: "disallow the usage of vuetify css classes since they are replaced with tailwindcss",
406
- recommended: "recommended"
407
+ recommendation: "recommended"
407
408
  },
408
409
  fixable: "code",
409
410
  messages: {
@@ -500,7 +501,7 @@ const noDeprecatedComponents = createEslintRule({
500
501
  meta: {
501
502
  docs: {
502
503
  description: "Removes deprecated classes that do not exist anymore",
503
- recommended: "recommended"
504
+ recommendation: "recommended"
504
505
  },
505
506
  fixable: "code",
506
507
  messages: {
@@ -703,7 +704,7 @@ const consistentRefTypeAnnotation = createEslintRule({
703
704
  meta: {
704
705
  docs: {
705
706
  description: "Ensures consistent type annotation position for ref, computed assignments",
706
- recommended: "recommended"
707
+ recommendation: "recommended"
707
708
  },
708
709
  fixable: "code",
709
710
  messages: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rotki/eslint-plugin",
3
- "version": "0.4.0",
3
+ "version": "0.5.0",
4
4
  "type": "module",
5
5
  "license": "AGPL-3.0",
6
6
  "bugs": {
@@ -26,11 +26,11 @@
26
26
  },
27
27
  "sideEffects": false,
28
28
  "peerDependencies": {
29
- "eslint": "^8.0.0 || ^9.0.0"
29
+ "eslint": "^9.0.0"
30
30
  },
31
31
  "dependencies": {
32
- "@typescript-eslint/utils": "7.15.0",
33
- "debug": "4.3.5",
32
+ "@typescript-eslint/utils": "8.1.0",
33
+ "debug": "4.3.6",
34
34
  "eslint-compat-utils": "0.5.1",
35
35
  "jsonc-eslint-parser": "2.4.0",
36
36
  "scule": "1.3.0",
@@ -38,27 +38,27 @@
38
38
  "yaml-eslint-parser": "1.2.3"
39
39
  },
40
40
  "devDependencies": {
41
- "@commitlint/cli": "19.3.0",
41
+ "@commitlint/cli": "19.4.0",
42
42
  "@commitlint/config-conventional": "19.2.2",
43
- "@rotki/eslint-config": "2.9.0",
43
+ "@rotki/eslint-config": "3.0.0",
44
44
  "@types/debug": "4.1.12",
45
- "@types/eslint": "8.56.10",
45
+ "@types/eslint": "9.6.0",
46
46
  "@types/node": "20",
47
- "@typescript-eslint/eslint-plugin": "7.15.0",
48
- "@typescript-eslint/parser": "7.15.0",
49
- "@typescript-eslint/rule-tester": "7.15.0",
50
- "@vitest/coverage-v8": "1.6.0",
51
- "bumpp": "9.4.1",
52
- "debug": "4.3.5",
53
- "eslint": "8.57.0",
54
- "husky": "9.0.11",
55
- "lint-staged": "15.2.7",
56
- "rimraf": "5.0.8",
47
+ "@typescript-eslint/eslint-plugin": "8.1.0",
48
+ "@typescript-eslint/parser": "8.1.0",
49
+ "@typescript-eslint/rule-tester": "8.1.0",
50
+ "@vitest/coverage-v8": "2.0.5",
51
+ "bumpp": "9.5.1",
52
+ "debug": "4.3.6",
53
+ "eslint": "9.9.0",
54
+ "husky": "9.1.4",
55
+ "lint-staged": "15.2.9",
56
+ "rimraf": "6.0.1",
57
57
  "ts-node": "10.9.2",
58
- "typescript": "5.5.3",
58
+ "typescript": "5.5.4",
59
59
  "unbuild": "2.0.0",
60
- "vitepress": "1.2.3",
61
- "vitest": "1.6.0"
60
+ "vitepress": "1.3.2",
61
+ "vitest": "2.0.5"
62
62
  },
63
63
  "engines": {
64
64
  "node": ">=20",