eslint-plugin-complete 1.0.6 → 1.0.8
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/comments.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"comments.d.ts","sourceRoot":"","sources":["../src/comments.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEnE;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAChC,UAAU,EAAE,QAAQ,CAAC,UAAU,EAC/B,OAAO,EAAE,QAAQ,CAAC,OAAO,GACxB,OAAO,CAYT;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CA2BtD;AAED;;;;;;;;GAQG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAErD;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,
|
|
1
|
+
{"version":3,"file":"comments.d.ts","sourceRoot":"","sources":["../src/comments.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEnE;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAChC,UAAU,EAAE,QAAQ,CAAC,UAAU,EAC/B,OAAO,EAAE,QAAQ,CAAC,OAAO,GACxB,OAAO,CAYT;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CA2BtD;AAED;;;;;;;;GAQG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAErD;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAetD"}
|
package/dist/comments.js
CHANGED
|
@@ -59,6 +59,7 @@ export function isSpecialComment(text) {
|
|
|
59
59
|
text.startsWith("cspell:") ||
|
|
60
60
|
text.startsWith("ts-prune-") || // e.g. ts-prune-ignore-next
|
|
61
61
|
text.startsWith("@ts-") ||
|
|
62
|
+
text.startsWith("@template-") || // e.g. @template-customization-start (complete-cli directives)
|
|
62
63
|
text.startsWith("TODO:") ||
|
|
63
64
|
text.startsWith("FIXME:") ||
|
|
64
65
|
text === "TODO" ||
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"no-mutable-return.d.ts","sourceRoot":"","sources":["../../src/rules/no-mutable-return.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAMvD,KAAK,UAAU,GAAG,cAAc,GAAG,YAAY,GAAG,YAAY,CAAC;AAE/D,eAAO,MAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"no-mutable-return.d.ts","sourceRoot":"","sources":["../../src/rules/no-mutable-return.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAMvD,KAAK,UAAU,GAAG,cAAc,GAAG,YAAY,GAAG,YAAY,CAAC;AAE/D,eAAO,MAAM,eAAe,wHAoD1B,CAAC"}
|
|
@@ -39,10 +39,11 @@ export const noMutableReturn = createRule({
|
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
|
+
// We explicitly do not include `TSESTree.ArrowFunctionExpression` because arrow functions are
|
|
43
|
+
// commonly used inside of other functions, which compartmentalize the mutations.
|
|
42
44
|
return {
|
|
43
45
|
FunctionDeclaration: checkReturnType,
|
|
44
46
|
FunctionExpression: checkReturnType,
|
|
45
|
-
ArrowFunctionExpression: checkReturnType,
|
|
46
47
|
};
|
|
47
48
|
},
|
|
48
49
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-complete",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.8",
|
|
4
4
|
"description": "An ESLint plugin that contains useful rules.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -44,23 +44,23 @@
|
|
|
44
44
|
"test": "jest"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@typescript-eslint/type-utils": "^8.
|
|
48
|
-
"@typescript-eslint/utils": "^8.
|
|
49
|
-
"typescript-eslint": "^8.
|
|
47
|
+
"@typescript-eslint/type-utils": "^8.10.0",
|
|
48
|
+
"@typescript-eslint/utils": "^8.10.0",
|
|
49
|
+
"typescript-eslint": "^8.10.0"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@babel/core": "^7.25.
|
|
53
|
-
"@babel/preset-env": "^7.25.
|
|
52
|
+
"@babel/core": "^7.25.8",
|
|
53
|
+
"@babel/preset-env": "^7.25.8",
|
|
54
54
|
"@babel/preset-typescript": "^7.25.7",
|
|
55
55
|
"@types/jest": "^29.5.13",
|
|
56
|
-
"@types/node": "^22.7.
|
|
57
|
-
"@typescript-eslint/rule-tester": "^8.
|
|
58
|
-
"@typescript-eslint/types": "^8.
|
|
56
|
+
"@types/node": "^22.7.6",
|
|
57
|
+
"@typescript-eslint/rule-tester": "^8.10.0",
|
|
58
|
+
"@typescript-eslint/types": "^8.10.0",
|
|
59
59
|
"complete-common": "^1.0.0",
|
|
60
60
|
"complete-node": "^1.5.1",
|
|
61
61
|
"jest": "^29.7.0",
|
|
62
62
|
"prettier": "^3.3.3",
|
|
63
|
-
"typescript": "5.
|
|
63
|
+
"typescript": "^5.6.3"
|
|
64
64
|
},
|
|
65
65
|
"peerDependencies": {
|
|
66
66
|
"eslint": ">= 9.0.0",
|