@ttsc/lint 0.15.0 → 0.15.2
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/README.md +2 -2
- package/lib/structures/rules/ITtscLintTestingLibraryRules.d.ts +2 -2
- package/lib/structures/rules/ITtscLintUnicornRules.d.ts +3 -3
- package/package.json +2 -2
- package/src/structures/rules/ITtscLintTestingLibraryRules.ts +2 -2
- package/src/structures/rules/ITtscLintUnicornRules.ts +3 -3
package/README.md
CHANGED
|
@@ -817,7 +817,7 @@ Source: [`eslint-plugin-unicorn`](https://github.com/sindresorhus/eslint-plugin-
|
|
|
817
817
|
- [`unicorn/custom-error-definition`](https://github.com/samchon/ttsc/blob/master/tests/test-lint/src/cases/unicorn-custom-error-definition.ts): require user-defined `Error` subclasses to set `name`, call `super(message)`, and assign their stack correctly.
|
|
818
818
|
- [`unicorn/empty-brace-spaces`](https://github.com/samchon/ttsc/blob/master/tests/test-lint/src/cases/unicorn-empty-brace-spaces.ts): reject whitespace inside empty `{}` braces.
|
|
819
819
|
- [`unicorn/error-message`](https://github.com/samchon/ttsc/blob/master/tests/test-lint/src/cases/unicorn-error-message.ts): require a non-empty `message` argument when constructing a built-in `Error`.
|
|
820
|
-
- [`unicorn/escape-case`](https://github.com/samchon/ttsc/blob/master/tests/test-lint/src/cases/unicorn-escape-case.ts): require consistent case for escape sequences (`\xA9` over `\xa9`,
|
|
820
|
+
- [`unicorn/escape-case`](https://github.com/samchon/ttsc/blob/master/tests/test-lint/src/cases/unicorn-escape-case.ts): require consistent case for escape sequences (`\xA9` over `\xa9`, `\u00B5` over `\u00b5`).
|
|
821
821
|
- [`unicorn/expiring-todo-comments`](https://github.com/samchon/ttsc/blob/master/tests/test-lint/src/cases/unicorn-expiring-todo-comments.ts): require every `TODO`/`FIXME`/`XXX` comment to declare an expiration date or package version.
|
|
822
822
|
- [`unicorn/explicit-length-check`](https://github.com/samchon/ttsc/blob/master/tests/test-lint/src/cases/unicorn-explicit-length-check.ts): require explicit comparison of `.length` / `.size` instead of relying on truthy coercion.
|
|
823
823
|
- [`unicorn/filename-case`](https://github.com/samchon/ttsc/blob/master/tests/test-lint/src/cases/unicorn-filename-case.ts): enforce a single case style (kebab/camel/snake/pascal) for source filenames.
|
|
@@ -839,7 +839,7 @@ Source: [`eslint-plugin-unicorn`](https://github.com/sindresorhus/eslint-plugin-
|
|
|
839
839
|
- [`unicorn/no-document-cookie`](https://github.com/samchon/ttsc/blob/master/tests/test-lint/src/cases/unicorn-no-document-cookie.ts): reject direct reads or assignments to `document.cookie`; use the Cookie Store API or a wrapper.
|
|
840
840
|
- [`unicorn/no-empty-file`](https://github.com/samchon/ttsc/blob/master/tests/test-lint/src/cases/unicorn-no-empty-file.ts): reject source files whose only content is whitespace and/or comments.
|
|
841
841
|
- [`unicorn/no-for-loop`](https://github.com/samchon/ttsc/blob/master/tests/test-lint/src/cases/unicorn-no-for-loop.ts): prefer `for...of` over index-based `for` loops over arrays.
|
|
842
|
-
- [`unicorn/no-hex-escape`](https://github.com/samchon/ttsc/blob/master/tests/test-lint/src/cases/unicorn-no-hex-escape.ts): prefer Unicode escape (
|
|
842
|
+
- [`unicorn/no-hex-escape`](https://github.com/samchon/ttsc/blob/master/tests/test-lint/src/cases/unicorn-no-hex-escape.ts): prefer Unicode escape (`\u00A9`) over hexadecimal escape (`\xA9`).
|
|
843
843
|
- [`unicorn/no-immediate-mutation`](https://github.com/samchon/ttsc/blob/master/tests/test-lint/src/cases/unicorn-no-immediate-mutation.ts): reject mutating a value on the same expression that produces it (`[...x].push(y)`); separate the construction and the mutation.
|
|
844
844
|
- [`unicorn/no-instanceof-builtins`](https://github.com/samchon/ttsc/blob/master/tests/test-lint/src/cases/unicorn-no-instanceof-builtins.ts): reject `instanceof Array`, `instanceof Error`, `instanceof Map`, etc.. They fail across realms and for subclasses.
|
|
845
845
|
- [`unicorn/no-invalid-fetch-options`](https://github.com/samchon/ttsc/blob/master/tests/test-lint/src/cases/unicorn-no-invalid-fetch-options.ts): reject GET / HEAD `fetch()` calls that also set a request `body`, which throws at runtime.
|
|
@@ -230,9 +230,9 @@ export interface ITtscLintTestingLibraryRules {
|
|
|
230
230
|
*/
|
|
231
231
|
"testing-library/prefer-presence-queries"?: TtscLintRuleSetting;
|
|
232
232
|
/**
|
|
233
|
-
* Prefer `queryBy*` inside
|
|
233
|
+
* Prefer `queryBy*` inside disappearance waits.
|
|
234
234
|
*
|
|
235
|
-
*
|
|
235
|
+
* `waitFor` retries the callback against the disappearing element, but
|
|
236
236
|
* `getBy*` throws on the very state being waited for, which produces a noisy
|
|
237
237
|
* error in the trace each retry.
|
|
238
238
|
*
|
|
@@ -94,8 +94,8 @@ export interface ITtscLintUnicornRules {
|
|
|
94
94
|
*/
|
|
95
95
|
"unicorn/error-message"?: TtscLintRuleSetting;
|
|
96
96
|
/**
|
|
97
|
-
* Require consistent case for escape sequences (`\xA9` over `\xa9`,
|
|
98
|
-
*
|
|
97
|
+
* Require consistent case for escape sequences (`\xA9` over `\xa9`, `\u00B5`
|
|
98
|
+
* over `\u00b5`).
|
|
99
99
|
*
|
|
100
100
|
* @reference https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/escape-case.md
|
|
101
101
|
*/
|
|
@@ -243,7 +243,7 @@ export interface ITtscLintUnicornRules {
|
|
|
243
243
|
*/
|
|
244
244
|
"unicorn/no-for-loop"?: TtscLintRuleSetting;
|
|
245
245
|
/**
|
|
246
|
-
* Prefer Unicode escape (
|
|
246
|
+
* Prefer Unicode escape (`\u00A9`) over hexadecimal escape (`\xA9`).
|
|
247
247
|
*
|
|
248
248
|
* @reference https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-hex-escape.md
|
|
249
249
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ttsc/lint",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.2",
|
|
4
4
|
"description": "Reference ttsc plugin: ESLint-style lint rules hosted in the same Program/Checker as the type-check pass.",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"@typescript/native-preview": "7.0.0-dev.20260421.2",
|
|
37
37
|
"@types/node": "^25.3.0",
|
|
38
38
|
"rimraf": "^6.1.2",
|
|
39
|
-
"ttsc": "0.15.
|
|
39
|
+
"ttsc": "0.15.2"
|
|
40
40
|
},
|
|
41
41
|
"repository": {
|
|
42
42
|
"type": "git",
|
|
@@ -257,9 +257,9 @@ export interface ITtscLintTestingLibraryRules {
|
|
|
257
257
|
"testing-library/prefer-presence-queries"?: TtscLintRuleSetting;
|
|
258
258
|
|
|
259
259
|
/**
|
|
260
|
-
* Prefer `queryBy*` inside
|
|
260
|
+
* Prefer `queryBy*` inside disappearance waits.
|
|
261
261
|
*
|
|
262
|
-
*
|
|
262
|
+
* `waitFor` retries the callback against the disappearing element, but
|
|
263
263
|
* `getBy*` throws on the very state being waited for, which produces a noisy
|
|
264
264
|
* error in the trace each retry.
|
|
265
265
|
*
|
|
@@ -107,8 +107,8 @@ export interface ITtscLintUnicornRules {
|
|
|
107
107
|
"unicorn/error-message"?: TtscLintRuleSetting;
|
|
108
108
|
|
|
109
109
|
/**
|
|
110
|
-
* Require consistent case for escape sequences (`\xA9` over `\xa9`,
|
|
111
|
-
*
|
|
110
|
+
* Require consistent case for escape sequences (`\xA9` over `\xa9`, `\u00B5`
|
|
111
|
+
* over `\u00b5`).
|
|
112
112
|
*
|
|
113
113
|
* @reference https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/escape-case.md
|
|
114
114
|
*/
|
|
@@ -278,7 +278,7 @@ export interface ITtscLintUnicornRules {
|
|
|
278
278
|
"unicorn/no-for-loop"?: TtscLintRuleSetting;
|
|
279
279
|
|
|
280
280
|
/**
|
|
281
|
-
* Prefer Unicode escape (
|
|
281
|
+
* Prefer Unicode escape (`\u00A9`) over hexadecimal escape (`\xA9`).
|
|
282
282
|
*
|
|
283
283
|
* @reference https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-hex-escape.md
|
|
284
284
|
*/
|