2024-07-28 21:11:31 +00:00
|
|
|
/**
|
|
|
|
* @copyright nhcarrigan
|
|
|
|
* @license Naomi's Public License
|
|
|
|
* @author Naomi Carrigan
|
|
|
|
*/
|
|
|
|
|
2024-09-26 00:21:31 +00:00
|
|
|
import { describe, expect, it } from "vitest";
|
2024-07-28 21:11:31 +00:00
|
|
|
import { stylisticRules } from "../src/rules/stylistic.ts";
|
|
|
|
|
2024-09-26 00:21:31 +00:00
|
|
|
describe("stylistic configs", () => {
|
|
|
|
it("should never be an error", () => {
|
|
|
|
expect.assertions(65);
|
2024-07-28 21:11:31 +00:00
|
|
|
const rules = Object.entries(stylisticRules);
|
|
|
|
for (const [ name, rule ] of rules) {
|
2024-09-26 00:21:31 +00:00
|
|
|
expect(Array.isArray(rule)
|
|
|
|
? rule.at(0)
|
|
|
|
: rule, `${name} appears to be set to an error!`).not.toBe("error");
|
|
|
|
continue;
|
2024-07-28 21:11:31 +00:00
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|