nanos-lint 2.2.0

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.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli-r8LDolDk.d.ts","names":[],"sources":["../node_modules/commander/typings/index.d.ts","../src/cli.ts"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;;KAWK,aAAa,aAAa,oCAC3B,eACC,WAAW;cAEH,uBAAuB;EAClC;EACA;EACA;EACA;;;;;;;EAQA,YAAY,kBAAkB,cAAc;;UAY7B;;;EAGf;;EAEA;;cAGW;EACX;EACA;EACA;EACA;EACA;EACA,YAAY,GAAG,eAAe,UAAU,MAAM;EAC9C;;;;;;EAOA,YAAY,aAAa;;;;EAKzB;;;;EAKA,QAAQ,gBAAgB;;;;EAKxB,UAAU,GAAG,KAAK,eAAe,UAAU,MAAM;;;;EAKjD,QAAQ;;;;EAKR;;;;EAKA;;cAGW;EACX;EACA;EAEA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA,YAAY,GAAG,eAAe,UAAU,MAAM;EAC9C;EACA;EACA;EAEA,YAAY,eAAe;;;;EAK3B,QAAQ,gBAAgB;;;;;;;;;;;EAYxB,OAAO;;;;;;;;;;;EAYP,UAAU;;;;;;;;;;;EAYV,QAAQ,cAAc;;;;;;;EAQtB,IAAI;;;;EAKJ,UAAU,GAAG,KAAK,eAAe,UAAU,MAAM;;;;EAKjD,oBAAoB;;;;EAKpB,SAAS;;;;EAKT,QAAQ;;;;EAKR;;;;;EAMA;;;;EAKA,UAAU;;;;;;EAOV;;cAGW;;EAEX;EACA;EACA;EACA;EACA;EAEA;;;;;;;EAQA,eAAe;IACb;IACA;IACA;;;EAIF,eAAe,KAAK;;EAEpB,sBAAsB,KAAK;;EAE3B,WAAW,QAAQ;;EAEnB,kBAAkB,QAAQ;;EAE1B,aAAa,UAAU;;EAEvB,oBAAoB,UAAU;;EAG9B,aAAa,KAAK;;EAElB,mB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{ a as runCLI, i as isDirectExecution, n as collectIgnorePatterns, r as createProgram, t as CreateProgramOptions } from "./cli-r8LDolDk.js";
2
+ export { CreateProgramOptions, collectIgnorePatterns, createProgram, isDirectExecution, runCLI };
package/dist/cli.js ADDED
@@ -0,0 +1,2 @@
1
+ import { i as runCLI, n as createProgram, r as isDirectExecution, t as collectIgnorePatterns } from "./cli-Dx-1zSOk.js";
2
+ export { collectIgnorePatterns, createProgram, isDirectExecution, runCLI };
@@ -0,0 +1,181 @@
1
+ import { a as runCLI, i as isDirectExecution, n as collectIgnorePatterns, r as createProgram, t as CreateProgramOptions } from "./cli-r8LDolDk.js";
2
+ //#region src/types.d.ts
3
+ export type DiagnosticSeverity = "Error" | "Warning" | "Information" | "Hint";
4
+ export type DiagnosticSeverityLevel = 1 | 2 | 3 | 4;
5
+ export interface DiagnosticRange {
6
+ start: {
7
+ line: number;
8
+ character: number;
9
+ };
10
+ end: {
11
+ line: number;
12
+ character: number;
13
+ };
14
+ }
15
+ export interface Diagnostic {
16
+ range: DiagnosticRange;
17
+ severity: DiagnosticSeverityLevel;
18
+ code?: string;
19
+ message: string;
20
+ source?: string;
21
+ }
22
+ export type DiagnosticReport = Record<string, Diagnostic[]>;
23
+ export interface CheckOptions {
24
+ path: string;
25
+ checklevel?: DiagnosticSeverity;
26
+ configpath?: string;
27
+ lualsVersion?: string;
28
+ format?: "pretty" | "json" | "github";
29
+ failOnError?: boolean;
30
+ quiet?: boolean;
31
+ lualsBin?: string;
32
+ ignore?: string[];
33
+ }
34
+ export interface CheckResult {
35
+ passed: boolean;
36
+ totalProblems: number;
37
+ totalErrors?: number;
38
+ totalWarnings?: number;
39
+ totalFiles: number;
40
+ totalFilesChecked?: number;
41
+ diagnostics: DiagnosticReport;
42
+ }
43
+ export interface LuaRCConfig {
44
+ $schema?: string;
45
+ runtime?: {
46
+ version?: string;
47
+ path?: string[];
48
+ [key: string]: unknown;
49
+ };
50
+ workspace?: {
51
+ checkThirdParty?: boolean;
52
+ library?: string[];
53
+ ignoreDir?: string[];
54
+ [key: string]: unknown;
55
+ };
56
+ files?: {
57
+ exclude?: string[];
58
+ [key: string]: unknown;
59
+ };
60
+ diagnostics?: {
61
+ enable?: boolean;
62
+ globals?: string[];
63
+ disable?: string[];
64
+ severity?: Record<string, string>;
65
+ neededFileStatus?: Record<string, string>;
66
+ [key: string]: unknown;
67
+ };
68
+ [key: string]: unknown;
69
+ }
70
+ /**
71
+ * Converts a URI (e.g. `file:///path/to/file` or `file:///C:/path/to/file` or `file:///c%3A/path` or `file://server/share/file`)
72
+ * to a standard local file system path across both Windows and Unix.
73
+ */
74
+ export declare function fileUriToPath(uri: string): string;
75
+ //#endregion
76
+ //#region src/config.d.ts
77
+ /**
78
+ * Finds the package root directory across both development (src/) and production (dist/) environments.
79
+ */
80
+ export declare function getPackageRoot(): string;
81
+ export declare function getDefinitionsDir(): string;
82
+ export declare function getDefaultTemplatePath(): string;
83
+ /**
84
+ * Strips single-line comments (//), multi-line comments (/* ... *\/),
85
+ * and trailing commas before '}' or ']' from JSONC text while preserving string literals.
86
+ */
87
+ export declare function stripJsonComments(text: string): string;
88
+ export declare function parseJsonc<T = unknown>(text: string): T;
89
+ export declare function loadConfigFile(filePath: string): LuaRCConfig;
90
+ export interface MergeConfigOptions {
91
+ cliIgnore?: string[];
92
+ }
93
+ /**
94
+ * Merges a base nanos configuration with a workspace override configuration.
95
+ * Guarantees that the nanos definitions directory is included in workspace.library,
96
+ * and standardizes paths for LuaLS.
97
+ */
98
+ export declare function mergeConfigs(base: LuaRCConfig, override?: LuaRCConfig, definitionsDir?: string, options?: MergeConfigOptions): LuaRCConfig;
99
+ export interface ResolveWorkspaceConfigOptions {
100
+ ignore?: string[];
101
+ }
102
+ /**
103
+ * Discovers any existing workspace configuration and returns the path to an active
104
+ * configuration file with nanos definitions properly injected.
105
+ */
106
+ export declare function resolveWorkspaceConfig(workspacePath: string, customConfigPath?: string, options?: ResolveWorkspaceConfigOptions): {
107
+ configPath: string;
108
+ isTemp: boolean;
109
+ };
110
+ export interface InitWorkspaceOptions {
111
+ force?: boolean;
112
+ }
113
+ /**
114
+ * Initializes a new .luarc.json in a workspace.
115
+ */
116
+ export declare function initWorkspace(workspacePath: string, options?: InitWorkspaceOptions): string;
117
+ //#endregion
118
+ //#region src/luals.d.ts
119
+ export declare const FALLBACK_LUALS_VERSION = "3.19.1";
120
+ export declare const DEFAULT_LUALS_VERSION = "latest";
121
+ /**
122
+ * Escapes single quotes for safe PowerShell single-quoted string interpolation.
123
+ */
124
+ export declare function escapePowerShellSingleQuote(str: string): string;
125
+ /**
126
+ * Resolves the latest available LuaLS release tag from the GitHub API.
127
+ */
128
+ export declare function resolveLatestLuaLSVersion(): Promise<string>;
129
+ /**
130
+ * Resolves a version string ("latest" -> actual tag).
131
+ */
132
+ export declare function resolveLuaLSVersion(version?: string): Promise<string>;
133
+ export interface PlatformInfo {
134
+ platform: "win32" | "linux" | "darwin";
135
+ arch: "x64" | "arm64" | "ia32";
136
+ assetName: string;
137
+ binaryRelativePath: string;
138
+ }
139
+ export declare function getPlatformInfo(version?: string): PlatformInfo;
140
+ export declare function getCacheDir(version?: string): string;
141
+ export interface DownloadOptions {
142
+ quiet?: boolean;
143
+ }
144
+ export declare function downloadAndExtractLuaLS(version?: string, targetDir?: string, options?: DownloadOptions): Promise<string>;
145
+ export interface ResolveLuaLSOptions {
146
+ quiet?: boolean;
147
+ }
148
+ export declare function resolveLuaLSBinary(version?: string, options?: ResolveLuaLSOptions): Promise<string>;
149
+ export declare function runLuaLSCheck(targetPath: string, configPath: string, options: CheckOptions): Promise<CheckResult>;
150
+ /**
151
+ * Counts candidate Lua files within targetPath, taking ignoreDir and files.exclude into account.
152
+ */
153
+ export declare function countCheckedFiles(targetPath: string, configPath?: string): number;
154
+ //#endregion
155
+ //#region src/reporter.d.ts
156
+ /**
157
+ * Determines whether ANSI color codes should be enabled according to the NO_COLOR convention
158
+ * and TTY detection.
159
+ */
160
+ export declare function shouldEnableColor(): boolean;
161
+ export declare function getColors(useColor?: boolean): {
162
+ reset: string;
163
+ bold: string;
164
+ dim: string;
165
+ red: string;
166
+ green: string;
167
+ yellow: string;
168
+ blue: string;
169
+ magenta: string;
170
+ cyan: string;
171
+ gray: string;
172
+ };
173
+ export declare function formatSeverityBadge(severity: number, useColor?: boolean): string;
174
+ export declare function pluralize(count: number, singular: string, plural?: string): string;
175
+ export declare function formatProblemSummary(totalProblems: number, errors: number, warnings: number, files: number): string;
176
+ export declare function formatPretty(result: CheckResult, cwd?: string, useColor?: boolean): string;
177
+ export declare function formatGitHubAnnotations(result: CheckResult, cwd?: string): string;
178
+ export declare function formatReport(result: CheckResult, format?: "pretty" | "json" | "github", cwd?: string, useColor?: boolean): string;
179
+ //#endregion
180
+ export { CreateProgramOptions, collectIgnorePatterns, createProgram, isDirectExecution, runCLI };
181
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../src/types.ts","../src/config.ts","../src/luals.ts","../src/reporter.ts"],"mappings":";;YAEY;YACA;iBAEK;EACf;IACE;IACA;;EAEF;IACE;IACA;;;iBAIa;EACf,OAAO;EACP,UAAU;EACV;EACA;EACA;;YAGU,mBAAmB,eAAe;iBAE7B;EACf;EACA,aAAa;EACb;EACA;EACA;EACA;EACA;EACA;EACA;;iBAGe;EACf;EACA;EACA;EACA;EACA;EACA;EACA,aAAa;;iBAGE;EACf;EACA;IACE;IACA;KACC;;EAEH;IACE;IACA;IACA;KACC;;EAEH;IACE;KACC;;EAEH;IACE;IACA;IACA;IACA,WAAW;IACX,mBAAmB;KAClB;;GAEF;;;;;;wBAOa,cAAc;;;;;;wBCpEd;wBAWA;wBAKA;;;;;wBASA,kBAAkB;wBAoGlB,WAAW,aAAa,eAAe;wBAKvC,eAAe,mBAAmB;iBAQjC;EACf;;;;;;;wBAQc,aACd,MAAM,aACN,WAAU,aACV,yBACA,UAAU,qBACT;iBAqGc;EACf;;;;;;wBAOc,uBACd,uBACA,2BACA,UAAU;EACP;EAAoB;;iBA2ER;EACf;;;;;wBAMc,cAAc,uBAAuB,UAAU;;;qBC5VlD;qBACA;;;;wBAKG,4BAA4B;;;;wBAOtB,6BAA6B;;;;wBA4B7B,oBAAoB,mBAAmB;iBAO5C;EACf;EACA;EACA;EACA;;wBAGc,gBAAgB,mBAA2C;wBAiD3D,YAAY;iBASX;EACf;;wBAGoB,wBACpB,kBACA,oBACA,UAAU,kBACT;iBAyFc;EACf;;wBAGoB,mBACpB,kBACA,UAAU,sBACT;wBAqCmB,cACpB,oBACA,oBACA,SAAS,eACR,QAAQ;;;;wBA8HK,kBAAkB,oBAAoB;;;;;;;wBC3XtC;wBAUA,UAAU;;;;;;;;;;;;wBA6BV,oBACd,kBACA;wBAgBc,UAAU,eAAe,kBAAkB;wBAI3C,qBACd,uBACA,gBACA,kBACA;wBAqBc,aACd,QAAQ,aACR,cACA;wBAiFc,wBAAwB,QAAQ,aAAa;wBAsC7C,aACd,QAAQ,aACR,uCACA,cACA"}
package/dist/index.js ADDED
@@ -0,0 +1,2 @@
1
+ import { A as parseJsonc, C as runLuaLSCheck, D as initWorkspace, E as getPackageRoot, M as stripJsonComments, N as fileUriToPath, O as loadConfigFile, S as resolveLuaLSVersion, T as getDefinitionsDir, _ as escapePowerShellSingleQuote, a as formatGitHubAnnotations, b as resolveLatestLuaLSVersion, c as formatReport, d as pluralize, f as shouldEnableColor, g as downloadAndExtractLuaLS, h as countCheckedFiles, i as runCLI, j as resolveWorkspaceConfig, k as mergeConfigs, l as formatSeverityBadge, m as FALLBACK_LUALS_VERSION, n as createProgram, o as formatPretty, p as DEFAULT_LUALS_VERSION, r as isDirectExecution, s as formatProblemSummary, t as collectIgnorePatterns, u as getColors, v as getCacheDir, w as getDefaultTemplatePath, x as resolveLuaLSBinary, y as getPlatformInfo } from "./cli-Dx-1zSOk.js";
2
+ export { DEFAULT_LUALS_VERSION, FALLBACK_LUALS_VERSION, collectIgnorePatterns, countCheckedFiles, createProgram, downloadAndExtractLuaLS, escapePowerShellSingleQuote, fileUriToPath, formatGitHubAnnotations, formatPretty, formatProblemSummary, formatReport, formatSeverityBadge, getCacheDir, getColors, getDefaultTemplatePath, getDefinitionsDir, getPackageRoot, getPlatformInfo, initWorkspace, isDirectExecution, loadConfigFile, mergeConfigs, parseJsonc, pluralize, resolveLatestLuaLSVersion, resolveLuaLSBinary, resolveLuaLSVersion, resolveWorkspaceConfig, runCLI, runLuaLSCheck, shouldEnableColor, stripJsonComments };
package/package.json ADDED
@@ -0,0 +1,67 @@
1
+ {
2
+ "name": "nanos-lint",
3
+ "version": "2.2.0",
4
+ "description": "Linter and type-checker for nanos world Lua scripts powered by LuaLS",
5
+ "keywords": [
6
+ "nanos-world",
7
+ "lua",
8
+ "luals",
9
+ "lua-language-server",
10
+ "linter",
11
+ "type-checker",
12
+ "github-actions"
13
+ ],
14
+ "author": "vugi99",
15
+ "license": "MIT",
16
+ "repository": {
17
+ "type": "git",
18
+ "url": "git+https://github.com/vugi99/nanos-lint.git"
19
+ },
20
+ "bugs": {
21
+ "url": "https://github.com/vugi99/nanos-lint/issues"
22
+ },
23
+ "homepage": "https://github.com/vugi99/nanos-lint#readme",
24
+ "type": "module",
25
+ "main": "./dist/index.js",
26
+ "types": "./dist/index.d.ts",
27
+ "bin": {
28
+ "nanos-lint": "bin/nanos-lint.js"
29
+ },
30
+ "files": [
31
+ "bin",
32
+ "dist",
33
+ "vendor/nanos-world-vscode-extension/annotations.lua",
34
+ "templates",
35
+ "action.yml",
36
+ "README.md",
37
+ "LICENSE"
38
+ ],
39
+ "scripts": {
40
+ "build": "tsdown",
41
+ "typecheck": "tsc --noEmit",
42
+ "lint": "eslint \"src/**/*.ts\" \"tests/**/*.ts\" --max-warnings=0",
43
+ "lint:fix": "eslint \"src/**/*.ts\" \"tests/**/*.ts\" --fix --max-warnings=0",
44
+ "test": "vitest run",
45
+ "test:watch": "vitest"
46
+ },
47
+ "devDependencies": {
48
+ "@eslint/js": "^10.0.1",
49
+ "@types/node": "^26.6.2",
50
+ "@typescript-eslint/eslint-plugin": "^8.70.1",
51
+ "@typescript-eslint/parser": "^8.70.1",
52
+ "commander": "^15.0.0",
53
+ "eslint": "^10.11.0",
54
+ "tsdown": "^0.23.0",
55
+ "tsx": "^4.23.15",
56
+ "typescript": "^6.0.3",
57
+ "typescript-eslint": "^8.70.1",
58
+ "vitest": "^5.0.1"
59
+ },
60
+ "engines": {
61
+ "node": ">=24.0.0"
62
+ },
63
+ "allowScripts": {
64
+ "esbuild": true,
65
+ "esbuild@*": true
66
+ }
67
+ }
@@ -0,0 +1,49 @@
1
+ {
2
+ "$schema": "https://raw.githubusercontent.com/LuaLS/lua-language-server/master/setting/schema.json",
3
+ "runtime": {
4
+ "version": "Lua 5.4",
5
+ "path": [
6
+ "?.lua",
7
+ "?/init.lua"
8
+ ]
9
+ },
10
+ "workspace": {
11
+ "checkThirdParty": false,
12
+ "ignoreDir": [
13
+ ".git",
14
+ ".vscode",
15
+ "node_modules",
16
+ "dist",
17
+ "bin",
18
+ "vendor",
19
+ "script",
20
+ "meta",
21
+ "locale",
22
+ "log"
23
+ ],
24
+ "library": []
25
+ },
26
+ "diagnostics": {
27
+ "enable": true,
28
+ "globals": [
29
+ "Package",
30
+ "Server",
31
+ "Client",
32
+ "Events",
33
+ "Assets",
34
+ "Trace",
35
+ "Timer",
36
+ "HTTP",
37
+ "File",
38
+ "Database"
39
+ ],
40
+ "severity": {
41
+ "param-type-mismatch": "Warning",
42
+ "cast-type-mismatch": "Warning",
43
+ "undefined-field": "Warning",
44
+ "undefined-global": "Warning",
45
+ "syntax-error": "Error"
46
+ }
47
+ }
48
+ }
49
+