@rotki/eslint-plugin 0.4.0 → 0.6.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.
- package/dist/index.cjs +28 -28
- package/dist/index.mjs +28 -28
- package/package.json +21 -22
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.
|
|
28
|
-
const packageManager = "pnpm@9.
|
|
27
|
+
const version = "0.6.0";
|
|
28
|
+
const packageManager = "pnpm@9.15.0";
|
|
29
29
|
const type = "module";
|
|
30
30
|
const license = "AGPL-3.0";
|
|
31
31
|
const bugs = {
|
|
@@ -64,44 +64,43 @@ 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
|
|
67
|
+
prepare: "husky",
|
|
68
68
|
typecheck: "tsc --noEmit",
|
|
69
69
|
release: "bumpp -r --no-push"
|
|
70
70
|
};
|
|
71
71
|
const peerDependencies = {
|
|
72
|
-
eslint: "^
|
|
72
|
+
eslint: "^9.0.0"
|
|
73
73
|
};
|
|
74
74
|
const dependencies = {
|
|
75
|
-
"@typescript-eslint/utils": "
|
|
76
|
-
debug: "4.
|
|
77
|
-
"eslint-compat-utils": "0.
|
|
75
|
+
"@typescript-eslint/utils": "8.18.0",
|
|
76
|
+
debug: "4.4.0",
|
|
77
|
+
"eslint-compat-utils": "0.6.4",
|
|
78
78
|
"jsonc-eslint-parser": "2.4.0",
|
|
79
79
|
scule: "1.3.0",
|
|
80
80
|
"vue-eslint-parser": "9.4.3",
|
|
81
81
|
"yaml-eslint-parser": "1.2.3"
|
|
82
82
|
};
|
|
83
83
|
const devDependencies = {
|
|
84
|
-
"@commitlint/cli": "19.
|
|
85
|
-
"@commitlint/config-conventional": "19.
|
|
86
|
-
"@rotki/eslint-config": "
|
|
84
|
+
"@commitlint/cli": "19.6.0",
|
|
85
|
+
"@commitlint/config-conventional": "19.6.0",
|
|
86
|
+
"@rotki/eslint-config": "3.6.0",
|
|
87
87
|
"@types/debug": "4.1.12",
|
|
88
|
-
"@types/eslint": "8.56.10",
|
|
89
88
|
"@types/node": "20",
|
|
90
|
-
"@typescript-eslint/eslint-plugin": "
|
|
91
|
-
"@typescript-eslint/parser": "
|
|
92
|
-
"@typescript-eslint/rule-tester": "
|
|
93
|
-
"@vitest/coverage-v8": "1.
|
|
94
|
-
bumpp: "9.
|
|
95
|
-
debug: "4.
|
|
96
|
-
eslint: "
|
|
97
|
-
husky: "9.
|
|
98
|
-
"lint-staged": "15.2.
|
|
99
|
-
rimraf: "
|
|
89
|
+
"@typescript-eslint/eslint-plugin": "8.18.0",
|
|
90
|
+
"@typescript-eslint/parser": "8.18.0",
|
|
91
|
+
"@typescript-eslint/rule-tester": "8.18.0",
|
|
92
|
+
"@vitest/coverage-v8": "2.1.8",
|
|
93
|
+
bumpp: "9.9.0",
|
|
94
|
+
debug: "4.4.0",
|
|
95
|
+
eslint: "9.16.0",
|
|
96
|
+
husky: "9.1.7",
|
|
97
|
+
"lint-staged": "15.2.11",
|
|
98
|
+
rimraf: "6.0.1",
|
|
100
99
|
"ts-node": "10.9.2",
|
|
101
|
-
typescript: "5.
|
|
100
|
+
typescript: "5.7.2",
|
|
102
101
|
unbuild: "2.0.0",
|
|
103
|
-
vitepress: "1.
|
|
104
|
-
vitest: "1.
|
|
102
|
+
vitepress: "1.5.0",
|
|
103
|
+
vitest: "2.1.8"
|
|
105
104
|
};
|
|
106
105
|
const engines = {
|
|
107
106
|
node: ">=20",
|
|
@@ -214,8 +213,9 @@ function getStringLiteralValue(node, stringOnly = false) {
|
|
|
214
213
|
return String(node.value);
|
|
215
214
|
return null;
|
|
216
215
|
}
|
|
217
|
-
if (node.type === "TemplateLiteral" && node.expressions.length === 0 && node.quasis.length === 1)
|
|
216
|
+
if (node.type === "TemplateLiteral" && node.expressions.length === 0 && node.quasis.length === 1) {
|
|
218
217
|
return node.quasis[0].value.cooked;
|
|
218
|
+
}
|
|
219
219
|
return null;
|
|
220
220
|
}
|
|
221
221
|
function getStaticPropertyName(node) {
|
|
@@ -422,7 +422,7 @@ const noDeprecatedClasses = createEslintRule({
|
|
|
422
422
|
meta: {
|
|
423
423
|
docs: {
|
|
424
424
|
description: "disallow the usage of vuetify css classes since they are replaced with tailwindcss",
|
|
425
|
-
|
|
425
|
+
recommendation: "recommended"
|
|
426
426
|
},
|
|
427
427
|
fixable: "code",
|
|
428
428
|
messages: {
|
|
@@ -519,7 +519,7 @@ const noDeprecatedComponents = createEslintRule({
|
|
|
519
519
|
meta: {
|
|
520
520
|
docs: {
|
|
521
521
|
description: "Removes deprecated classes that do not exist anymore",
|
|
522
|
-
|
|
522
|
+
recommendation: "recommended"
|
|
523
523
|
},
|
|
524
524
|
fixable: "code",
|
|
525
525
|
messages: {
|
|
@@ -722,7 +722,7 @@ const consistentRefTypeAnnotation = createEslintRule({
|
|
|
722
722
|
meta: {
|
|
723
723
|
docs: {
|
|
724
724
|
description: "Ensures consistent type annotation position for ref, computed assignments",
|
|
725
|
-
|
|
725
|
+
recommendation: "recommended"
|
|
726
726
|
},
|
|
727
727
|
fixable: "code",
|
|
728
728
|
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.
|
|
9
|
-
const packageManager = "pnpm@9.
|
|
8
|
+
const version = "0.6.0";
|
|
9
|
+
const packageManager = "pnpm@9.15.0";
|
|
10
10
|
const type = "module";
|
|
11
11
|
const license = "AGPL-3.0";
|
|
12
12
|
const bugs = {
|
|
@@ -45,44 +45,43 @@ 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
|
|
48
|
+
prepare: "husky",
|
|
49
49
|
typecheck: "tsc --noEmit",
|
|
50
50
|
release: "bumpp -r --no-push"
|
|
51
51
|
};
|
|
52
52
|
const peerDependencies = {
|
|
53
|
-
eslint: "^
|
|
53
|
+
eslint: "^9.0.0"
|
|
54
54
|
};
|
|
55
55
|
const dependencies = {
|
|
56
|
-
"@typescript-eslint/utils": "
|
|
57
|
-
debug: "4.
|
|
58
|
-
"eslint-compat-utils": "0.
|
|
56
|
+
"@typescript-eslint/utils": "8.18.0",
|
|
57
|
+
debug: "4.4.0",
|
|
58
|
+
"eslint-compat-utils": "0.6.4",
|
|
59
59
|
"jsonc-eslint-parser": "2.4.0",
|
|
60
60
|
scule: "1.3.0",
|
|
61
61
|
"vue-eslint-parser": "9.4.3",
|
|
62
62
|
"yaml-eslint-parser": "1.2.3"
|
|
63
63
|
};
|
|
64
64
|
const devDependencies = {
|
|
65
|
-
"@commitlint/cli": "19.
|
|
66
|
-
"@commitlint/config-conventional": "19.
|
|
67
|
-
"@rotki/eslint-config": "
|
|
65
|
+
"@commitlint/cli": "19.6.0",
|
|
66
|
+
"@commitlint/config-conventional": "19.6.0",
|
|
67
|
+
"@rotki/eslint-config": "3.6.0",
|
|
68
68
|
"@types/debug": "4.1.12",
|
|
69
|
-
"@types/eslint": "8.56.10",
|
|
70
69
|
"@types/node": "20",
|
|
71
|
-
"@typescript-eslint/eslint-plugin": "
|
|
72
|
-
"@typescript-eslint/parser": "
|
|
73
|
-
"@typescript-eslint/rule-tester": "
|
|
74
|
-
"@vitest/coverage-v8": "1.
|
|
75
|
-
bumpp: "9.
|
|
76
|
-
debug: "4.
|
|
77
|
-
eslint: "
|
|
78
|
-
husky: "9.
|
|
79
|
-
"lint-staged": "15.2.
|
|
80
|
-
rimraf: "
|
|
70
|
+
"@typescript-eslint/eslint-plugin": "8.18.0",
|
|
71
|
+
"@typescript-eslint/parser": "8.18.0",
|
|
72
|
+
"@typescript-eslint/rule-tester": "8.18.0",
|
|
73
|
+
"@vitest/coverage-v8": "2.1.8",
|
|
74
|
+
bumpp: "9.9.0",
|
|
75
|
+
debug: "4.4.0",
|
|
76
|
+
eslint: "9.16.0",
|
|
77
|
+
husky: "9.1.7",
|
|
78
|
+
"lint-staged": "15.2.11",
|
|
79
|
+
rimraf: "6.0.1",
|
|
81
80
|
"ts-node": "10.9.2",
|
|
82
|
-
typescript: "5.
|
|
81
|
+
typescript: "5.7.2",
|
|
83
82
|
unbuild: "2.0.0",
|
|
84
|
-
vitepress: "1.
|
|
85
|
-
vitest: "1.
|
|
83
|
+
vitepress: "1.5.0",
|
|
84
|
+
vitest: "2.1.8"
|
|
86
85
|
};
|
|
87
86
|
const engines = {
|
|
88
87
|
node: ">=20",
|
|
@@ -195,8 +194,9 @@ function getStringLiteralValue(node, stringOnly = false) {
|
|
|
195
194
|
return String(node.value);
|
|
196
195
|
return null;
|
|
197
196
|
}
|
|
198
|
-
if (node.type === "TemplateLiteral" && node.expressions.length === 0 && node.quasis.length === 1)
|
|
197
|
+
if (node.type === "TemplateLiteral" && node.expressions.length === 0 && node.quasis.length === 1) {
|
|
199
198
|
return node.quasis[0].value.cooked;
|
|
199
|
+
}
|
|
200
200
|
return null;
|
|
201
201
|
}
|
|
202
202
|
function getStaticPropertyName(node) {
|
|
@@ -403,7 +403,7 @@ const noDeprecatedClasses = createEslintRule({
|
|
|
403
403
|
meta: {
|
|
404
404
|
docs: {
|
|
405
405
|
description: "disallow the usage of vuetify css classes since they are replaced with tailwindcss",
|
|
406
|
-
|
|
406
|
+
recommendation: "recommended"
|
|
407
407
|
},
|
|
408
408
|
fixable: "code",
|
|
409
409
|
messages: {
|
|
@@ -500,7 +500,7 @@ const noDeprecatedComponents = createEslintRule({
|
|
|
500
500
|
meta: {
|
|
501
501
|
docs: {
|
|
502
502
|
description: "Removes deprecated classes that do not exist anymore",
|
|
503
|
-
|
|
503
|
+
recommendation: "recommended"
|
|
504
504
|
},
|
|
505
505
|
fixable: "code",
|
|
506
506
|
messages: {
|
|
@@ -703,7 +703,7 @@ const consistentRefTypeAnnotation = createEslintRule({
|
|
|
703
703
|
meta: {
|
|
704
704
|
docs: {
|
|
705
705
|
description: "Ensures consistent type annotation position for ref, computed assignments",
|
|
706
|
-
|
|
706
|
+
recommendation: "recommended"
|
|
707
707
|
},
|
|
708
708
|
fixable: "code",
|
|
709
709
|
messages: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rotki/eslint-plugin",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "AGPL-3.0",
|
|
6
6
|
"bugs": {
|
|
@@ -26,39 +26,38 @@
|
|
|
26
26
|
},
|
|
27
27
|
"sideEffects": false,
|
|
28
28
|
"peerDependencies": {
|
|
29
|
-
"eslint": "^
|
|
29
|
+
"eslint": "^9.0.0"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@typescript-eslint/utils": "
|
|
33
|
-
"debug": "4.
|
|
34
|
-
"eslint-compat-utils": "0.
|
|
32
|
+
"@typescript-eslint/utils": "8.18.0",
|
|
33
|
+
"debug": "4.4.0",
|
|
34
|
+
"eslint-compat-utils": "0.6.4",
|
|
35
35
|
"jsonc-eslint-parser": "2.4.0",
|
|
36
36
|
"scule": "1.3.0",
|
|
37
37
|
"vue-eslint-parser": "9.4.3",
|
|
38
38
|
"yaml-eslint-parser": "1.2.3"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@commitlint/cli": "19.
|
|
42
|
-
"@commitlint/config-conventional": "19.
|
|
43
|
-
"@rotki/eslint-config": "
|
|
41
|
+
"@commitlint/cli": "19.6.0",
|
|
42
|
+
"@commitlint/config-conventional": "19.6.0",
|
|
43
|
+
"@rotki/eslint-config": "3.6.0",
|
|
44
44
|
"@types/debug": "4.1.12",
|
|
45
|
-
"@types/eslint": "8.56.10",
|
|
46
45
|
"@types/node": "20",
|
|
47
|
-
"@typescript-eslint/eslint-plugin": "
|
|
48
|
-
"@typescript-eslint/parser": "
|
|
49
|
-
"@typescript-eslint/rule-tester": "
|
|
50
|
-
"@vitest/coverage-v8": "1.
|
|
51
|
-
"bumpp": "9.
|
|
52
|
-
"debug": "4.
|
|
53
|
-
"eslint": "
|
|
54
|
-
"husky": "9.
|
|
55
|
-
"lint-staged": "15.2.
|
|
56
|
-
"rimraf": "
|
|
46
|
+
"@typescript-eslint/eslint-plugin": "8.18.0",
|
|
47
|
+
"@typescript-eslint/parser": "8.18.0",
|
|
48
|
+
"@typescript-eslint/rule-tester": "8.18.0",
|
|
49
|
+
"@vitest/coverage-v8": "2.1.8",
|
|
50
|
+
"bumpp": "9.9.0",
|
|
51
|
+
"debug": "4.4.0",
|
|
52
|
+
"eslint": "9.16.0",
|
|
53
|
+
"husky": "9.1.7",
|
|
54
|
+
"lint-staged": "15.2.11",
|
|
55
|
+
"rimraf": "6.0.1",
|
|
57
56
|
"ts-node": "10.9.2",
|
|
58
|
-
"typescript": "5.
|
|
57
|
+
"typescript": "5.7.2",
|
|
59
58
|
"unbuild": "2.0.0",
|
|
60
|
-
"vitepress": "1.
|
|
61
|
-
"vitest": "1.
|
|
59
|
+
"vitepress": "1.5.0",
|
|
60
|
+
"vitest": "2.1.8"
|
|
62
61
|
},
|
|
63
62
|
"engines": {
|
|
64
63
|
"node": ">=20",
|