Add comprehensive development roadmap via GitHub Issues

Created 10 detailed GitHub issues covering:
- Project activation and management UI (#1-2)
- Worker node coordination and visualization (#3-4)
- Automated GitHub repository scanning (#5)
- Intelligent model-to-issue matching (#6)
- Multi-model task execution system (#7)
- N8N workflow integration (#8)
- Hive-Bzzz P2P bridge (#9)
- Peer assistance protocol (#10)

Each issue includes detailed specifications, acceptance criteria,
technical implementation notes, and dependency mapping.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
anthonyrawlins
2025-07-12 19:41:01 +10:00
parent 9a6a06da89
commit e89f2f4b7b
4980 changed files with 1501266 additions and 57 deletions

21
frontend/node_modules/eslint-plugin-storybook/LICENSE generated vendored Normal file
View File

@@ -0,0 +1,21 @@
MIT License
Copyright (c) 2022 Storybook contributors
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

View File

@@ -0,0 +1,5 @@
import { __commonJS } from './chunk-5EPSKZG5.mjs';
var require_addon_interactions=__commonJS({"src/configs/addon-interactions.ts"(exports,module){module.exports={plugins:["storybook"],overrides:[{files:["**/*.stories.@(ts|tsx|js|jsx|mjs|cjs)","**/*.story.@(ts|tsx|js|jsx|mjs|cjs)"],rules:{"react-hooks/rules-of-hooks":"off","import/no-anonymous-default-export":"off","storybook/await-interactions":"error","storybook/context-in-play-function":"error","storybook/use-storybook-expect":"error","storybook/use-storybook-testing-library":"error"}},{files:[".storybook/main.@(js|cjs|mjs|ts)"],rules:{"storybook/no-uninstalled-addons":"error"}}]};}});
export { require_addon_interactions };

View File

@@ -0,0 +1,3 @@
var __create=Object.create;var __defProp=Object.defineProperty;var __getOwnPropDesc=Object.getOwnPropertyDescriptor;var __getOwnPropNames=Object.getOwnPropertyNames;var __getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty;var __esm=(fn,res)=>function(){return fn&&(res=(0, fn[__getOwnPropNames(fn)[0]])(fn=0)),res};var __commonJS=(cb,mod)=>function(){return mod||(0, cb[__getOwnPropNames(cb)[0]])((mod={exports:{}}).exports,mod),mod.exports};var __copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to};var __toESM=(mod,isNodeMode,target)=>(target=mod!=null?__create(__getProtoOf(mod)):{},__copyProps(isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target,mod));
export { __commonJS, __esm, __toESM };

View File

@@ -0,0 +1,5 @@
import { __commonJS } from './chunk-5EPSKZG5.mjs';
var require_csf_strict=__commonJS({"src/configs/csf-strict.ts"(exports,module){module.exports={extends:"./configs/csf",rules:{"react-hooks/rules-of-hooks":"off","import/no-anonymous-default-export":"off","storybook/no-stories-of":"error","storybook/no-title-property-in-meta":"error"}};}});
export { require_csf_strict };

View File

@@ -0,0 +1,5 @@
import { __commonJS } from './chunk-5EPSKZG5.mjs';
var require_csf=__commonJS({"src/configs/csf.ts"(exports,module){module.exports={plugins:["storybook"],overrides:[{files:["**/*.stories.@(ts|tsx|js|jsx|mjs|cjs)","**/*.story.@(ts|tsx|js|jsx|mjs|cjs)"],rules:{"react-hooks/rules-of-hooks":"off","import/no-anonymous-default-export":"off","storybook/csf-component":"warn","storybook/default-exports":"error","storybook/hierarchy-separator":"warn","storybook/no-redundant-story-name":"warn","storybook/story-exports":"error"}},{files:[".storybook/main.@(js|cjs|mjs|ts)"],rules:{"storybook/no-uninstalled-addons":"error"}}]};}});
export { require_csf };

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,5 @@
import { __commonJS } from './chunk-5EPSKZG5.mjs';
var require_recommended=__commonJS({"src/configs/recommended.ts"(exports,module){module.exports={plugins:["storybook"],overrides:[{files:["**/*.stories.@(ts|tsx|js|jsx|mjs|cjs)","**/*.story.@(ts|tsx|js|jsx|mjs|cjs)"],rules:{"react-hooks/rules-of-hooks":"off","import/no-anonymous-default-export":"off","storybook/await-interactions":"error","storybook/context-in-play-function":"error","storybook/default-exports":"error","storybook/hierarchy-separator":"warn","storybook/no-redundant-story-name":"warn","storybook/no-renderer-packages":"error","storybook/prefer-pascal-case":"warn","storybook/story-exports":"error","storybook/use-storybook-expect":"error","storybook/use-storybook-testing-library":"error"}},{files:[".storybook/main.@(js|cjs|mjs|ts)"],rules:{"storybook/no-uninstalled-addons":"error"}}]};}});
export { require_recommended };

View File

@@ -0,0 +1,28 @@
declare const _default: {
plugins: string[];
overrides: ({
files: string[];
rules: {
readonly 'react-hooks/rules-of-hooks': "off";
readonly 'import/no-anonymous-default-export': "off";
readonly 'storybook/await-interactions': "error";
readonly 'storybook/context-in-play-function': "error";
readonly 'storybook/use-storybook-expect': "error";
readonly 'storybook/use-storybook-testing-library': "error";
readonly 'storybook/no-uninstalled-addons'?: undefined;
};
} | {
files: string[];
rules: {
readonly 'storybook/no-uninstalled-addons': "error";
readonly 'react-hooks/rules-of-hooks'?: undefined;
readonly 'import/no-anonymous-default-export'?: undefined;
readonly 'storybook/await-interactions'?: undefined;
readonly 'storybook/context-in-play-function'?: undefined;
readonly 'storybook/use-storybook-expect'?: undefined;
readonly 'storybook/use-storybook-testing-library'?: undefined;
};
})[];
};
export { _default as default };

View File

@@ -0,0 +1 @@
"use strict";module.exports={plugins:["storybook"],overrides:[{files:["**/*.stories.@(ts|tsx|js|jsx|mjs|cjs)","**/*.story.@(ts|tsx|js|jsx|mjs|cjs)"],rules:{"react-hooks/rules-of-hooks":"off","import/no-anonymous-default-export":"off","storybook/await-interactions":"error","storybook/context-in-play-function":"error","storybook/use-storybook-expect":"error","storybook/use-storybook-testing-library":"error"}},{files:[".storybook/main.@(js|cjs|mjs|ts)"],rules:{"storybook/no-uninstalled-addons":"error"}}]};

View File

@@ -0,0 +1,6 @@
import { require_addon_interactions } from '../chunk-56XMJL6J.mjs';
import '../chunk-5EPSKZG5.mjs';
var addonInteractions = require_addon_interactions();
export { addonInteractions as default };

View File

@@ -0,0 +1,11 @@
declare const _default: {
extends: string;
rules: {
readonly 'react-hooks/rules-of-hooks': "off";
readonly 'import/no-anonymous-default-export': "off";
readonly 'storybook/no-stories-of': "error";
readonly 'storybook/no-title-property-in-meta': "error";
};
};
export { _default as default };

View File

@@ -0,0 +1 @@
"use strict";module.exports={extends:"./configs/csf",rules:{"react-hooks/rules-of-hooks":"off","import/no-anonymous-default-export":"off","storybook/no-stories-of":"error","storybook/no-title-property-in-meta":"error"}};

View File

@@ -0,0 +1,6 @@
import { require_csf_strict } from '../chunk-S2AFJVJN.mjs';
import '../chunk-5EPSKZG5.mjs';
var csfStrict = require_csf_strict();
export { csfStrict as default };

View File

@@ -0,0 +1,30 @@
declare const _default: {
plugins: string[];
overrides: ({
files: string[];
rules: {
readonly 'react-hooks/rules-of-hooks': "off";
readonly 'import/no-anonymous-default-export': "off";
readonly 'storybook/csf-component': "warn";
readonly 'storybook/default-exports': "error";
readonly 'storybook/hierarchy-separator': "warn";
readonly 'storybook/no-redundant-story-name': "warn";
readonly 'storybook/story-exports': "error";
readonly 'storybook/no-uninstalled-addons'?: undefined;
};
} | {
files: string[];
rules: {
readonly 'storybook/no-uninstalled-addons': "error";
readonly 'react-hooks/rules-of-hooks'?: undefined;
readonly 'import/no-anonymous-default-export'?: undefined;
readonly 'storybook/csf-component'?: undefined;
readonly 'storybook/default-exports'?: undefined;
readonly 'storybook/hierarchy-separator'?: undefined;
readonly 'storybook/no-redundant-story-name'?: undefined;
readonly 'storybook/story-exports'?: undefined;
};
})[];
};
export { _default as default };

View File

@@ -0,0 +1 @@
"use strict";module.exports={plugins:["storybook"],overrides:[{files:["**/*.stories.@(ts|tsx|js|jsx|mjs|cjs)","**/*.story.@(ts|tsx|js|jsx|mjs|cjs)"],rules:{"react-hooks/rules-of-hooks":"off","import/no-anonymous-default-export":"off","storybook/csf-component":"warn","storybook/default-exports":"error","storybook/hierarchy-separator":"warn","storybook/no-redundant-story-name":"warn","storybook/story-exports":"error"}},{files:[".storybook/main.@(js|cjs|mjs|ts)"],rules:{"storybook/no-uninstalled-addons":"error"}}]};

View File

@@ -0,0 +1,6 @@
import { require_csf } from '../chunk-UQUIC47T.mjs';
import '../chunk-5EPSKZG5.mjs';
var csf = require_csf();
export { csf as default };

View File

@@ -0,0 +1,36 @@
declare const _default: ({
name: string;
plugins: {
readonly storybook: any;
};
files?: undefined;
rules?: undefined;
} | {
name: string;
files: string[];
rules: {
readonly 'react-hooks/rules-of-hooks': "off";
readonly 'import/no-anonymous-default-export': "off";
readonly 'storybook/await-interactions': "error";
readonly 'storybook/context-in-play-function': "error";
readonly 'storybook/use-storybook-expect': "error";
readonly 'storybook/use-storybook-testing-library': "error";
readonly 'storybook/no-uninstalled-addons'?: undefined;
};
plugins?: undefined;
} | {
name: string;
files: string[];
rules: {
readonly 'storybook/no-uninstalled-addons': "error";
readonly 'react-hooks/rules-of-hooks'?: undefined;
readonly 'import/no-anonymous-default-export'?: undefined;
readonly 'storybook/await-interactions'?: undefined;
readonly 'storybook/context-in-play-function'?: undefined;
readonly 'storybook/use-storybook-expect'?: undefined;
readonly 'storybook/use-storybook-testing-library'?: undefined;
};
plugins?: undefined;
})[];
export { _default as default };

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,10 @@
import { require_addon_interactions } from '../../chunk-VRJPUALT.mjs';
import '../../chunk-WHAAUBWQ.mjs';
import '../../chunk-UQUIC47T.mjs';
import '../../chunk-S2AFJVJN.mjs';
import '../../chunk-56XMJL6J.mjs';
import '../../chunk-5EPSKZG5.mjs';
var addonInteractions = require_addon_interactions();
export { addonInteractions as default };

View File

@@ -0,0 +1,46 @@
declare const _default: ({
name: string;
plugins: {
readonly storybook: any;
};
files?: undefined;
rules?: undefined;
} | {
name: string;
files: string[];
rules: {
readonly 'react-hooks/rules-of-hooks': "off";
readonly 'import/no-anonymous-default-export': "off";
readonly 'storybook/csf-component': "warn";
readonly 'storybook/default-exports': "error";
readonly 'storybook/hierarchy-separator': "warn";
readonly 'storybook/no-redundant-story-name': "warn";
readonly 'storybook/story-exports': "error";
readonly 'storybook/no-uninstalled-addons'?: undefined;
};
plugins?: undefined;
} | {
name: string;
files: string[];
rules: {
readonly 'storybook/no-uninstalled-addons': "error";
readonly 'react-hooks/rules-of-hooks'?: undefined;
readonly 'import/no-anonymous-default-export'?: undefined;
readonly 'storybook/csf-component'?: undefined;
readonly 'storybook/default-exports'?: undefined;
readonly 'storybook/hierarchy-separator'?: undefined;
readonly 'storybook/no-redundant-story-name'?: undefined;
readonly 'storybook/story-exports'?: undefined;
};
plugins?: undefined;
} | {
name: string;
rules: {
readonly 'react-hooks/rules-of-hooks': "off";
readonly 'import/no-anonymous-default-export': "off";
readonly 'storybook/no-stories-of': "error";
readonly 'storybook/no-title-property-in-meta': "error";
};
})[];
export { _default as default };

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,10 @@
import { require_csf_strict } from '../../chunk-VRJPUALT.mjs';
import '../../chunk-WHAAUBWQ.mjs';
import '../../chunk-UQUIC47T.mjs';
import '../../chunk-S2AFJVJN.mjs';
import '../../chunk-56XMJL6J.mjs';
import '../../chunk-5EPSKZG5.mjs';
var csfStrict = require_csf_strict();
export { csfStrict as default };

View File

@@ -0,0 +1,38 @@
declare const _default: ({
name: string;
plugins: {
readonly storybook: any;
};
files?: undefined;
rules?: undefined;
} | {
name: string;
files: string[];
rules: {
readonly 'react-hooks/rules-of-hooks': "off";
readonly 'import/no-anonymous-default-export': "off";
readonly 'storybook/csf-component': "warn";
readonly 'storybook/default-exports': "error";
readonly 'storybook/hierarchy-separator': "warn";
readonly 'storybook/no-redundant-story-name': "warn";
readonly 'storybook/story-exports': "error";
readonly 'storybook/no-uninstalled-addons'?: undefined;
};
plugins?: undefined;
} | {
name: string;
files: string[];
rules: {
readonly 'storybook/no-uninstalled-addons': "error";
readonly 'react-hooks/rules-of-hooks'?: undefined;
readonly 'import/no-anonymous-default-export'?: undefined;
readonly 'storybook/csf-component'?: undefined;
readonly 'storybook/default-exports'?: undefined;
readonly 'storybook/hierarchy-separator'?: undefined;
readonly 'storybook/no-redundant-story-name'?: undefined;
readonly 'storybook/story-exports'?: undefined;
};
plugins?: undefined;
})[];
export { _default as default };

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,10 @@
import { require_csf } from '../../chunk-VRJPUALT.mjs';
import '../../chunk-WHAAUBWQ.mjs';
import '../../chunk-UQUIC47T.mjs';
import '../../chunk-S2AFJVJN.mjs';
import '../../chunk-56XMJL6J.mjs';
import '../../chunk-5EPSKZG5.mjs';
var csf = require_csf();
export { csf as default };

View File

@@ -0,0 +1,48 @@
declare const _default: ({
name: string;
plugins: {
readonly storybook: any;
};
files?: undefined;
rules?: undefined;
} | {
name: string;
files: string[];
rules: {
readonly 'react-hooks/rules-of-hooks': "off";
readonly 'import/no-anonymous-default-export': "off";
readonly 'storybook/await-interactions': "error";
readonly 'storybook/context-in-play-function': "error";
readonly 'storybook/default-exports': "error";
readonly 'storybook/hierarchy-separator': "warn";
readonly 'storybook/no-redundant-story-name': "warn";
readonly 'storybook/no-renderer-packages': "error";
readonly 'storybook/prefer-pascal-case': "warn";
readonly 'storybook/story-exports': "error";
readonly 'storybook/use-storybook-expect': "error";
readonly 'storybook/use-storybook-testing-library': "error";
readonly 'storybook/no-uninstalled-addons'?: undefined;
};
plugins?: undefined;
} | {
name: string;
files: string[];
rules: {
readonly 'storybook/no-uninstalled-addons': "error";
readonly 'react-hooks/rules-of-hooks'?: undefined;
readonly 'import/no-anonymous-default-export'?: undefined;
readonly 'storybook/await-interactions'?: undefined;
readonly 'storybook/context-in-play-function'?: undefined;
readonly 'storybook/default-exports'?: undefined;
readonly 'storybook/hierarchy-separator'?: undefined;
readonly 'storybook/no-redundant-story-name'?: undefined;
readonly 'storybook/no-renderer-packages'?: undefined;
readonly 'storybook/prefer-pascal-case'?: undefined;
readonly 'storybook/story-exports'?: undefined;
readonly 'storybook/use-storybook-expect'?: undefined;
readonly 'storybook/use-storybook-testing-library'?: undefined;
};
plugins?: undefined;
})[];
export { _default as default };

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,10 @@
import { require_recommended } from '../../chunk-VRJPUALT.mjs';
import '../../chunk-WHAAUBWQ.mjs';
import '../../chunk-UQUIC47T.mjs';
import '../../chunk-S2AFJVJN.mjs';
import '../../chunk-56XMJL6J.mjs';
import '../../chunk-5EPSKZG5.mjs';
var recommended = require_recommended();
export { recommended as default };

View File

@@ -0,0 +1,40 @@
declare const _default: {
plugins: string[];
overrides: ({
files: string[];
rules: {
readonly 'react-hooks/rules-of-hooks': "off";
readonly 'import/no-anonymous-default-export': "off";
readonly 'storybook/await-interactions': "error";
readonly 'storybook/context-in-play-function': "error";
readonly 'storybook/default-exports': "error";
readonly 'storybook/hierarchy-separator': "warn";
readonly 'storybook/no-redundant-story-name': "warn";
readonly 'storybook/no-renderer-packages': "error";
readonly 'storybook/prefer-pascal-case': "warn";
readonly 'storybook/story-exports': "error";
readonly 'storybook/use-storybook-expect': "error";
readonly 'storybook/use-storybook-testing-library': "error";
readonly 'storybook/no-uninstalled-addons'?: undefined;
};
} | {
files: string[];
rules: {
readonly 'storybook/no-uninstalled-addons': "error";
readonly 'react-hooks/rules-of-hooks'?: undefined;
readonly 'import/no-anonymous-default-export'?: undefined;
readonly 'storybook/await-interactions'?: undefined;
readonly 'storybook/context-in-play-function'?: undefined;
readonly 'storybook/default-exports'?: undefined;
readonly 'storybook/hierarchy-separator'?: undefined;
readonly 'storybook/no-redundant-story-name'?: undefined;
readonly 'storybook/no-renderer-packages'?: undefined;
readonly 'storybook/prefer-pascal-case'?: undefined;
readonly 'storybook/story-exports'?: undefined;
readonly 'storybook/use-storybook-expect'?: undefined;
readonly 'storybook/use-storybook-testing-library'?: undefined;
};
})[];
};
export { _default as default };

View File

@@ -0,0 +1 @@
"use strict";module.exports={plugins:["storybook"],overrides:[{files:["**/*.stories.@(ts|tsx|js|jsx|mjs|cjs)","**/*.story.@(ts|tsx|js|jsx|mjs|cjs)"],rules:{"react-hooks/rules-of-hooks":"off","import/no-anonymous-default-export":"off","storybook/await-interactions":"error","storybook/context-in-play-function":"error","storybook/default-exports":"error","storybook/hierarchy-separator":"warn","storybook/no-redundant-story-name":"warn","storybook/no-renderer-packages":"error","storybook/prefer-pascal-case":"warn","storybook/story-exports":"error","storybook/use-storybook-expect":"error","storybook/use-storybook-testing-library":"error"}},{files:[".storybook/main.@(js|cjs|mjs|ts)"],rules:{"storybook/no-uninstalled-addons":"error"}}]};

View File

@@ -0,0 +1,6 @@
import { require_recommended } from '../chunk-WHAAUBWQ.mjs';
import '../chunk-5EPSKZG5.mjs';
var recommended = require_recommended();
export { recommended as default };

View File

@@ -0,0 +1,294 @@
import * as _typescript_eslint_utils_ts_eslint from '@typescript-eslint/utils/ts-eslint';
declare const _default: {
configs: {
csf: {
plugins: string[];
overrides: ({
files: string[];
rules: {
readonly 'react-hooks/rules-of-hooks': "off";
readonly 'import/no-anonymous-default-export': "off";
readonly 'storybook/csf-component': "warn";
readonly 'storybook/default-exports': "error";
readonly 'storybook/hierarchy-separator': "warn";
readonly 'storybook/no-redundant-story-name': "warn";
readonly 'storybook/story-exports': "error";
readonly 'storybook/no-uninstalled-addons'?: undefined;
};
} | {
files: string[];
rules: {
readonly 'storybook/no-uninstalled-addons': "error";
readonly 'react-hooks/rules-of-hooks'?: undefined;
readonly 'import/no-anonymous-default-export'?: undefined;
readonly 'storybook/csf-component'?: undefined;
readonly 'storybook/default-exports'?: undefined;
readonly 'storybook/hierarchy-separator'?: undefined;
readonly 'storybook/no-redundant-story-name'?: undefined;
readonly 'storybook/story-exports'?: undefined;
};
})[];
};
'csf-strict': {
extends: string;
rules: {
readonly 'react-hooks/rules-of-hooks': "off";
readonly 'import/no-anonymous-default-export': "off";
readonly 'storybook/no-stories-of': "error";
readonly 'storybook/no-title-property-in-meta': "error";
};
};
'addon-interactions': {
plugins: string[];
overrides: ({
files: string[];
rules: {
readonly 'react-hooks/rules-of-hooks': "off";
readonly 'import/no-anonymous-default-export': "off";
readonly 'storybook/await-interactions': "error";
readonly 'storybook/context-in-play-function': "error";
readonly 'storybook/use-storybook-expect': "error";
readonly 'storybook/use-storybook-testing-library': "error";
readonly 'storybook/no-uninstalled-addons'?: undefined;
};
} | {
files: string[];
rules: {
readonly 'storybook/no-uninstalled-addons': "error";
readonly 'react-hooks/rules-of-hooks'?: undefined;
readonly 'import/no-anonymous-default-export'?: undefined;
readonly 'storybook/await-interactions'?: undefined;
readonly 'storybook/context-in-play-function'?: undefined;
readonly 'storybook/use-storybook-expect'?: undefined;
readonly 'storybook/use-storybook-testing-library'?: undefined;
};
})[];
};
recommended: {
plugins: string[];
overrides: ({
files: string[];
rules: {
readonly 'react-hooks/rules-of-hooks': "off";
readonly 'import/no-anonymous-default-export': "off";
readonly 'storybook/await-interactions': "error";
readonly 'storybook/context-in-play-function': "error";
readonly 'storybook/default-exports': "error";
readonly 'storybook/hierarchy-separator': "warn";
readonly 'storybook/no-redundant-story-name': "warn";
readonly 'storybook/no-renderer-packages': "error";
readonly 'storybook/prefer-pascal-case': "warn";
readonly 'storybook/story-exports': "error";
readonly 'storybook/use-storybook-expect': "error";
readonly 'storybook/use-storybook-testing-library': "error";
readonly 'storybook/no-uninstalled-addons'?: undefined;
};
} | {
files: string[];
rules: {
readonly 'storybook/no-uninstalled-addons': "error";
readonly 'react-hooks/rules-of-hooks'?: undefined;
readonly 'import/no-anonymous-default-export'?: undefined;
readonly 'storybook/await-interactions'?: undefined;
readonly 'storybook/context-in-play-function'?: undefined;
readonly 'storybook/default-exports'?: undefined;
readonly 'storybook/hierarchy-separator'?: undefined;
readonly 'storybook/no-redundant-story-name'?: undefined;
readonly 'storybook/no-renderer-packages'?: undefined;
readonly 'storybook/prefer-pascal-case'?: undefined;
readonly 'storybook/story-exports'?: undefined;
readonly 'storybook/use-storybook-expect'?: undefined;
readonly 'storybook/use-storybook-testing-library'?: undefined;
};
})[];
};
'flat/csf': ({
name: string;
plugins: {
readonly storybook: any;
};
files?: undefined;
rules?: undefined;
} | {
name: string;
files: string[];
rules: {
readonly 'react-hooks/rules-of-hooks': "off";
readonly 'import/no-anonymous-default-export': "off";
readonly 'storybook/csf-component': "warn";
readonly 'storybook/default-exports': "error";
readonly 'storybook/hierarchy-separator': "warn";
readonly 'storybook/no-redundant-story-name': "warn";
readonly 'storybook/story-exports': "error";
readonly 'storybook/no-uninstalled-addons'?: undefined;
};
plugins?: undefined;
} | {
name: string;
files: string[];
rules: {
readonly 'storybook/no-uninstalled-addons': "error";
readonly 'react-hooks/rules-of-hooks'?: undefined;
readonly 'import/no-anonymous-default-export'?: undefined;
readonly 'storybook/csf-component'?: undefined;
readonly 'storybook/default-exports'?: undefined;
readonly 'storybook/hierarchy-separator'?: undefined;
readonly 'storybook/no-redundant-story-name'?: undefined;
readonly 'storybook/story-exports'?: undefined;
};
plugins?: undefined;
})[];
'flat/csf-strict': ({
name: string;
plugins: {
readonly storybook: any;
};
files?: undefined;
rules?: undefined;
} | {
name: string;
files: string[];
rules: {
readonly 'react-hooks/rules-of-hooks': "off";
readonly 'import/no-anonymous-default-export': "off";
readonly 'storybook/csf-component': "warn";
readonly 'storybook/default-exports': "error";
readonly 'storybook/hierarchy-separator': "warn";
readonly 'storybook/no-redundant-story-name': "warn";
readonly 'storybook/story-exports': "error";
readonly 'storybook/no-uninstalled-addons'?: undefined;
};
plugins?: undefined;
} | {
name: string;
files: string[];
rules: {
readonly 'storybook/no-uninstalled-addons': "error";
readonly 'react-hooks/rules-of-hooks'?: undefined;
readonly 'import/no-anonymous-default-export'?: undefined;
readonly 'storybook/csf-component'?: undefined;
readonly 'storybook/default-exports'?: undefined;
readonly 'storybook/hierarchy-separator'?: undefined;
readonly 'storybook/no-redundant-story-name'?: undefined;
readonly 'storybook/story-exports'?: undefined;
};
plugins?: undefined;
} | {
name: string;
rules: {
readonly 'react-hooks/rules-of-hooks': "off";
readonly 'import/no-anonymous-default-export': "off";
readonly 'storybook/no-stories-of': "error";
readonly 'storybook/no-title-property-in-meta': "error";
};
})[];
'flat/addon-interactions': ({
name: string;
plugins: {
readonly storybook: any;
};
files?: undefined;
rules?: undefined;
} | {
name: string;
files: string[];
rules: {
readonly 'react-hooks/rules-of-hooks': "off";
readonly 'import/no-anonymous-default-export': "off";
readonly 'storybook/await-interactions': "error";
readonly 'storybook/context-in-play-function': "error";
readonly 'storybook/use-storybook-expect': "error";
readonly 'storybook/use-storybook-testing-library': "error";
readonly 'storybook/no-uninstalled-addons'?: undefined;
};
plugins?: undefined;
} | {
name: string;
files: string[];
rules: {
readonly 'storybook/no-uninstalled-addons': "error";
readonly 'react-hooks/rules-of-hooks'?: undefined;
readonly 'import/no-anonymous-default-export'?: undefined;
readonly 'storybook/await-interactions'?: undefined;
readonly 'storybook/context-in-play-function'?: undefined;
readonly 'storybook/use-storybook-expect'?: undefined;
readonly 'storybook/use-storybook-testing-library'?: undefined;
};
plugins?: undefined;
})[];
'flat/recommended': ({
name: string;
plugins: {
readonly storybook: any;
};
files?: undefined;
rules?: undefined;
} | {
name: string;
files: string[];
rules: {
readonly 'react-hooks/rules-of-hooks': "off";
readonly 'import/no-anonymous-default-export': "off";
readonly 'storybook/await-interactions': "error";
readonly 'storybook/context-in-play-function': "error";
readonly 'storybook/default-exports': "error";
readonly 'storybook/hierarchy-separator': "warn";
readonly 'storybook/no-redundant-story-name': "warn";
readonly 'storybook/no-renderer-packages': "error";
readonly 'storybook/prefer-pascal-case': "warn";
readonly 'storybook/story-exports': "error";
readonly 'storybook/use-storybook-expect': "error";
readonly 'storybook/use-storybook-testing-library': "error";
readonly 'storybook/no-uninstalled-addons'?: undefined;
};
plugins?: undefined;
} | {
name: string;
files: string[];
rules: {
readonly 'storybook/no-uninstalled-addons': "error";
readonly 'react-hooks/rules-of-hooks'?: undefined;
readonly 'import/no-anonymous-default-export'?: undefined;
readonly 'storybook/await-interactions'?: undefined;
readonly 'storybook/context-in-play-function'?: undefined;
readonly 'storybook/default-exports'?: undefined;
readonly 'storybook/hierarchy-separator'?: undefined;
readonly 'storybook/no-redundant-story-name'?: undefined;
readonly 'storybook/no-renderer-packages'?: undefined;
readonly 'storybook/prefer-pascal-case'?: undefined;
readonly 'storybook/story-exports'?: undefined;
readonly 'storybook/use-storybook-expect'?: undefined;
readonly 'storybook/use-storybook-testing-library'?: undefined;
};
plugins?: undefined;
})[];
};
rules: {
'await-interactions': _typescript_eslint_utils_ts_eslint.RuleModule<"interactionShouldBeAwaited" | "fixSuggestion", never[], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
'context-in-play-function': _typescript_eslint_utils_ts_eslint.RuleModule<"passContextToPlayFunction", never[], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
'csf-component': _typescript_eslint_utils_ts_eslint.RuleModule<"missingComponentProperty", never[], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
'default-exports': _typescript_eslint_utils_ts_eslint.RuleModule<"fixSuggestion" | "shouldHaveDefaultExport", never[], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
'hierarchy-separator': _typescript_eslint_utils_ts_eslint.RuleModule<"useCorrectSeparators" | "deprecatedHierarchySeparator", never[], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
'meta-inline-properties': _typescript_eslint_utils_ts_eslint.RuleModule<"metaShouldHaveInlineProperties", {
csfVersion: number;
}[], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
'meta-satisfies-type': _typescript_eslint_utils_ts_eslint.RuleModule<"metaShouldSatisfyType", never[], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
'no-redundant-story-name': _typescript_eslint_utils_ts_eslint.RuleModule<"removeRedundantName" | "storyNameIsRedundant", never[], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
'no-renderer-packages': _typescript_eslint_utils_ts_eslint.RuleModule<"noRendererPackages", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
'no-stories-of': _typescript_eslint_utils_ts_eslint.RuleModule<"doNotUseStoriesOf", never[], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
'no-title-property-in-meta': _typescript_eslint_utils_ts_eslint.RuleModule<"removeTitleInMeta" | "noTitleInMeta", never[], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
'no-uninstalled-addons': _typescript_eslint_utils_ts_eslint.RuleModule<"addonIsNotInstalled", {
packageJsonLocation: string;
ignore: string[];
}[], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
'prefer-pascal-case': _typescript_eslint_utils_ts_eslint.RuleModule<"convertToPascalCase" | "usePascalCase", never[], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
'story-exports': _typescript_eslint_utils_ts_eslint.RuleModule<"shouldHaveStoryExport" | "shouldHaveStoryExportWithFilters" | "addStoryExport", never[], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
'use-storybook-expect': _typescript_eslint_utils_ts_eslint.RuleModule<string, {
storybookJestPath?: string;
}[], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
'use-storybook-testing-library': _typescript_eslint_utils_ts_eslint.RuleModule<"updateImports" | "dontUseTestingLibraryDirectly", never[], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
};
};
export { _default as default };

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,10 @@
import { require_index } from './chunk-VRJPUALT.mjs';
import './chunk-WHAAUBWQ.mjs';
import './chunk-UQUIC47T.mjs';
import './chunk-S2AFJVJN.mjs';
import './chunk-56XMJL6J.mjs';
import './chunk-5EPSKZG5.mjs';
var index = require_index();
export { index as default };

View File

@@ -0,0 +1,21 @@
MIT License
Copyright (c) 2019 typescript-eslint and other contributors
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

View File

@@ -0,0 +1,10 @@
# `@typescript-eslint/scope-manager`
[![NPM Version](https://img.shields.io/npm/v/@typescript-eslint/scope-manager.svg?style=flat-square)](https://www.npmjs.com/package/@typescript-eslint/scope-manager)
[![NPM Downloads](https://img.shields.io/npm/dm/@typescript-eslint/scope-manager.svg?style=flat-square)](https://www.npmjs.com/package/@typescript-eslint/scope-manager)
👉 See **https://typescript-eslint.io/packages/scope-manager** for documentation on this package.
> See https://typescript-eslint.io for general documentation on typescript-eslint, the tooling that allows you to run ESLint and Prettier on TypeScript code.
<!-- Local path for docs: docs/packages/Scope_Manager.mdx -->

View File

@@ -0,0 +1,3 @@
export declare function createIdGenerator(): () => number;
export declare function resetIds(): void;
//# sourceMappingURL=ID.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"ID.d.ts","sourceRoot":"","sources":["../src/ID.ts"],"names":[],"mappings":"AAGA,wBAAgB,iBAAiB,IAAI,MAAM,MAAM,CAUhD;AAED,wBAAgB,QAAQ,IAAI,IAAI,CAE/B"}

View File

@@ -0,0 +1,19 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.createIdGenerator = createIdGenerator;
exports.resetIds = resetIds;
const ID_CACHE = new Map();
let NEXT_KEY = 0;
function createIdGenerator() {
const key = (NEXT_KEY += 1);
ID_CACHE.set(key, 0);
return () => {
const current = ID_CACHE.get(key) ?? 0;
const next = current + 1;
ID_CACHE.set(key, next);
return next;
};
}
function resetIds() {
ID_CACHE.clear();
}

View File

@@ -0,0 +1,72 @@
import type { SourceType, TSESTree } from '@typescript-eslint/types';
import type { Scope } from './scope';
import type { Variable } from './variable';
import { BlockScope, CatchScope, ClassScope, ConditionalTypeScope, ForScope, FunctionExpressionNameScope, FunctionScope, FunctionTypeScope, GlobalScope, MappedTypeScope, ModuleScope, SwitchScope, TSEnumScope, TSModuleScope, TypeScope, WithScope } from './scope';
import { ClassFieldInitializerScope } from './scope/ClassFieldInitializerScope';
import { ClassStaticBlockScope } from './scope/ClassStaticBlockScope';
interface ScopeManagerOptions {
globalReturn?: boolean;
impliedStrict?: boolean;
sourceType?: SourceType;
}
/**
* @see https://eslint.org/docs/latest/developer-guide/scope-manager-interface#scopemanager-interface
*/
export declare class ScopeManager {
#private;
currentScope: Scope | null;
readonly declaredVariables: WeakMap<TSESTree.Node, Variable[]>;
/**
* The root scope
*/
globalScope: GlobalScope | null;
readonly nodeToScope: WeakMap<TSESTree.Node, Scope[]>;
/**
* All scopes
* @public
*/
readonly scopes: Scope[];
constructor(options: ScopeManagerOptions);
isES6(): boolean;
isGlobalReturn(): boolean;
isImpliedStrict(): boolean;
isModule(): boolean;
isStrictModeSupported(): boolean;
get variables(): Variable[];
/**
* Get the variables that a given AST node defines. The gotten variables' `def[].node`/`def[].parent` property is the node.
* If the node does not define any variable, this returns an empty array.
* @param node An AST node to get their variables.
*/
getDeclaredVariables(node: TSESTree.Node): Variable[];
/**
* Get the scope of a given AST node. The gotten scope's `block` property is the node.
* This method never returns `function-expression-name` scope. If the node does not have their scope, this returns `null`.
*
* @param node An AST node to get their scope.
* @param inner If the node has multiple scopes, this returns the outermost scope normally.
* If `inner` is `true` then this returns the innermost scope.
*/
acquire(node: TSESTree.Node, inner?: boolean): Scope | null;
nestBlockScope(node: BlockScope['block']): BlockScope;
nestCatchScope(node: CatchScope['block']): CatchScope;
nestClassFieldInitializerScope(node: ClassFieldInitializerScope['block']): ClassFieldInitializerScope;
nestClassScope(node: ClassScope['block']): ClassScope;
nestClassStaticBlockScope(node: ClassStaticBlockScope['block']): ClassStaticBlockScope;
nestConditionalTypeScope(node: ConditionalTypeScope['block']): ConditionalTypeScope;
nestForScope(node: ForScope['block']): ForScope;
nestFunctionExpressionNameScope(node: FunctionExpressionNameScope['block']): FunctionExpressionNameScope;
nestFunctionScope(node: FunctionScope['block'], isMethodDefinition: boolean): FunctionScope;
nestFunctionTypeScope(node: FunctionTypeScope['block']): FunctionTypeScope;
nestGlobalScope(node: GlobalScope['block']): GlobalScope;
nestMappedTypeScope(node: MappedTypeScope['block']): MappedTypeScope;
nestModuleScope(node: ModuleScope['block']): ModuleScope;
nestSwitchScope(node: SwitchScope['block']): SwitchScope;
nestTSEnumScope(node: TSEnumScope['block']): TSEnumScope;
nestTSModuleScope(node: TSModuleScope['block']): TSModuleScope;
nestTypeScope(node: TypeScope['block']): TypeScope;
nestWithScope(node: WithScope['block']): WithScope;
protected nestScope<T extends Scope>(scope: T): T;
}
export {};
//# sourceMappingURL=ScopeManager.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"ScopeManager.d.ts","sourceRoot":"","sources":["../src/ScopeManager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAErE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAG3C,OAAO,EACL,UAAU,EACV,UAAU,EACV,UAAU,EACV,oBAAoB,EACpB,QAAQ,EACR,2BAA2B,EAC3B,aAAa,EACb,iBAAiB,EACjB,WAAW,EACX,eAAe,EACf,WAAW,EAEX,WAAW,EACX,WAAW,EACX,aAAa,EACb,SAAS,EACT,SAAS,EACV,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AAChF,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AAEtE,UAAU,mBAAmB;IAC3B,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,UAAU,CAAC,EAAE,UAAU,CAAC;CACzB;AAED;;GAEG;AACH,qBAAa,YAAY;;IAGhB,YAAY,EAAE,KAAK,GAAG,IAAI,CAAC;IAElC,SAAgB,iBAAiB,EAAE,OAAO,CAAC,QAAQ,CAAC,IAAI,EAAE,QAAQ,EAAE,CAAC,CAAC;IAEtE;;OAEG;IACI,WAAW,EAAE,WAAW,GAAG,IAAI,CAAC;IAEvC,SAAgB,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;IAE7D;;;OAGG;IACH,SAAgB,MAAM,EAAE,KAAK,EAAE,CAAC;gBAEpB,OAAO,EAAE,mBAAmB;IASjC,KAAK,IAAI,OAAO;IAIhB,cAAc,IAAI,OAAO;IAIzB,eAAe,IAAI,OAAO;IAI1B,QAAQ,IAAI,OAAO;IAInB,qBAAqB,IAAI,OAAO;IAIvC,IAAW,SAAS,IAAI,QAAQ,EAAE,CAQjC;IAED;;;;OAIG;IACI,oBAAoB,CAAC,IAAI,EAAE,QAAQ,CAAC,IAAI,GAAG,QAAQ,EAAE;IAI5D;;;;;;;OAOG;IACI,OAAO,CAAC,IAAI,EAAE,QAAQ,CAAC,IAAI,EAAE,KAAK,UAAQ,GAAG,KAAK,GAAG,IAAI;IAoCzD,cAAc,CAAC,IAAI,EAAE,UAAU,CAAC,OAAO,CAAC,GAAG,UAAU;IAKrD,cAAc,CAAC,IAAI,EAAE,UAAU,CAAC,OAAO,CAAC,GAAG,UAAU;IAKrD,8BAA8B,CACnC,IAAI,EAAE,0BAA0B,CAAC,OAAO,CAAC,GACxC,0BAA0B;IAOtB,cAAc,CAAC,IAAI,EAAE,UAAU,CAAC,OAAO,CAAC,GAAG,UAAU;IAKrD,yBAAyB,CAC9B,IAAI,EAAE,qBAAqB,CAAC,OAAO,CAAC,GACnC,qBAAqB;IAOjB,wBAAwB,CAC7B,IAAI,EAAE,oBAAoB,CAAC,OAAO,CAAC,GAClC,oBAAoB;IAOhB,YAAY,CAAC,IAAI,EAAE,QAAQ,CAAC,OAAO,CAAC,GAAG,QAAQ;IAK/C,+BAA+B,CACpC,IAAI,EAAE,2BAA2B,CAAC,OAAO,CAAC,GACzC,2BAA2B;IAOvB,iBAAiB,CACtB,IAAI,EAAE,aAAa,CAAC,OAAO,CAAC,EAC5B,kBAAkB,EAAE,OAAO,GAC1B,aAAa;IAOT,qBAAqB,CAC1B,IAAI,EAAE,iBAAiB,CAAC,OAAO,CAAC,GAC/B,iBAAiB;IAKb,eAAe,CAAC,IAAI,EAAE,WAAW,CAAC,OAAO,CAAC,GAAG,WAAW;IAIxD,mBAAmB,CAAC,IAAI,EAAE,eAAe,CAAC,OAAO,CAAC,GAAG,eAAe;IAKpE,eAAe,CAAC,IAAI,EAAE,WAAW,CAAC,OAAO,CAAC,GAAG,WAAW;IAKxD,eAAe,CAAC,IAAI,EAAE,WAAW,CAAC,OAAO,CAAC,GAAG,WAAW;IAKxD,eAAe,CAAC,IAAI,EAAE,WAAW,CAAC,OAAO,CAAC,GAAG,WAAW;IAKxD,iBAAiB,CAAC,IAAI,EAAE,aAAa,CAAC,OAAO,CAAC,GAAG,aAAa;IAK9D,aAAa,CAAC,IAAI,EAAE,SAAS,CAAC,OAAO,CAAC,GAAG,SAAS;IAKlD,aAAa,CAAC,IAAI,EAAE,SAAS,CAAC,OAAO,CAAC,GAAG,SAAS;IAOzD,SAAS,CAAC,SAAS,CAAC,CAAC,SAAS,KAAK,EAAE,KAAK,EAAE,CAAC,GAAG,CAAC;CASlD"}

View File

@@ -0,0 +1,181 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ScopeManager = void 0;
const assert_1 = require("./assert");
const scope_1 = require("./scope");
const ClassFieldInitializerScope_1 = require("./scope/ClassFieldInitializerScope");
const ClassStaticBlockScope_1 = require("./scope/ClassStaticBlockScope");
/**
* @see https://eslint.org/docs/latest/developer-guide/scope-manager-interface#scopemanager-interface
*/
class ScopeManager {
#options;
currentScope;
declaredVariables;
/**
* The root scope
*/
globalScope;
nodeToScope;
/**
* All scopes
* @public
*/
scopes;
constructor(options) {
this.scopes = [];
this.globalScope = null;
this.nodeToScope = new WeakMap();
this.currentScope = null;
this.#options = options;
this.declaredVariables = new WeakMap();
}
isES6() {
return true;
}
isGlobalReturn() {
return this.#options.globalReturn === true;
}
isImpliedStrict() {
return this.#options.impliedStrict === true;
}
isModule() {
return this.#options.sourceType === 'module';
}
isStrictModeSupported() {
return true;
}
get variables() {
const variables = new Set();
function recurse(scope) {
scope.variables.forEach(v => variables.add(v));
scope.childScopes.forEach(recurse);
}
this.scopes.forEach(recurse);
return [...variables].sort((a, b) => a.$id - b.$id);
}
/**
* Get the variables that a given AST node defines. The gotten variables' `def[].node`/`def[].parent` property is the node.
* If the node does not define any variable, this returns an empty array.
* @param node An AST node to get their variables.
*/
getDeclaredVariables(node) {
return this.declaredVariables.get(node) ?? [];
}
/**
* Get the scope of a given AST node. The gotten scope's `block` property is the node.
* This method never returns `function-expression-name` scope. If the node does not have their scope, this returns `null`.
*
* @param node An AST node to get their scope.
* @param inner If the node has multiple scopes, this returns the outermost scope normally.
* If `inner` is `true` then this returns the innermost scope.
*/
acquire(node, inner = false) {
function predicate(testScope) {
if (testScope.type === scope_1.ScopeType.function &&
testScope.functionExpressionScope) {
return false;
}
return true;
}
const scopes = this.nodeToScope.get(node);
if (!scopes || scopes.length === 0) {
return null;
}
// Heuristic selection from all scopes.
// If you would like to get all scopes, please use ScopeManager#acquireAll.
if (scopes.length === 1) {
return scopes[0];
}
if (inner) {
for (let i = scopes.length - 1; i >= 0; --i) {
const scope = scopes[i];
if (predicate(scope)) {
return scope;
}
}
return null;
}
return scopes.find(predicate) ?? null;
}
nestBlockScope(node) {
(0, assert_1.assert)(this.currentScope);
return this.nestScope(new scope_1.BlockScope(this, this.currentScope, node));
}
nestCatchScope(node) {
(0, assert_1.assert)(this.currentScope);
return this.nestScope(new scope_1.CatchScope(this, this.currentScope, node));
}
nestClassFieldInitializerScope(node) {
(0, assert_1.assert)(this.currentScope);
return this.nestScope(new ClassFieldInitializerScope_1.ClassFieldInitializerScope(this, this.currentScope, node));
}
nestClassScope(node) {
(0, assert_1.assert)(this.currentScope);
return this.nestScope(new scope_1.ClassScope(this, this.currentScope, node));
}
nestClassStaticBlockScope(node) {
(0, assert_1.assert)(this.currentScope);
return this.nestScope(new ClassStaticBlockScope_1.ClassStaticBlockScope(this, this.currentScope, node));
}
nestConditionalTypeScope(node) {
(0, assert_1.assert)(this.currentScope);
return this.nestScope(new scope_1.ConditionalTypeScope(this, this.currentScope, node));
}
nestForScope(node) {
(0, assert_1.assert)(this.currentScope);
return this.nestScope(new scope_1.ForScope(this, this.currentScope, node));
}
nestFunctionExpressionNameScope(node) {
(0, assert_1.assert)(this.currentScope);
return this.nestScope(new scope_1.FunctionExpressionNameScope(this, this.currentScope, node));
}
nestFunctionScope(node, isMethodDefinition) {
(0, assert_1.assert)(this.currentScope);
return this.nestScope(new scope_1.FunctionScope(this, this.currentScope, node, isMethodDefinition));
}
nestFunctionTypeScope(node) {
(0, assert_1.assert)(this.currentScope);
return this.nestScope(new scope_1.FunctionTypeScope(this, this.currentScope, node));
}
nestGlobalScope(node) {
return this.nestScope(new scope_1.GlobalScope(this, node));
}
nestMappedTypeScope(node) {
(0, assert_1.assert)(this.currentScope);
return this.nestScope(new scope_1.MappedTypeScope(this, this.currentScope, node));
}
nestModuleScope(node) {
(0, assert_1.assert)(this.currentScope);
return this.nestScope(new scope_1.ModuleScope(this, this.currentScope, node));
}
nestSwitchScope(node) {
(0, assert_1.assert)(this.currentScope);
return this.nestScope(new scope_1.SwitchScope(this, this.currentScope, node));
}
nestTSEnumScope(node) {
(0, assert_1.assert)(this.currentScope);
return this.nestScope(new scope_1.TSEnumScope(this, this.currentScope, node));
}
nestTSModuleScope(node) {
(0, assert_1.assert)(this.currentScope);
return this.nestScope(new scope_1.TSModuleScope(this, this.currentScope, node));
}
nestTypeScope(node) {
(0, assert_1.assert)(this.currentScope);
return this.nestScope(new scope_1.TypeScope(this, this.currentScope, node));
}
nestWithScope(node) {
(0, assert_1.assert)(this.currentScope);
return this.nestScope(new scope_1.WithScope(this, this.currentScope, node));
}
nestScope(scope) {
if (scope instanceof scope_1.GlobalScope) {
(0, assert_1.assert)(this.currentScope == null);
this.globalScope = scope;
}
this.currentScope = scope;
return scope;
}
}
exports.ScopeManager = ScopeManager;

View File

@@ -0,0 +1,54 @@
import type { Lib, SourceType, TSESTree } from '@typescript-eslint/types';
import type { ReferencerOptions } from './referencer';
import { ScopeManager } from './ScopeManager';
export interface AnalyzeOptions {
/**
* Known visitor keys.
*/
childVisitorKeys?: ReferencerOptions['childVisitorKeys'];
/**
* Whether the whole script is executed under node.js environment.
* When enabled, the scope manager adds a function scope immediately following the global scope.
* Defaults to `false`.
*/
globalReturn?: boolean;
/**
* Implied strict mode.
* Defaults to `false`.
*/
impliedStrict?: boolean;
/**
* The identifier that's used for JSX Element creation (after transpilation).
* This should not be a member expression - just the root identifier (i.e. use "React" instead of "React.createElement").
* Defaults to `"React"`.
*/
jsxPragma?: string | null;
/**
* The identifier that's used for JSX fragment elements (after transpilation).
* If `null`, assumes transpilation will always use a member on `jsxFactory` (i.e. React.Fragment).
* This should not be a member expression - just the root identifier (i.e. use "h" instead of "h.Fragment").
* Defaults to `null`.
*/
jsxFragmentName?: string | null;
/**
* The lib used by the project.
* This automatically defines a type variable for any types provided by the configured TS libs.
* Defaults to ['esnext'].
*
* https://www.typescriptlang.org/tsconfig#lib
*/
lib?: Lib[];
/**
* The source type of the script.
*/
sourceType?: SourceType;
/**
* @deprecated This option never did what it was intended for and will be removed in a future major release.
*/
emitDecoratorMetadata?: boolean;
}
/**
* Takes an AST and returns the analyzed scopes.
*/
export declare function analyze(tree: TSESTree.Node, providedOptions?: AnalyzeOptions): ScopeManager;
//# sourceMappingURL=analyze.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"analyze.d.ts","sourceRoot":"","sources":["../src/analyze.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAI1E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAGtD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAM9C,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,gBAAgB,CAAC,EAAE,iBAAiB,CAAC,kBAAkB,CAAC,CAAC;IAEzD;;;;OAIG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IAEvB;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE1B;;;;;OAKG;IACH,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEhC;;;;;;OAMG;IACH,GAAG,CAAC,EAAE,GAAG,EAAE,CAAC;IAEZ;;OAEG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC;IAGxB;;OAEG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACjC;AAaD;;GAEG;AACH,wBAAgB,OAAO,CACrB,IAAI,EAAE,QAAQ,CAAC,IAAI,EACnB,eAAe,CAAC,EAAE,cAAc,GAC/B,YAAY,CA4Bd"}

View File

@@ -0,0 +1,41 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.analyze = analyze;
const visitor_keys_1 = require("@typescript-eslint/visitor-keys");
const referencer_1 = require("./referencer");
const ScopeManager_1 = require("./ScopeManager");
const DEFAULT_OPTIONS = {
childVisitorKeys: visitor_keys_1.visitorKeys,
emitDecoratorMetadata: false,
globalReturn: false,
impliedStrict: false,
jsxFragmentName: null,
jsxPragma: 'React',
lib: ['es2018'],
sourceType: 'script',
};
/**
* Takes an AST and returns the analyzed scopes.
*/
function analyze(tree, providedOptions) {
const options = {
childVisitorKeys: providedOptions?.childVisitorKeys ?? DEFAULT_OPTIONS.childVisitorKeys,
emitDecoratorMetadata: false,
globalReturn: providedOptions?.globalReturn ?? DEFAULT_OPTIONS.globalReturn,
impliedStrict: providedOptions?.impliedStrict ?? DEFAULT_OPTIONS.impliedStrict,
jsxFragmentName: providedOptions?.jsxFragmentName ?? DEFAULT_OPTIONS.jsxFragmentName,
jsxPragma:
// eslint-disable-next-line @typescript-eslint/internal/eqeq-nullish
providedOptions?.jsxPragma === undefined
? DEFAULT_OPTIONS.jsxPragma
: providedOptions.jsxPragma,
lib: providedOptions?.lib ?? ['esnext'],
sourceType: providedOptions?.sourceType ?? DEFAULT_OPTIONS.sourceType,
};
// ensure the option is lower cased
options.lib = options.lib.map(l => l.toLowerCase());
const scopeManager = new ScopeManager_1.ScopeManager(options);
const referencer = new referencer_1.Referencer(options, scopeManager);
referencer.visit(tree);
return scopeManager;
}

View File

@@ -0,0 +1,2 @@
export declare function assert(value: unknown, message?: string): asserts value;
//# sourceMappingURL=assert.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"assert.d.ts","sourceRoot":"","sources":["../src/assert.ts"],"names":[],"mappings":"AACA,wBAAgB,MAAM,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,KAAK,CAItE"}

View File

@@ -0,0 +1,9 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.assert = assert;
// the base assert module doesn't use ts assertion syntax
function assert(value, message) {
if (value == null) {
throw new Error(message);
}
}

View File

@@ -0,0 +1,9 @@
import type { TSESTree } from '@typescript-eslint/types';
import { DefinitionBase } from './DefinitionBase';
import { DefinitionType } from './DefinitionType';
export declare class CatchClauseDefinition extends DefinitionBase<DefinitionType.CatchClause, TSESTree.CatchClause, null, TSESTree.BindingName> {
readonly isTypeDefinition = false;
readonly isVariableDefinition = true;
constructor(name: TSESTree.BindingName, node: CatchClauseDefinition['node']);
}
//# sourceMappingURL=CatchClauseDefinition.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"CatchClauseDefinition.d.ts","sourceRoot":"","sources":["../../src/definition/CatchClauseDefinition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,qBAAa,qBAAsB,SAAQ,cAAc,CACvD,cAAc,CAAC,WAAW,EAC1B,QAAQ,CAAC,WAAW,EACpB,IAAI,EACJ,QAAQ,CAAC,WAAW,CACrB;IACC,SAAgB,gBAAgB,SAAS;IACzC,SAAgB,oBAAoB,QAAQ;gBAEhC,IAAI,EAAE,QAAQ,CAAC,WAAW,EAAE,IAAI,EAAE,qBAAqB,CAAC,MAAM,CAAC;CAG5E"}

View File

@@ -0,0 +1,13 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.CatchClauseDefinition = void 0;
const DefinitionBase_1 = require("./DefinitionBase");
const DefinitionType_1 = require("./DefinitionType");
class CatchClauseDefinition extends DefinitionBase_1.DefinitionBase {
isTypeDefinition = false;
isVariableDefinition = true;
constructor(name, node) {
super(DefinitionType_1.DefinitionType.CatchClause, name, node, null);
}
}
exports.CatchClauseDefinition = CatchClauseDefinition;

View File

@@ -0,0 +1,9 @@
import type { TSESTree } from '@typescript-eslint/types';
import { DefinitionBase } from './DefinitionBase';
import { DefinitionType } from './DefinitionType';
export declare class ClassNameDefinition extends DefinitionBase<DefinitionType.ClassName, TSESTree.ClassDeclaration | TSESTree.ClassExpression, null, TSESTree.Identifier> {
readonly isTypeDefinition = true;
readonly isVariableDefinition = true;
constructor(name: TSESTree.Identifier, node: ClassNameDefinition['node']);
}
//# sourceMappingURL=ClassNameDefinition.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"ClassNameDefinition.d.ts","sourceRoot":"","sources":["../../src/definition/ClassNameDefinition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,qBAAa,mBAAoB,SAAQ,cAAc,CACrD,cAAc,CAAC,SAAS,EACxB,QAAQ,CAAC,gBAAgB,GAAG,QAAQ,CAAC,eAAe,EACpD,IAAI,EACJ,QAAQ,CAAC,UAAU,CACpB;IACC,SAAgB,gBAAgB,QAAQ;IACxC,SAAgB,oBAAoB,QAAQ;gBAEhC,IAAI,EAAE,QAAQ,CAAC,UAAU,EAAE,IAAI,EAAE,mBAAmB,CAAC,MAAM,CAAC;CAGzE"}

View File

@@ -0,0 +1,13 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ClassNameDefinition = void 0;
const DefinitionBase_1 = require("./DefinitionBase");
const DefinitionType_1 = require("./DefinitionType");
class ClassNameDefinition extends DefinitionBase_1.DefinitionBase {
isTypeDefinition = true;
isVariableDefinition = true;
constructor(name, node) {
super(DefinitionType_1.DefinitionType.ClassName, name, node, null);
}
}
exports.ClassNameDefinition = ClassNameDefinition;

View File

@@ -0,0 +1,13 @@
import type { CatchClauseDefinition } from './CatchClauseDefinition';
import type { ClassNameDefinition } from './ClassNameDefinition';
import type { FunctionNameDefinition } from './FunctionNameDefinition';
import type { ImplicitGlobalVariableDefinition } from './ImplicitGlobalVariableDefinition';
import type { ImportBindingDefinition } from './ImportBindingDefinition';
import type { ParameterDefinition } from './ParameterDefinition';
import type { TSEnumMemberDefinition } from './TSEnumMemberDefinition';
import type { TSEnumNameDefinition } from './TSEnumNameDefinition';
import type { TSModuleNameDefinition } from './TSModuleNameDefinition';
import type { TypeDefinition } from './TypeDefinition';
import type { VariableDefinition } from './VariableDefinition';
export type Definition = CatchClauseDefinition | ClassNameDefinition | FunctionNameDefinition | ImplicitGlobalVariableDefinition | ImportBindingDefinition | ParameterDefinition | TSEnumMemberDefinition | TSEnumNameDefinition | TSModuleNameDefinition | TypeDefinition | VariableDefinition;
//# sourceMappingURL=Definition.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"Definition.d.ts","sourceRoot":"","sources":["../../src/definition/Definition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AACvE,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,oCAAoC,CAAC;AAC3F,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACzE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AACvE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AACvE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE/D,MAAM,MAAM,UAAU,GAClB,qBAAqB,GACrB,mBAAmB,GACnB,sBAAsB,GACtB,gCAAgC,GAChC,uBAAuB,GACvB,mBAAmB,GACnB,sBAAsB,GACtB,oBAAoB,GACpB,sBAAsB,GACtB,cAAc,GACd,kBAAkB,CAAC"}

View File

@@ -0,0 +1,2 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });

View File

@@ -0,0 +1,34 @@
import type { TSESTree } from '@typescript-eslint/types';
import type { DefinitionType } from './DefinitionType';
export declare abstract class DefinitionBase<Type extends DefinitionType, Node extends TSESTree.Node, Parent extends TSESTree.Node | null, Name extends TSESTree.Node> {
/**
* A unique ID for this instance - primarily used to help debugging and testing
*/
readonly $id: number;
readonly type: Type;
/**
* The `Identifier` node of this definition
* @public
*/
readonly name: Name;
/**
* The enclosing node of the name.
* @public
*/
readonly node: Node;
/**
* the enclosing statement node of the identifier.
* @public
*/
readonly parent: Parent;
constructor(type: Type, name: Name, node: Node, parent: Parent);
/**
* `true` if the variable is valid in a type context, false otherwise
*/
abstract readonly isTypeDefinition: boolean;
/**
* `true` if the variable is valid in a value context, false otherwise
*/
abstract readonly isVariableDefinition: boolean;
}
//# sourceMappingURL=DefinitionBase.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"DefinitionBase.d.ts","sourceRoot":"","sources":["../../src/definition/DefinitionBase.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAMvD,8BAAsB,cAAc,CAClC,IAAI,SAAS,cAAc,EAC3B,IAAI,SAAS,QAAQ,CAAC,IAAI,EAC1B,MAAM,SAAS,QAAQ,CAAC,IAAI,GAAG,IAAI,EACnC,IAAI,SAAS,QAAQ,CAAC,IAAI;IAE1B;;OAEG;IACH,SAAgB,GAAG,EAAE,MAAM,CAAe;IAE1C,SAAgB,IAAI,EAAE,IAAI,CAAC;IAE3B;;;OAGG;IACH,SAAgB,IAAI,EAAE,IAAI,CAAC;IAE3B;;;OAGG;IACH,SAAgB,IAAI,EAAE,IAAI,CAAC;IAE3B;;;OAGG;IACH,SAAgB,MAAM,EAAE,MAAM,CAAC;gBAEnB,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM;IAO9D;;OAEG;IACH,kBAAyB,gBAAgB,EAAE,OAAO,CAAC;IAEnD;;OAEG;IACH,kBAAyB,oBAAoB,EAAE,OAAO,CAAC;CACxD"}

View File

@@ -0,0 +1,34 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.DefinitionBase = void 0;
const ID_1 = require("../ID");
const generator = (0, ID_1.createIdGenerator)();
class DefinitionBase {
/**
* A unique ID for this instance - primarily used to help debugging and testing
*/
$id = generator();
type;
/**
* The `Identifier` node of this definition
* @public
*/
name;
/**
* The enclosing node of the name.
* @public
*/
node;
/**
* the enclosing statement node of the identifier.
* @public
*/
parent;
constructor(type, name, node, parent) {
this.type = type;
this.name = name;
this.node = node;
this.parent = parent;
}
}
exports.DefinitionBase = DefinitionBase;

View File

@@ -0,0 +1,14 @@
export declare enum DefinitionType {
CatchClause = "CatchClause",
ClassName = "ClassName",
FunctionName = "FunctionName",
ImplicitGlobalVariable = "ImplicitGlobalVariable",
ImportBinding = "ImportBinding",
Parameter = "Parameter",
TSEnumName = "TSEnumName",
TSEnumMember = "TSEnumMemberName",
TSModuleName = "TSModuleName",
Type = "Type",
Variable = "Variable"
}
//# sourceMappingURL=DefinitionType.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"DefinitionType.d.ts","sourceRoot":"","sources":["../../src/definition/DefinitionType.ts"],"names":[],"mappings":"AAAA,oBAAY,cAAc;IACxB,WAAW,gBAAgB;IAC3B,SAAS,cAAc;IACvB,YAAY,iBAAiB;IAC7B,sBAAsB,2BAA2B;IACjD,aAAa,kBAAkB;IAC/B,SAAS,cAAc;IACvB,UAAU,eAAe;IACzB,YAAY,qBAAqB;IACjC,YAAY,iBAAiB;IAC7B,IAAI,SAAS;IACb,QAAQ,aAAa;CACtB"}

View File

@@ -0,0 +1,17 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.DefinitionType = void 0;
var DefinitionType;
(function (DefinitionType) {
DefinitionType["CatchClause"] = "CatchClause";
DefinitionType["ClassName"] = "ClassName";
DefinitionType["FunctionName"] = "FunctionName";
DefinitionType["ImplicitGlobalVariable"] = "ImplicitGlobalVariable";
DefinitionType["ImportBinding"] = "ImportBinding";
DefinitionType["Parameter"] = "Parameter";
DefinitionType["TSEnumName"] = "TSEnumName";
DefinitionType["TSEnumMember"] = "TSEnumMemberName";
DefinitionType["TSModuleName"] = "TSModuleName";
DefinitionType["Type"] = "Type";
DefinitionType["Variable"] = "Variable";
})(DefinitionType || (exports.DefinitionType = DefinitionType = {}));

View File

@@ -0,0 +1,9 @@
import type { TSESTree } from '@typescript-eslint/types';
import { DefinitionBase } from './DefinitionBase';
import { DefinitionType } from './DefinitionType';
export declare class FunctionNameDefinition extends DefinitionBase<DefinitionType.FunctionName, TSESTree.FunctionDeclaration | TSESTree.FunctionExpression | TSESTree.TSDeclareFunction | TSESTree.TSEmptyBodyFunctionExpression, null, TSESTree.Identifier> {
readonly isTypeDefinition = false;
readonly isVariableDefinition = true;
constructor(name: TSESTree.Identifier, node: FunctionNameDefinition['node']);
}
//# sourceMappingURL=FunctionNameDefinition.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"FunctionNameDefinition.d.ts","sourceRoot":"","sources":["../../src/definition/FunctionNameDefinition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,qBAAa,sBAAuB,SAAQ,cAAc,CACxD,cAAc,CAAC,YAAY,EACzB,QAAQ,CAAC,mBAAmB,GAC5B,QAAQ,CAAC,kBAAkB,GAC3B,QAAQ,CAAC,iBAAiB,GAC1B,QAAQ,CAAC,6BAA6B,EACxC,IAAI,EACJ,QAAQ,CAAC,UAAU,CACpB;IACC,SAAgB,gBAAgB,SAAS;IACzC,SAAgB,oBAAoB,QAAQ;gBAEhC,IAAI,EAAE,QAAQ,CAAC,UAAU,EAAE,IAAI,EAAE,sBAAsB,CAAC,MAAM,CAAC;CAG5E"}

View File

@@ -0,0 +1,13 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.FunctionNameDefinition = void 0;
const DefinitionBase_1 = require("./DefinitionBase");
const DefinitionType_1 = require("./DefinitionType");
class FunctionNameDefinition extends DefinitionBase_1.DefinitionBase {
isTypeDefinition = false;
isVariableDefinition = true;
constructor(name, node) {
super(DefinitionType_1.DefinitionType.FunctionName, name, node, null);
}
}
exports.FunctionNameDefinition = FunctionNameDefinition;

View File

@@ -0,0 +1,9 @@
import type { TSESTree } from '@typescript-eslint/types';
import { DefinitionBase } from './DefinitionBase';
import { DefinitionType } from './DefinitionType';
export declare class ImplicitGlobalVariableDefinition extends DefinitionBase<DefinitionType.ImplicitGlobalVariable, TSESTree.Node, null, TSESTree.BindingName> {
readonly isTypeDefinition = false;
readonly isVariableDefinition = true;
constructor(name: TSESTree.BindingName, node: ImplicitGlobalVariableDefinition['node']);
}
//# sourceMappingURL=ImplicitGlobalVariableDefinition.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"ImplicitGlobalVariableDefinition.d.ts","sourceRoot":"","sources":["../../src/definition/ImplicitGlobalVariableDefinition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,qBAAa,gCAAiC,SAAQ,cAAc,CAClE,cAAc,CAAC,sBAAsB,EACrC,QAAQ,CAAC,IAAI,EACb,IAAI,EACJ,QAAQ,CAAC,WAAW,CACrB;IACC,SAAgB,gBAAgB,SAAS;IACzC,SAAgB,oBAAoB,QAAQ;gBAG1C,IAAI,EAAE,QAAQ,CAAC,WAAW,EAC1B,IAAI,EAAE,gCAAgC,CAAC,MAAM,CAAC;CAIjD"}

View File

@@ -0,0 +1,13 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ImplicitGlobalVariableDefinition = void 0;
const DefinitionBase_1 = require("./DefinitionBase");
const DefinitionType_1 = require("./DefinitionType");
class ImplicitGlobalVariableDefinition extends DefinitionBase_1.DefinitionBase {
isTypeDefinition = false;
isVariableDefinition = true;
constructor(name, node) {
super(DefinitionType_1.DefinitionType.ImplicitGlobalVariable, name, node, null);
}
}
exports.ImplicitGlobalVariableDefinition = ImplicitGlobalVariableDefinition;

View File

@@ -0,0 +1,10 @@
import type { TSESTree } from '@typescript-eslint/types';
import { DefinitionBase } from './DefinitionBase';
import { DefinitionType } from './DefinitionType';
export declare class ImportBindingDefinition extends DefinitionBase<DefinitionType.ImportBinding, TSESTree.ImportDefaultSpecifier | TSESTree.ImportNamespaceSpecifier | TSESTree.ImportSpecifier | TSESTree.TSImportEqualsDeclaration, TSESTree.ImportDeclaration | TSESTree.TSImportEqualsDeclaration, TSESTree.Identifier> {
readonly isTypeDefinition = true;
readonly isVariableDefinition = true;
constructor(name: TSESTree.Identifier, node: TSESTree.TSImportEqualsDeclaration, decl: TSESTree.TSImportEqualsDeclaration);
constructor(name: TSESTree.Identifier, node: Exclude<ImportBindingDefinition['node'], TSESTree.TSImportEqualsDeclaration>, decl: TSESTree.ImportDeclaration);
}
//# sourceMappingURL=ImportBindingDefinition.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"ImportBindingDefinition.d.ts","sourceRoot":"","sources":["../../src/definition/ImportBindingDefinition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,qBAAa,uBAAwB,SAAQ,cAAc,CACzD,cAAc,CAAC,aAAa,EAC1B,QAAQ,CAAC,sBAAsB,GAC/B,QAAQ,CAAC,wBAAwB,GACjC,QAAQ,CAAC,eAAe,GACxB,QAAQ,CAAC,yBAAyB,EACpC,QAAQ,CAAC,iBAAiB,GAAG,QAAQ,CAAC,yBAAyB,EAC/D,QAAQ,CAAC,UAAU,CACpB;IACC,SAAgB,gBAAgB,QAAQ;IACxC,SAAgB,oBAAoB,QAAQ;gBAG1C,IAAI,EAAE,QAAQ,CAAC,UAAU,EACzB,IAAI,EAAE,QAAQ,CAAC,yBAAyB,EACxC,IAAI,EAAE,QAAQ,CAAC,yBAAyB;gBAGxC,IAAI,EAAE,QAAQ,CAAC,UAAU,EACzB,IAAI,EAAE,OAAO,CACX,uBAAuB,CAAC,MAAM,CAAC,EAC/B,QAAQ,CAAC,yBAAyB,CACnC,EACD,IAAI,EAAE,QAAQ,CAAC,iBAAiB;CASnC"}

View File

@@ -0,0 +1,13 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ImportBindingDefinition = void 0;
const DefinitionBase_1 = require("./DefinitionBase");
const DefinitionType_1 = require("./DefinitionType");
class ImportBindingDefinition extends DefinitionBase_1.DefinitionBase {
isTypeDefinition = true;
isVariableDefinition = true;
constructor(name, node, decl) {
super(DefinitionType_1.DefinitionType.ImportBinding, name, node, decl);
}
}
exports.ImportBindingDefinition = ImportBindingDefinition;

View File

@@ -0,0 +1,13 @@
import type { TSESTree } from '@typescript-eslint/types';
import { DefinitionBase } from './DefinitionBase';
import { DefinitionType } from './DefinitionType';
export declare class ParameterDefinition extends DefinitionBase<DefinitionType.Parameter, TSESTree.ArrowFunctionExpression | TSESTree.FunctionDeclaration | TSESTree.FunctionExpression | TSESTree.TSCallSignatureDeclaration | TSESTree.TSConstructorType | TSESTree.TSConstructSignatureDeclaration | TSESTree.TSDeclareFunction | TSESTree.TSEmptyBodyFunctionExpression | TSESTree.TSFunctionType | TSESTree.TSMethodSignature, null, TSESTree.BindingName> {
/**
* Whether the parameter definition is a part of a rest parameter.
*/
readonly isTypeDefinition = false;
readonly isVariableDefinition = true;
readonly rest: boolean;
constructor(name: TSESTree.BindingName, node: ParameterDefinition['node'], rest: boolean);
}
//# sourceMappingURL=ParameterDefinition.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"ParameterDefinition.d.ts","sourceRoot":"","sources":["../../src/definition/ParameterDefinition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,qBAAa,mBAAoB,SAAQ,cAAc,CACrD,cAAc,CAAC,SAAS,EACtB,QAAQ,CAAC,uBAAuB,GAChC,QAAQ,CAAC,mBAAmB,GAC5B,QAAQ,CAAC,kBAAkB,GAC3B,QAAQ,CAAC,0BAA0B,GACnC,QAAQ,CAAC,iBAAiB,GAC1B,QAAQ,CAAC,+BAA+B,GACxC,QAAQ,CAAC,iBAAiB,GAC1B,QAAQ,CAAC,6BAA6B,GACtC,QAAQ,CAAC,cAAc,GACvB,QAAQ,CAAC,iBAAiB,EAC5B,IAAI,EACJ,QAAQ,CAAC,WAAW,CACrB;IACC;;OAEG;IACH,SAAgB,gBAAgB,SAAS;IACzC,SAAgB,oBAAoB,QAAQ;IAC5C,SAAgB,IAAI,EAAE,OAAO,CAAC;gBAG5B,IAAI,EAAE,QAAQ,CAAC,WAAW,EAC1B,IAAI,EAAE,mBAAmB,CAAC,MAAM,CAAC,EACjC,IAAI,EAAE,OAAO;CAKhB"}

View File

@@ -0,0 +1,18 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ParameterDefinition = void 0;
const DefinitionBase_1 = require("./DefinitionBase");
const DefinitionType_1 = require("./DefinitionType");
class ParameterDefinition extends DefinitionBase_1.DefinitionBase {
/**
* Whether the parameter definition is a part of a rest parameter.
*/
isTypeDefinition = false;
isVariableDefinition = true;
rest;
constructor(name, node, rest) {
super(DefinitionType_1.DefinitionType.Parameter, name, node, null);
this.rest = rest;
}
}
exports.ParameterDefinition = ParameterDefinition;

View File

@@ -0,0 +1,9 @@
import type { TSESTree } from '@typescript-eslint/types';
import { DefinitionBase } from './DefinitionBase';
import { DefinitionType } from './DefinitionType';
export declare class TSEnumMemberDefinition extends DefinitionBase<DefinitionType.TSEnumMember, TSESTree.TSEnumMember, null, TSESTree.Identifier | TSESTree.StringLiteral> {
readonly isTypeDefinition = true;
readonly isVariableDefinition = true;
constructor(name: TSESTree.Identifier | TSESTree.StringLiteral, node: TSEnumMemberDefinition['node']);
}
//# sourceMappingURL=TSEnumMemberDefinition.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"TSEnumMemberDefinition.d.ts","sourceRoot":"","sources":["../../src/definition/TSEnumMemberDefinition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,qBAAa,sBAAuB,SAAQ,cAAc,CACxD,cAAc,CAAC,YAAY,EAC3B,QAAQ,CAAC,YAAY,EACrB,IAAI,EACJ,QAAQ,CAAC,UAAU,GAAG,QAAQ,CAAC,aAAa,CAC7C;IACC,SAAgB,gBAAgB,QAAQ;IACxC,SAAgB,oBAAoB,QAAQ;gBAG1C,IAAI,EAAE,QAAQ,CAAC,UAAU,GAAG,QAAQ,CAAC,aAAa,EAClD,IAAI,EAAE,sBAAsB,CAAC,MAAM,CAAC;CAIvC"}

View File

@@ -0,0 +1,13 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.TSEnumMemberDefinition = void 0;
const DefinitionBase_1 = require("./DefinitionBase");
const DefinitionType_1 = require("./DefinitionType");
class TSEnumMemberDefinition extends DefinitionBase_1.DefinitionBase {
isTypeDefinition = true;
isVariableDefinition = true;
constructor(name, node) {
super(DefinitionType_1.DefinitionType.TSEnumMember, name, node, null);
}
}
exports.TSEnumMemberDefinition = TSEnumMemberDefinition;

View File

@@ -0,0 +1,9 @@
import type { TSESTree } from '@typescript-eslint/types';
import { DefinitionBase } from './DefinitionBase';
import { DefinitionType } from './DefinitionType';
export declare class TSEnumNameDefinition extends DefinitionBase<DefinitionType.TSEnumName, TSESTree.TSEnumDeclaration, null, TSESTree.Identifier> {
readonly isTypeDefinition = true;
readonly isVariableDefinition = true;
constructor(name: TSESTree.Identifier, node: TSEnumNameDefinition['node']);
}
//# sourceMappingURL=TSEnumNameDefinition.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"TSEnumNameDefinition.d.ts","sourceRoot":"","sources":["../../src/definition/TSEnumNameDefinition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,qBAAa,oBAAqB,SAAQ,cAAc,CACtD,cAAc,CAAC,UAAU,EACzB,QAAQ,CAAC,iBAAiB,EAC1B,IAAI,EACJ,QAAQ,CAAC,UAAU,CACpB;IACC,SAAgB,gBAAgB,QAAQ;IACxC,SAAgB,oBAAoB,QAAQ;gBAEhC,IAAI,EAAE,QAAQ,CAAC,UAAU,EAAE,IAAI,EAAE,oBAAoB,CAAC,MAAM,CAAC;CAG1E"}

View File

@@ -0,0 +1,13 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.TSEnumNameDefinition = void 0;
const DefinitionBase_1 = require("./DefinitionBase");
const DefinitionType_1 = require("./DefinitionType");
class TSEnumNameDefinition extends DefinitionBase_1.DefinitionBase {
isTypeDefinition = true;
isVariableDefinition = true;
constructor(name, node) {
super(DefinitionType_1.DefinitionType.TSEnumName, name, node, null);
}
}
exports.TSEnumNameDefinition = TSEnumNameDefinition;

View File

@@ -0,0 +1,9 @@
import type { TSESTree } from '@typescript-eslint/types';
import { DefinitionBase } from './DefinitionBase';
import { DefinitionType } from './DefinitionType';
export declare class TSModuleNameDefinition extends DefinitionBase<DefinitionType.TSModuleName, TSESTree.TSModuleDeclaration, null, TSESTree.Identifier> {
readonly isTypeDefinition = true;
readonly isVariableDefinition = true;
constructor(name: TSESTree.Identifier, node: TSModuleNameDefinition['node']);
}
//# sourceMappingURL=TSModuleNameDefinition.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"TSModuleNameDefinition.d.ts","sourceRoot":"","sources":["../../src/definition/TSModuleNameDefinition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,qBAAa,sBAAuB,SAAQ,cAAc,CACxD,cAAc,CAAC,YAAY,EAC3B,QAAQ,CAAC,mBAAmB,EAC5B,IAAI,EACJ,QAAQ,CAAC,UAAU,CACpB;IACC,SAAgB,gBAAgB,QAAQ;IACxC,SAAgB,oBAAoB,QAAQ;gBAEhC,IAAI,EAAE,QAAQ,CAAC,UAAU,EAAE,IAAI,EAAE,sBAAsB,CAAC,MAAM,CAAC;CAG5E"}

View File

@@ -0,0 +1,13 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.TSModuleNameDefinition = void 0;
const DefinitionBase_1 = require("./DefinitionBase");
const DefinitionType_1 = require("./DefinitionType");
class TSModuleNameDefinition extends DefinitionBase_1.DefinitionBase {
isTypeDefinition = true;
isVariableDefinition = true;
constructor(name, node) {
super(DefinitionType_1.DefinitionType.TSModuleName, name, node, null);
}
}
exports.TSModuleNameDefinition = TSModuleNameDefinition;

View File

@@ -0,0 +1,9 @@
import type { TSESTree } from '@typescript-eslint/types';
import { DefinitionBase } from './DefinitionBase';
import { DefinitionType } from './DefinitionType';
export declare class TypeDefinition extends DefinitionBase<DefinitionType.Type, TSESTree.TSInterfaceDeclaration | TSESTree.TSMappedType | TSESTree.TSTypeAliasDeclaration | TSESTree.TSTypeParameter, null, TSESTree.Identifier> {
readonly isTypeDefinition = true;
readonly isVariableDefinition = false;
constructor(name: TSESTree.Identifier, node: TypeDefinition['node']);
}
//# sourceMappingURL=TypeDefinition.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"TypeDefinition.d.ts","sourceRoot":"","sources":["../../src/definition/TypeDefinition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,qBAAa,cAAe,SAAQ,cAAc,CAChD,cAAc,CAAC,IAAI,EACjB,QAAQ,CAAC,sBAAsB,GAC/B,QAAQ,CAAC,YAAY,GACrB,QAAQ,CAAC,sBAAsB,GAC/B,QAAQ,CAAC,eAAe,EAC1B,IAAI,EACJ,QAAQ,CAAC,UAAU,CACpB;IACC,SAAgB,gBAAgB,QAAQ;IACxC,SAAgB,oBAAoB,SAAS;gBAEjC,IAAI,EAAE,QAAQ,CAAC,UAAU,EAAE,IAAI,EAAE,cAAc,CAAC,MAAM,CAAC;CAGpE"}

View File

@@ -0,0 +1,13 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.TypeDefinition = void 0;
const DefinitionBase_1 = require("./DefinitionBase");
const DefinitionType_1 = require("./DefinitionType");
class TypeDefinition extends DefinitionBase_1.DefinitionBase {
isTypeDefinition = true;
isVariableDefinition = false;
constructor(name, node) {
super(DefinitionType_1.DefinitionType.Type, name, node, null);
}
}
exports.TypeDefinition = TypeDefinition;

View File

@@ -0,0 +1,9 @@
import type { TSESTree } from '@typescript-eslint/types';
import { DefinitionBase } from './DefinitionBase';
import { DefinitionType } from './DefinitionType';
export declare class VariableDefinition extends DefinitionBase<DefinitionType.Variable, TSESTree.VariableDeclarator, TSESTree.VariableDeclaration, TSESTree.Identifier> {
readonly isTypeDefinition = false;
readonly isVariableDefinition = true;
constructor(name: TSESTree.Identifier, node: VariableDefinition['node'], decl: TSESTree.VariableDeclaration);
}
//# sourceMappingURL=VariableDefinition.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"VariableDefinition.d.ts","sourceRoot":"","sources":["../../src/definition/VariableDefinition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,qBAAa,kBAAmB,SAAQ,cAAc,CACpD,cAAc,CAAC,QAAQ,EACvB,QAAQ,CAAC,kBAAkB,EAC3B,QAAQ,CAAC,mBAAmB,EAC5B,QAAQ,CAAC,UAAU,CACpB;IACC,SAAgB,gBAAgB,SAAS;IACzC,SAAgB,oBAAoB,QAAQ;gBAG1C,IAAI,EAAE,QAAQ,CAAC,UAAU,EACzB,IAAI,EAAE,kBAAkB,CAAC,MAAM,CAAC,EAChC,IAAI,EAAE,QAAQ,CAAC,mBAAmB;CAIrC"}

View File

@@ -0,0 +1,13 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.VariableDefinition = void 0;
const DefinitionBase_1 = require("./DefinitionBase");
const DefinitionType_1 = require("./DefinitionType");
class VariableDefinition extends DefinitionBase_1.DefinitionBase {
isTypeDefinition = false;
isVariableDefinition = true;
constructor(name, node, decl) {
super(DefinitionType_1.DefinitionType.Variable, name, node, decl);
}
}
exports.VariableDefinition = VariableDefinition;

View File

@@ -0,0 +1,14 @@
export * from './CatchClauseDefinition';
export * from './ClassNameDefinition';
export * from './Definition';
export * from './DefinitionType';
export * from './FunctionNameDefinition';
export * from './ImplicitGlobalVariableDefinition';
export * from './ImportBindingDefinition';
export * from './ParameterDefinition';
export * from './TSEnumMemberDefinition';
export * from './TSEnumNameDefinition';
export * from './TSModuleNameDefinition';
export * from './TypeDefinition';
export * from './VariableDefinition';
//# sourceMappingURL=index.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/definition/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,0BAA0B,CAAC;AACzC,cAAc,oCAAoC,CAAC;AACnD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC"}

View File

@@ -0,0 +1,29 @@
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
__exportStar(require("./CatchClauseDefinition"), exports);
__exportStar(require("./ClassNameDefinition"), exports);
__exportStar(require("./Definition"), exports);
__exportStar(require("./DefinitionType"), exports);
__exportStar(require("./FunctionNameDefinition"), exports);
__exportStar(require("./ImplicitGlobalVariableDefinition"), exports);
__exportStar(require("./ImportBindingDefinition"), exports);
__exportStar(require("./ParameterDefinition"), exports);
__exportStar(require("./TSEnumMemberDefinition"), exports);
__exportStar(require("./TSEnumNameDefinition"), exports);
__exportStar(require("./TSModuleNameDefinition"), exports);
__exportStar(require("./TypeDefinition"), exports);
__exportStar(require("./VariableDefinition"), exports);

View File

@@ -0,0 +1,9 @@
export { analyze, type AnalyzeOptions } from './analyze';
export * from './definition';
export { PatternVisitor, type PatternVisitorCallback, type PatternVisitorOptions, } from './referencer/PatternVisitor';
export { Reference } from './referencer/Reference';
export { Visitor } from './referencer/Visitor';
export * from './scope';
export { ScopeManager } from './ScopeManager';
export * from './variable';
//# sourceMappingURL=index.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,WAAW,CAAC;AACzD,cAAc,cAAc,CAAC;AAC7B,OAAO,EACL,cAAc,EACd,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,GAC3B,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/C,cAAc,SAAS,CAAC;AACxB,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,cAAc,YAAY,CAAC"}

View File

@@ -0,0 +1,30 @@
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.ScopeManager = exports.Visitor = exports.Reference = exports.PatternVisitor = exports.analyze = void 0;
var analyze_1 = require("./analyze");
Object.defineProperty(exports, "analyze", { enumerable: true, get: function () { return analyze_1.analyze; } });
__exportStar(require("./definition"), exports);
var PatternVisitor_1 = require("./referencer/PatternVisitor");
Object.defineProperty(exports, "PatternVisitor", { enumerable: true, get: function () { return PatternVisitor_1.PatternVisitor; } });
var Reference_1 = require("./referencer/Reference");
Object.defineProperty(exports, "Reference", { enumerable: true, get: function () { return Reference_1.Reference; } });
var Visitor_1 = require("./referencer/Visitor");
Object.defineProperty(exports, "Visitor", { enumerable: true, get: function () { return Visitor_1.Visitor; } });
__exportStar(require("./scope"), exports);
var ScopeManager_1 = require("./ScopeManager");
Object.defineProperty(exports, "ScopeManager", { enumerable: true, get: function () { return ScopeManager_1.ScopeManager; } });
__exportStar(require("./variable"), exports);

View File

@@ -0,0 +1,16 @@
export declare const TYPE: Readonly<{
eslintImplicitGlobalSetting: "readonly";
isTypeVariable: true;
isValueVariable: false;
}>;
export declare const VALUE: Readonly<{
eslintImplicitGlobalSetting: "readonly";
isTypeVariable: false;
isValueVariable: true;
}>;
export declare const TYPE_VALUE: Readonly<{
eslintImplicitGlobalSetting: "readonly";
isTypeVariable: true;
isValueVariable: true;
}>;
//# sourceMappingURL=base-config.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"base-config.d.ts","sourceRoot":"","sources":["../../src/lib/base-config.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,IAAI;;;;EAIf,CAAC;AACH,eAAO,MAAM,KAAK;;;;EAIhB,CAAC;AACH,eAAO,MAAM,UAAU;;;;EAIrB,CAAC"}

View File

@@ -0,0 +1,22 @@
"use strict";
// THIS CODE WAS AUTOMATICALLY GENERATED
// DO NOT EDIT THIS CODE BY HAND
// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE:
// npx nx generate-lib repo
Object.defineProperty(exports, "__esModule", { value: true });
exports.TYPE_VALUE = exports.VALUE = exports.TYPE = void 0;
exports.TYPE = Object.freeze({
eslintImplicitGlobalSetting: 'readonly',
isTypeVariable: true,
isValueVariable: false,
});
exports.VALUE = Object.freeze({
eslintImplicitGlobalSetting: 'readonly',
isTypeVariable: false,
isValueVariable: true,
});
exports.TYPE_VALUE = Object.freeze({
eslintImplicitGlobalSetting: 'readonly',
isTypeVariable: true,
isValueVariable: true,
});

View File

@@ -0,0 +1,3 @@
import type { LibDefinition } from '../variable';
export declare const decorators: LibDefinition;
//# sourceMappingURL=decorators.d.ts.map

Some files were not shown because too many files have changed in this diff Show More