Skip to content

Commit

Permalink
typescript-eslint/recommended-requiring-type-checking
Browse files Browse the repository at this point in the history
  • Loading branch information
ajvincent committed Dec 30, 2022
1 parent 926d672 commit 630875b
Show file tree
Hide file tree
Showing 96 changed files with 321 additions and 355 deletions.
7 changes: 5 additions & 2 deletions .eslintrc-typescript.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
{
"env": {
"es2021": true,
"es2022": true,
"jasmine": true,
"node": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:jsdoc/recommended"
],

Expand All @@ -26,7 +27,9 @@
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2022,
"sourceType": "module"
"sourceType": "module",
"tsconfigRootDir": ".",
"project": ["./tsconfig.json"]
},
"plugins": [
"@typescript-eslint",
Expand Down
6 changes: 3 additions & 3 deletions build/tools/bootstrap.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ try {
await runStage(stageDirs[0], "clean");
}
catch (ex) {
console.error("failed at stage 1");
console.error("failed stage 1 @ " + stageDirs[0]);
throw ex;
}

Expand All @@ -87,7 +87,7 @@ try {
await runStage(stageDirs[1], "all");
}
catch (ex) {
console.error("failed at stage 2");
console.error("failed stage 2 @ " + stageDirs[1]);
throw ex;
}

Expand All @@ -102,7 +102,7 @@ try {
await runStage(stageDirs[2], "all");
}
catch (ex) {
console.error("failed at stage 3");
console.error("failed stage 3 @ " + stageDirs[2]);
throw ex;
}

Expand Down
2 changes: 1 addition & 1 deletion exports/StrongStrongMap.mjs.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions exports/StrongStrongMap.mts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class StrongStrongMap<
#hasher: KeyHasher = new KeyHasher();

constructor(
iterable?: [__MK0__,__MK1__, __V__][]
iterable?: [__MK0__, __MK1__, __V__][]
)
{
if (iterable) {
Expand Down Expand Up @@ -92,7 +92,7 @@ class StrongStrongMap<
* @returns {boolean} True if we found the value and deleted it.
* @public
*/
delete(key1: __MK0__,key2: __MK1__) : boolean
delete(key1: __MK0__, key2: __MK1__) : boolean
{

const __hash__ = this.#hasher.getHashIfExists(key1, key2);
Expand Down Expand Up @@ -190,14 +190,14 @@ class StrongStrongMap<
getDefault(key1: __MK0__, key2: __MK1__, __default__: () => __V__) : __V__
{

const __hash__ = this.#hasher.getHash(key1,key2);
const __hash__ = this.#hasher.getHash(key1, key2);
{
const __valueAndKeySet__ = this.#root.get(__hash__);
if (__valueAndKeySet__)
return __valueAndKeySet__.value;
}

const __keySet__: [__MK0__,__MK1__] = [key1,key2];
const __keySet__: [__MK0__, __MK1__] = [key1, key2];
Object.freeze(__keySet__);
const value = __default__();
this.#root.set(__hash__, {value, keySet: __keySet__});
Expand Down Expand Up @@ -243,7 +243,7 @@ class StrongStrongMap<
* @returns {StrongStrongMap} This collection.
* @public
*/
set(key1: __MK0__,key2: __MK1__, value: __V__) : this
set(key1: __MK0__, key2: __MK1__, value: __V__) : this
{


Expand Down Expand Up @@ -284,7 +284,7 @@ export type ReadonlyStrongStrongMap<
__V__
> =
Pick<
StrongStrongMap<__MK0__,__MK1__, __V__>,
StrongStrongMap<__MK0__, __MK1__, __V__>,
"size" | "entries" | "get" | "has" | "keys" | "values"
> &
{
Expand Down
2 changes: 1 addition & 1 deletion exports/StrongStrongSet.mjs.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions exports/StrongStrongSet.mts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class StrongStrongSet<
#hasher: KeyHasher = new KeyHasher();

constructor(
iterable?: [__SK0__,__SK1__][]
iterable?: [__SK0__, __SK1__][]
)
{
if (iterable) {
Expand Down Expand Up @@ -185,7 +185,7 @@ export type ReadonlyStrongStrongSet<
__SK1__
> =
Pick<
StrongStrongSet<__SK0__,__SK1__>,
StrongStrongSet<__SK0__, __SK1__>,
"size" | "has" | "values"
> &
{
Expand Down
2 changes: 1 addition & 1 deletion exports/WeakStrongMap.mjs.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions exports/WeakStrongMap.mts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class WeakStrongMap<
*/
#root: WeakMap<WeakKey, __V__> = new WeakMap;

constructor(iterable?: [__MK0__,__MK1__, __V__][])
constructor(iterable?: [__MK0__, __MK1__, __V__][])
{
if (iterable) {
for (const [weakKey, strongKey, value] of iterable) {
Expand Down Expand Up @@ -199,7 +199,7 @@ export type ReadonlyWeakStrongMap<
__V__
>
= Pick<
WeakStrongMap<__MK0__,__MK1__, __V__>,
WeakStrongMap<__MK0__, __MK1__, __V__>,
"get" | "has" | "isValidKey"
>;

Expand Down
Loading

0 comments on commit 630875b

Please sign in to comment.