mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-06-02 22:08:36 -05:00
CI: Enforce Unix-style line-endings
Somehow all EOL checks got removed at some point? But at least GitHub actions must check them.
This commit is contained in:
parent
f6796331e4
commit
2a7991949d
|
|
@ -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']>} */
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user