@alint-js/plugin-simplicity 0.0.22 → 0.0.24
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.mjs +4 -4
- package/package.json +4 -4
package/dist/index.mjs
CHANGED
|
@@ -922,8 +922,8 @@ const duplicatedHelperRule = defineRule({
|
|
|
922
922
|
cache: false,
|
|
923
923
|
create: (ctx) => {
|
|
924
924
|
const settings = readSimplicitySettings(ctx);
|
|
925
|
-
return { async
|
|
926
|
-
if (
|
|
925
|
+
return { async onTargetFile(target) {
|
|
926
|
+
if (resolveExtractLanguage(target.file.path) === void 0) return;
|
|
927
927
|
if (isIgnored$1(ctx.cwd, target.file.path, settings.ignores)) return;
|
|
928
928
|
const index = await repoIndexFor(ctx, {
|
|
929
929
|
cwd: ctx.cwd,
|
|
@@ -1149,8 +1149,8 @@ const needlessHelperRule = defineRule({
|
|
|
1149
1149
|
cache: false,
|
|
1150
1150
|
create: (ctx) => {
|
|
1151
1151
|
const settings = readSimplicitySettings(ctx);
|
|
1152
|
-
return { async
|
|
1153
|
-
if (
|
|
1152
|
+
return { async onTargetFile(target) {
|
|
1153
|
+
if (resolveExtractLanguage(target.file.path) === void 0) return;
|
|
1154
1154
|
if (!settings.judge || isIgnored(ctx.cwd, target.file.path, settings.ignores)) return;
|
|
1155
1155
|
const candidates = helpersIn(await repoIndexFor(ctx, {
|
|
1156
1156
|
cwd: ctx.cwd,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alint-js/plugin-simplicity",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.24",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
7
7
|
"types": "./dist/index.d.mts",
|
|
@@ -19,13 +19,13 @@
|
|
|
19
19
|
"tree-sitter-wasms": "^0.1.13",
|
|
20
20
|
"valibot": "^1.4.1",
|
|
21
21
|
"web-tree-sitter": "^0.24.7",
|
|
22
|
-
"@alint-js/core": "0.0.
|
|
23
|
-
"@alint-js/tools-fs": "0.0.
|
|
22
|
+
"@alint-js/core": "0.0.24",
|
|
23
|
+
"@alint-js/tools-fs": "0.0.24"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"tsdown": "^0.22.3",
|
|
27
27
|
"typescript": "^6.0.3",
|
|
28
|
-
"@alint-js/agent-apeira": "0.0.
|
|
28
|
+
"@alint-js/agent-apeira": "0.0.24"
|
|
29
29
|
},
|
|
30
30
|
"scripts": {
|
|
31
31
|
"build": "tsdown",
|