@monorepolint/config 0.6.0-alpha.5 → 0.6.0-alpha.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +39 -0
- package/package.json +18 -10
- package/.turbo/turbo-clean.log +0 -4
- package/.turbo/turbo-compile-typescript.log +0 -4
- package/.turbo/turbo-lint.log +0 -4
- package/.turbo/turbo-test.log +0 -27
- package/.turbo/turbo-transpile-typescript.log +0 -14
- package/build/tsconfig.tsbuildinfo +0 -1
- package/coverage/base.css +0 -224
- package/coverage/block-navigation.js +0 -87
- package/coverage/build/js/index.html +0 -116
- package/coverage/build/js/index.js.html +0 -103
- package/coverage/clover.xml +0 -39
- package/coverage/coverage-final.json +0 -7
- package/coverage/favicon.png +0 -0
- package/coverage/index.html +0 -131
- package/coverage/prettify.css +0 -1
- package/coverage/prettify.js +0 -2
- package/coverage/sort-arrow-sprite.png +0 -0
- package/coverage/sorter.js +0 -196
- package/coverage/src/Config.ts.html +0 -229
- package/coverage/src/Context.ts.html +0 -247
- package/coverage/src/PackageContext.ts.html +0 -112
- package/coverage/src/WorkspaceContext.ts.html +0 -127
- package/coverage/src/index.html +0 -176
- package/coverage/src/index.ts.html +0 -160
- package/src/Config.ts +0 -48
- package/src/Context.ts +0 -54
- package/src/PackageContext.ts +0 -9
- package/src/WorkspaceContext.ts +0 -14
- package/src/index.ts +0 -25
- package/tsconfig.json +0 -17
- package/vitest.config.mjs +0 -13
package/src/Context.ts
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright 2019 Palantir Technologies, Inc.
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the MIT license. See LICENSE file in the project root for details.
|
|
5
|
-
*
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
import { Host, PackageJson } from "@monorepolint/utils";
|
|
9
|
-
import { ResolvedConfig } from "./Config.js";
|
|
10
|
-
import { WorkspaceContext } from "./WorkspaceContext.js";
|
|
11
|
-
export interface Failure {
|
|
12
|
-
message: string;
|
|
13
|
-
file?: string;
|
|
14
|
-
longMessage?: string | null;
|
|
15
|
-
fixer?: () => void;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export interface AddErrorOptions extends Failure {
|
|
19
|
-
file: string;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export interface AddErrorAsyncOptions extends AddErrorOptions {
|
|
23
|
-
fixer?: () => Promise<void>;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export interface AddErrorSyncOrAsyncOptions extends AddErrorOptions {
|
|
27
|
-
fixer?: AddErrorAsyncOptions["fixer"] | AddErrorOptions["fixer"];
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
export interface Context {
|
|
31
|
-
readonly depth: number;
|
|
32
|
-
readonly failed: boolean;
|
|
33
|
-
readonly packageDir: string;
|
|
34
|
-
readonly parent?: Context;
|
|
35
|
-
readonly resolvedConfig: ResolvedConfig;
|
|
36
|
-
readonly host: Host;
|
|
37
|
-
|
|
38
|
-
getName(): string;
|
|
39
|
-
|
|
40
|
-
getPackageJsonPath(): string;
|
|
41
|
-
|
|
42
|
-
getPackageJson(): PackageJson;
|
|
43
|
-
addWarning(opts: Failure): void;
|
|
44
|
-
addError(opts: AddErrorOptions): void;
|
|
45
|
-
addErrorAsync(opts: AddErrorAsyncOptions): Promise<void>;
|
|
46
|
-
|
|
47
|
-
isFailure(): boolean;
|
|
48
|
-
|
|
49
|
-
finish(): void;
|
|
50
|
-
|
|
51
|
-
setFailed(): void;
|
|
52
|
-
|
|
53
|
-
getWorkspaceContext(): WorkspaceContext;
|
|
54
|
-
}
|
package/src/PackageContext.ts
DELETED
package/src/WorkspaceContext.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright 2019 Palantir Technologies, Inc.
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the MIT license. See LICENSE file in the project root for details.
|
|
5
|
-
*
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
import { PackageContext } from "./PackageContext.js";
|
|
9
|
-
// Right now, this stuff is done serially so we are writing less code to support that. Later we may want to redo this.
|
|
10
|
-
export interface WorkspaceContext extends PackageContext {
|
|
11
|
-
getWorkspacePackageDirs(): Promise<string[]>;
|
|
12
|
-
createChildContext(dir: string): PackageContext;
|
|
13
|
-
getPackageNameToDir(): Promise<Map<string, string>>;
|
|
14
|
-
}
|
package/src/index.ts
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright 2019 Palantir Technologies, Inc.
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the MIT license. See LICENSE file in the project root for details.
|
|
5
|
-
*
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
export {
|
|
9
|
-
Config,
|
|
10
|
-
ConfigFn,
|
|
11
|
-
Options,
|
|
12
|
-
ResolvedConfig,
|
|
13
|
-
ResolvedRule,
|
|
14
|
-
RuleEntry,
|
|
15
|
-
RuleModule,
|
|
16
|
-
} from "./Config.js";
|
|
17
|
-
export {
|
|
18
|
-
AddErrorAsyncOptions,
|
|
19
|
-
AddErrorOptions,
|
|
20
|
-
AddErrorSyncOrAsyncOptions,
|
|
21
|
-
Context,
|
|
22
|
-
Failure,
|
|
23
|
-
} from "./Context.js";
|
|
24
|
-
export { PackageContext } from "./PackageContext.js";
|
|
25
|
-
export { WorkspaceContext } from "./WorkspaceContext.js";
|
package/tsconfig.json
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "../../tsconfig.base.json",
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"outDir": "./build/js",
|
|
5
|
-
"rootDir": "./src",
|
|
6
|
-
"declarationDir": "./build/types",
|
|
7
|
-
"tsBuildInfoFile": "./build/tsconfig.tsbuildinfo"
|
|
8
|
-
},
|
|
9
|
-
"include": [
|
|
10
|
-
"src"
|
|
11
|
-
],
|
|
12
|
-
"references": [
|
|
13
|
-
{
|
|
14
|
-
"path": "../utils"
|
|
15
|
-
}
|
|
16
|
-
]
|
|
17
|
-
}
|
package/vitest.config.mjs
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { coverageConfigDefaults, defaultExclude, defineProject } from "vitest/config";
|
|
2
|
-
|
|
3
|
-
export default defineProject({
|
|
4
|
-
test: {
|
|
5
|
-
exclude: [...defaultExclude, "**/build/**"],
|
|
6
|
-
coverage: {
|
|
7
|
-
provider: "v8",
|
|
8
|
-
enabled: true,
|
|
9
|
-
pool: "forks",
|
|
10
|
-
exclude: [...coverageConfigDefaults.exclude, "vitest.config.*"],
|
|
11
|
-
},
|
|
12
|
-
},
|
|
13
|
-
});
|