Release v0.10.4: Built-in rule linter, dynamic TS plugin loader with fault-tolerant fallback, and default-disabled global config
This commit is contained in:
1 parent
cdab1e2009
commit
1cf35dfd78
23 files changed
+914
-77
No files matched your search
@@ -104,7 +104,14 @@ describe("loadCorpConfigs", () => {
|
||||
test("defaults global config to stateless", () => {
|
||||
process.env.SEAL_USE_CONFIG_FILE = join(makeTempDir(), "config.json");
|
||||
|
||||
expect(loadGlobalConfig()).toEqual({ stateful: false });
|
||||
expect(loadGlobalConfig()).toEqual({
|
||||
stateful: false,
|
||||
lint: {
|
||||
enabled: false,
|
||||
activeLinter: "builtin",
|
||||
minScore: 0
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
test("saves and loads the global state mode", () => {
|
||||
@@ -113,10 +120,23 @@ describe("loadCorpConfigs", () => {
|
||||
|
||||
expect(saveGlobalConfig({ stateful: true, defaultCorpId: "corp-a" })).toEqual({
|
||||
stateful: true,
|
||||
defaultCorpId: "corp-a"
|
||||
defaultCorpId: "corp-a",
|
||||
lint: {
|
||||
enabled: false,
|
||||
activeLinter: "builtin",
|
||||
minScore: 0
|
||||
}
|
||||
});
|
||||
expect(resolveGlobalConfigFile()).toBe(file);
|
||||
expect(loadGlobalConfig()).toEqual({ stateful: true, defaultCorpId: "corp-a" });
|
||||
expect(loadGlobalConfig()).toEqual({
|
||||
stateful: true,
|
||||
defaultCorpId: "corp-a",
|
||||
lint: {
|
||||
enabled: false,
|
||||
activeLinter: "builtin",
|
||||
minScore: 0
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user