workspace: fix eslint

This commit is contained in:
undefined committed 2025-03-10 16:24:48 +08:00
1 parent cda3a8f855
commit 0414a1300b
3 files changed
+10 -12

No files matched your search

+3 -5
View File
@@ -10,14 +10,12 @@ const base = yaml.load(fs.readFileSync('base.yaml', 'utf8')) as any;
const react = yaml.load(fs.readFileSync('react.yaml', 'utf8')) as any;
function sort<T>(obj: Record<string, T>): Record<string, T> {
const clone = { ...obj };
Object.keys(clone).sort().reduce(
return Object.keys(obj).sort().reduce(
(acc, key) => {
acc[key] = clone[key];
acc[key] = obj[key];
return acc;
},
);
return clone;
) as any;
}
// NOTE: oxlint doesn't support most stylistic rules
+1 -1
View File
@@ -4,7 +4,7 @@
"license": "MIT",
"main": "react.yaml",
"dependencies": {
"@stylistic/eslint-plugin": "^4.2.0",
"@stylistic/eslint-plugin": "^3.1.0",
"@typescript-eslint/eslint-plugin": "^8.26.0",
"@typescript-eslint/parser": "^8.26.0",
"eslint-config-airbnb": "^19.0.4",