@rotki/eslint-plugin 0.6.1 → 0.7.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 +7 -113
- package/dist/index.mjs +7 -113
- package/package.json +16 -16
package/dist/index.cjs
CHANGED
|
@@ -23,114 +23,9 @@ function _interopNamespaceCompat(e) {
|
|
|
23
23
|
const createDebug__default = /*#__PURE__*/_interopDefaultCompat(createDebug);
|
|
24
24
|
const compat__namespace = /*#__PURE__*/_interopNamespaceCompat(compat);
|
|
25
25
|
|
|
26
|
-
const
|
|
27
|
-
const version = "0.6.1";
|
|
28
|
-
const packageManager = "pnpm@9.15.0";
|
|
29
|
-
const type = "module";
|
|
30
|
-
const license = "AGPL-3.0";
|
|
31
|
-
const bugs = {
|
|
32
|
-
url: "https://github.com/rotki/eslint-plugin/issues"
|
|
33
|
-
};
|
|
34
|
-
const repository = {
|
|
35
|
-
type: "git",
|
|
36
|
-
url: "https://github.com/rotki/eslint-plugin.git"
|
|
37
|
-
};
|
|
38
|
-
const author = "Rotki Solutions GmbH <info@rotki.com>";
|
|
39
|
-
const files = [
|
|
40
|
-
"dist"
|
|
41
|
-
];
|
|
42
|
-
const main = "./dist/index.mjs";
|
|
43
|
-
const module$1 = "./dist/index.mjs";
|
|
44
|
-
const types = "./dist/index.d.ts";
|
|
45
|
-
const exports$1 = {
|
|
46
|
-
".": {
|
|
47
|
-
types: "./dist/index.d.ts",
|
|
48
|
-
require: "./dist/index.cjs",
|
|
49
|
-
"import": "./dist/index.mjs"
|
|
50
|
-
}
|
|
51
|
-
};
|
|
52
|
-
const sideEffects = false;
|
|
53
|
-
const scripts = {
|
|
54
|
-
clean: "rimraf .nyc_output coverage dist docs/.vitepress/dist",
|
|
55
|
-
coverage: "nyc report --reporter lcov && opener coverage/lcov-report/index.html",
|
|
56
|
-
generate: "node --experimental-specifier-resolution=node --loader ts-node/esm scripts/update-rule-docs.ts",
|
|
57
|
-
"generate:index": "node --experimental-specifier-resolution=node --loader ts-node/esm scripts/update-docs-index.ts",
|
|
58
|
-
lint: "eslint .",
|
|
59
|
-
"lint:fix": "eslint . --fix",
|
|
60
|
-
build: "unbuild",
|
|
61
|
-
dev: "unbuild --stub",
|
|
62
|
-
prepublishOnly: "pnpm run build",
|
|
63
|
-
test: "vitest",
|
|
64
|
-
"test:coverage": "vitest run --coverage",
|
|
65
|
-
"new": "node --experimental-specifier-resolution=node --loader ts-node/esm ./scripts/new-rule.ts",
|
|
66
|
-
docs: "vitepress dev docs",
|
|
67
|
-
"docs:build": "pnpm run generate && pnpm run generate:index && vitepress build docs",
|
|
68
|
-
prepare: "husky",
|
|
69
|
-
typecheck: "tsc --noEmit",
|
|
70
|
-
release: "bumpp -r --no-push"
|
|
71
|
-
};
|
|
72
|
-
const peerDependencies = {
|
|
73
|
-
eslint: "^9.0.0"
|
|
74
|
-
};
|
|
75
|
-
const dependencies = {
|
|
76
|
-
"@typescript-eslint/utils": "8.18.0",
|
|
77
|
-
debug: "4.4.0",
|
|
78
|
-
"eslint-compat-utils": "0.6.4",
|
|
79
|
-
"jsonc-eslint-parser": "2.4.0",
|
|
80
|
-
scule: "1.3.0",
|
|
81
|
-
"vue-eslint-parser": "9.4.3",
|
|
82
|
-
"yaml-eslint-parser": "1.2.3"
|
|
83
|
-
};
|
|
84
|
-
const devDependencies = {
|
|
85
|
-
"@commitlint/cli": "19.6.0",
|
|
86
|
-
"@commitlint/config-conventional": "19.6.0",
|
|
87
|
-
"@rotki/eslint-config": "3.6.0",
|
|
88
|
-
"@types/debug": "4.1.12",
|
|
89
|
-
"@types/node": "20",
|
|
90
|
-
"@typescript-eslint/eslint-plugin": "8.18.0",
|
|
91
|
-
"@typescript-eslint/parser": "8.18.0",
|
|
92
|
-
"@typescript-eslint/rule-tester": "8.18.0",
|
|
93
|
-
"@vitest/coverage-v8": "2.1.8",
|
|
94
|
-
bumpp: "9.9.0",
|
|
95
|
-
debug: "4.4.0",
|
|
96
|
-
eslint: "9.16.0",
|
|
97
|
-
husky: "9.1.7",
|
|
98
|
-
"lint-staged": "15.2.11",
|
|
99
|
-
rimraf: "6.0.1",
|
|
100
|
-
"ts-node": "10.9.2",
|
|
101
|
-
typescript: "5.7.2",
|
|
102
|
-
unbuild: "2.0.0",
|
|
103
|
-
vitepress: "1.5.0",
|
|
104
|
-
vitest: "2.1.8"
|
|
105
|
-
};
|
|
106
|
-
const engines = {
|
|
107
|
-
node: ">=20",
|
|
108
|
-
pnpm: ">=9 <10"
|
|
109
|
-
};
|
|
26
|
+
const version = "0.7.0";
|
|
110
27
|
const pkg = {
|
|
111
|
-
|
|
112
|
-
version: version,
|
|
113
|
-
packageManager: packageManager,
|
|
114
|
-
type: type,
|
|
115
|
-
license: license,
|
|
116
|
-
bugs: bugs,
|
|
117
|
-
repository: repository,
|
|
118
|
-
author: author,
|
|
119
|
-
files: files,
|
|
120
|
-
main: main,
|
|
121
|
-
module: module$1,
|
|
122
|
-
types: types,
|
|
123
|
-
exports: exports$1,
|
|
124
|
-
sideEffects: sideEffects,
|
|
125
|
-
scripts: scripts,
|
|
126
|
-
peerDependencies: peerDependencies,
|
|
127
|
-
dependencies: dependencies,
|
|
128
|
-
devDependencies: devDependencies,
|
|
129
|
-
engines: engines,
|
|
130
|
-
"lint-staged": {
|
|
131
|
-
"*.{js,cjs,ts,vue,yml,json,md}": "eslint"
|
|
132
|
-
}
|
|
133
|
-
};
|
|
28
|
+
version: version};
|
|
134
29
|
|
|
135
30
|
function getFilename(context) {
|
|
136
31
|
return compat__namespace.getFilename(context);
|
|
@@ -311,7 +206,7 @@ function findReplacement(className) {
|
|
|
311
206
|
return replace(matches);
|
|
312
207
|
}
|
|
313
208
|
}
|
|
314
|
-
return
|
|
209
|
+
return undefined;
|
|
315
210
|
}
|
|
316
211
|
function getRange(node) {
|
|
317
212
|
if (node.type === "VAttribute" && node.value && node.value.range)
|
|
@@ -557,7 +452,7 @@ function hasReplacement(tag) {
|
|
|
557
452
|
function getPropName(node) {
|
|
558
453
|
if (node.directive) {
|
|
559
454
|
if (node.key.argument?.type !== "VIdentifier")
|
|
560
|
-
return
|
|
455
|
+
return undefined;
|
|
561
456
|
return scule.kebabCase(node.key.argument.rawName);
|
|
562
457
|
}
|
|
563
458
|
return scule.kebabCase(node.key.rawName);
|
|
@@ -801,13 +696,12 @@ const plugin = {
|
|
|
801
696
|
"no-legacy-library-import": noLegacyLibraryImport
|
|
802
697
|
}
|
|
803
698
|
};
|
|
804
|
-
const plugin$1 = plugin;
|
|
805
699
|
|
|
806
700
|
const configs = {
|
|
807
|
-
"recommended": createRecommended(plugin
|
|
808
|
-
"recommended-flat": createRecommended(plugin
|
|
701
|
+
"recommended": createRecommended(plugin, "@rotki", false),
|
|
702
|
+
"recommended-flat": createRecommended(plugin, "@rotki", true)
|
|
809
703
|
};
|
|
810
704
|
|
|
811
|
-
const index = Object.assign(plugin
|
|
705
|
+
const index = Object.assign(plugin, { configs });
|
|
812
706
|
|
|
813
707
|
module.exports = index;
|
package/dist/index.mjs
CHANGED
|
@@ -4,114 +4,9 @@ import * as compat from 'eslint-compat-utils';
|
|
|
4
4
|
import { pascalCase, kebabCase } from 'scule';
|
|
5
5
|
import { TSESTree } from '@typescript-eslint/utils';
|
|
6
6
|
|
|
7
|
-
const
|
|
8
|
-
const version = "0.6.1";
|
|
9
|
-
const packageManager = "pnpm@9.15.0";
|
|
10
|
-
const type = "module";
|
|
11
|
-
const license = "AGPL-3.0";
|
|
12
|
-
const bugs = {
|
|
13
|
-
url: "https://github.com/rotki/eslint-plugin/issues"
|
|
14
|
-
};
|
|
15
|
-
const repository = {
|
|
16
|
-
type: "git",
|
|
17
|
-
url: "https://github.com/rotki/eslint-plugin.git"
|
|
18
|
-
};
|
|
19
|
-
const author = "Rotki Solutions GmbH <info@rotki.com>";
|
|
20
|
-
const files = [
|
|
21
|
-
"dist"
|
|
22
|
-
];
|
|
23
|
-
const main = "./dist/index.mjs";
|
|
24
|
-
const module = "./dist/index.mjs";
|
|
25
|
-
const types = "./dist/index.d.ts";
|
|
26
|
-
const exports = {
|
|
27
|
-
".": {
|
|
28
|
-
types: "./dist/index.d.ts",
|
|
29
|
-
require: "./dist/index.cjs",
|
|
30
|
-
"import": "./dist/index.mjs"
|
|
31
|
-
}
|
|
32
|
-
};
|
|
33
|
-
const sideEffects = false;
|
|
34
|
-
const scripts = {
|
|
35
|
-
clean: "rimraf .nyc_output coverage dist docs/.vitepress/dist",
|
|
36
|
-
coverage: "nyc report --reporter lcov && opener coverage/lcov-report/index.html",
|
|
37
|
-
generate: "node --experimental-specifier-resolution=node --loader ts-node/esm scripts/update-rule-docs.ts",
|
|
38
|
-
"generate:index": "node --experimental-specifier-resolution=node --loader ts-node/esm scripts/update-docs-index.ts",
|
|
39
|
-
lint: "eslint .",
|
|
40
|
-
"lint:fix": "eslint . --fix",
|
|
41
|
-
build: "unbuild",
|
|
42
|
-
dev: "unbuild --stub",
|
|
43
|
-
prepublishOnly: "pnpm run build",
|
|
44
|
-
test: "vitest",
|
|
45
|
-
"test:coverage": "vitest run --coverage",
|
|
46
|
-
"new": "node --experimental-specifier-resolution=node --loader ts-node/esm ./scripts/new-rule.ts",
|
|
47
|
-
docs: "vitepress dev docs",
|
|
48
|
-
"docs:build": "pnpm run generate && pnpm run generate:index && vitepress build docs",
|
|
49
|
-
prepare: "husky",
|
|
50
|
-
typecheck: "tsc --noEmit",
|
|
51
|
-
release: "bumpp -r --no-push"
|
|
52
|
-
};
|
|
53
|
-
const peerDependencies = {
|
|
54
|
-
eslint: "^9.0.0"
|
|
55
|
-
};
|
|
56
|
-
const dependencies = {
|
|
57
|
-
"@typescript-eslint/utils": "8.18.0",
|
|
58
|
-
debug: "4.4.0",
|
|
59
|
-
"eslint-compat-utils": "0.6.4",
|
|
60
|
-
"jsonc-eslint-parser": "2.4.0",
|
|
61
|
-
scule: "1.3.0",
|
|
62
|
-
"vue-eslint-parser": "9.4.3",
|
|
63
|
-
"yaml-eslint-parser": "1.2.3"
|
|
64
|
-
};
|
|
65
|
-
const devDependencies = {
|
|
66
|
-
"@commitlint/cli": "19.6.0",
|
|
67
|
-
"@commitlint/config-conventional": "19.6.0",
|
|
68
|
-
"@rotki/eslint-config": "3.6.0",
|
|
69
|
-
"@types/debug": "4.1.12",
|
|
70
|
-
"@types/node": "20",
|
|
71
|
-
"@typescript-eslint/eslint-plugin": "8.18.0",
|
|
72
|
-
"@typescript-eslint/parser": "8.18.0",
|
|
73
|
-
"@typescript-eslint/rule-tester": "8.18.0",
|
|
74
|
-
"@vitest/coverage-v8": "2.1.8",
|
|
75
|
-
bumpp: "9.9.0",
|
|
76
|
-
debug: "4.4.0",
|
|
77
|
-
eslint: "9.16.0",
|
|
78
|
-
husky: "9.1.7",
|
|
79
|
-
"lint-staged": "15.2.11",
|
|
80
|
-
rimraf: "6.0.1",
|
|
81
|
-
"ts-node": "10.9.2",
|
|
82
|
-
typescript: "5.7.2",
|
|
83
|
-
unbuild: "2.0.0",
|
|
84
|
-
vitepress: "1.5.0",
|
|
85
|
-
vitest: "2.1.8"
|
|
86
|
-
};
|
|
87
|
-
const engines = {
|
|
88
|
-
node: ">=20",
|
|
89
|
-
pnpm: ">=9 <10"
|
|
90
|
-
};
|
|
7
|
+
const version = "0.7.0";
|
|
91
8
|
const pkg = {
|
|
92
|
-
|
|
93
|
-
version: version,
|
|
94
|
-
packageManager: packageManager,
|
|
95
|
-
type: type,
|
|
96
|
-
license: license,
|
|
97
|
-
bugs: bugs,
|
|
98
|
-
repository: repository,
|
|
99
|
-
author: author,
|
|
100
|
-
files: files,
|
|
101
|
-
main: main,
|
|
102
|
-
module: module,
|
|
103
|
-
types: types,
|
|
104
|
-
exports: exports,
|
|
105
|
-
sideEffects: sideEffects,
|
|
106
|
-
scripts: scripts,
|
|
107
|
-
peerDependencies: peerDependencies,
|
|
108
|
-
dependencies: dependencies,
|
|
109
|
-
devDependencies: devDependencies,
|
|
110
|
-
engines: engines,
|
|
111
|
-
"lint-staged": {
|
|
112
|
-
"*.{js,cjs,ts,vue,yml,json,md}": "eslint"
|
|
113
|
-
}
|
|
114
|
-
};
|
|
9
|
+
version: version};
|
|
115
10
|
|
|
116
11
|
function getFilename(context) {
|
|
117
12
|
return compat.getFilename(context);
|
|
@@ -292,7 +187,7 @@ function findReplacement(className) {
|
|
|
292
187
|
return replace(matches);
|
|
293
188
|
}
|
|
294
189
|
}
|
|
295
|
-
return
|
|
190
|
+
return undefined;
|
|
296
191
|
}
|
|
297
192
|
function getRange(node) {
|
|
298
193
|
if (node.type === "VAttribute" && node.value && node.value.range)
|
|
@@ -538,7 +433,7 @@ function hasReplacement(tag) {
|
|
|
538
433
|
function getPropName(node) {
|
|
539
434
|
if (node.directive) {
|
|
540
435
|
if (node.key.argument?.type !== "VIdentifier")
|
|
541
|
-
return
|
|
436
|
+
return undefined;
|
|
542
437
|
return kebabCase(node.key.argument.rawName);
|
|
543
438
|
}
|
|
544
439
|
return kebabCase(node.key.rawName);
|
|
@@ -782,13 +677,12 @@ const plugin = {
|
|
|
782
677
|
"no-legacy-library-import": noLegacyLibraryImport
|
|
783
678
|
}
|
|
784
679
|
};
|
|
785
|
-
const plugin$1 = plugin;
|
|
786
680
|
|
|
787
681
|
const configs = {
|
|
788
|
-
"recommended": createRecommended(plugin
|
|
789
|
-
"recommended-flat": createRecommended(plugin
|
|
682
|
+
"recommended": createRecommended(plugin, "@rotki", false),
|
|
683
|
+
"recommended-flat": createRecommended(plugin, "@rotki", true)
|
|
790
684
|
};
|
|
791
685
|
|
|
792
|
-
const index = Object.assign(plugin
|
|
686
|
+
const index = Object.assign(plugin, { configs });
|
|
793
687
|
|
|
794
688
|
export { index as default };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rotki/eslint-plugin",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "AGPL-3.0",
|
|
6
6
|
"bugs": {
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"eslint": "^9.0.0"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@typescript-eslint/utils": "8.
|
|
32
|
+
"@typescript-eslint/utils": "8.23.0",
|
|
33
33
|
"debug": "4.4.0",
|
|
34
34
|
"eslint-compat-utils": "0.6.4",
|
|
35
35
|
"jsonc-eslint-parser": "2.4.0",
|
|
@@ -38,26 +38,26 @@
|
|
|
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": "3.
|
|
41
|
+
"@commitlint/cli": "19.7.1",
|
|
42
|
+
"@commitlint/config-conventional": "19.7.1",
|
|
43
|
+
"@rotki/eslint-config": "3.7.0",
|
|
44
44
|
"@types/debug": "4.1.12",
|
|
45
45
|
"@types/node": "20",
|
|
46
|
-
"@typescript-eslint/eslint-plugin": "8.
|
|
47
|
-
"@typescript-eslint/parser": "8.
|
|
48
|
-
"@typescript-eslint/rule-tester": "8.
|
|
49
|
-
"@vitest/coverage-v8": "
|
|
50
|
-
"bumpp": "
|
|
46
|
+
"@typescript-eslint/eslint-plugin": "8.23.0",
|
|
47
|
+
"@typescript-eslint/parser": "8.23.0",
|
|
48
|
+
"@typescript-eslint/rule-tester": "8.23.0",
|
|
49
|
+
"@vitest/coverage-v8": "3.0.5",
|
|
50
|
+
"bumpp": "10.0.1",
|
|
51
51
|
"debug": "4.4.0",
|
|
52
|
-
"eslint": "9.
|
|
52
|
+
"eslint": "9.19.0",
|
|
53
53
|
"husky": "9.1.7",
|
|
54
|
-
"lint-staged": "15.
|
|
54
|
+
"lint-staged": "15.4.3",
|
|
55
55
|
"rimraf": "6.0.1",
|
|
56
56
|
"ts-node": "10.9.2",
|
|
57
|
-
"typescript": "5.7.
|
|
58
|
-
"unbuild": "
|
|
59
|
-
"vitepress": "1.
|
|
60
|
-
"vitest": "
|
|
57
|
+
"typescript": "5.7.3",
|
|
58
|
+
"unbuild": "3.3.1",
|
|
59
|
+
"vitepress": "1.6.3",
|
|
60
|
+
"vitest": "3.0.5"
|
|
61
61
|
},
|
|
62
62
|
"engines": {
|
|
63
63
|
"node": ">=20",
|