This commit is contained in:
Slayer95 2026-06-02 12:31:45 -07:00 committed by GitHub
commit e8f32eff72
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -32,6 +32,10 @@ export const configure = (...args) => [
...tseslint.config(...args),
];
export const ciRules = globalThis.process?.env?.['CI'] ? {
"@stylistic/linebreak-style": ["error", "unix"],
} : {};
/** @type {NonNullable<Config['rules']>} */
export const defaultRules = {
...stylistic.configs.customize({
@ -189,6 +193,8 @@ export const defaultRules = {
"@stylistic/multiline-ternary": "off",
"@stylistic/object-curly-spacing": ["error", "always"],
"@stylistic/indent": ["error", "tab", { "flatTernaryExpressions": true }],
...ciRules,
};
/** @type {NonNullable<Config['rules']>} */