mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-28 06:03:04 +00:00
Enable the sort-keys eslint rule (#1746)
## Description: Enable the `sort-keys` eslint rule. Fixes #1629 ## Please complete the following: - [x] I have added screenshots for all UI updates - [x] I process any text displayed to the user through translateText() and I've added it to the en.json file - [x] I have added relevant tests to the test directory - [x] I confirm I have thoroughly tested these changes and take full responsibility for any bugs introduced - [ ] I have read and accepted the CLA agreement (only required once).
This commit is contained in:
@@ -2,12 +2,14 @@ import { Cosmetics } from "./CosmeticSchemas";
|
||||
|
||||
const ANIMATION_DURATIONS: Record<string, number> = {
|
||||
rainbow: 4000,
|
||||
/* eslint-disable sort-keys */
|
||||
"bright-rainbow": 4000,
|
||||
"copper-glow": 3000,
|
||||
"silver-glow": 3000,
|
||||
"gold-glow": 3000,
|
||||
neon: 3000,
|
||||
lava: 6000,
|
||||
/* eslint-enable sort-keys */
|
||||
water: 6200,
|
||||
};
|
||||
|
||||
@@ -28,6 +30,7 @@ export function renderPlayerFlag(
|
||||
const code = flag.slice("!".length);
|
||||
const layers = code.split("_").map((segment) => {
|
||||
const [layerKey, colorKey] = segment.split("-");
|
||||
// eslint-disable-next-line sort-keys
|
||||
return { layerKey, colorKey };
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user