mirror of
https://github.com/J3vb/OwnCord.git
synced 2026-09-03 03:50:00 +03:00
Replace .sort() with .toSorted() and .reverse() with .toReversed() to avoid in-place mutation (consistent with project immutability rules). Only disable no-map-spread rule — new Map(existingMap) is the correct immutable copy pattern, not a perf issue worth flagging. Oxlint: 0 warnings, 0 errors with all rules enabled except no-map-spread.
13 lines
308 B
JSON
13 lines
308 B
JSON
{
|
|
"$schema": "https://raw.githubusercontent.com/oxc-project/oxc/main/npm/oxlint/configuration_schema.json",
|
|
"categories": {
|
|
"correctness": "error",
|
|
"suspicious": "warn",
|
|
"perf": "warn"
|
|
},
|
|
"rules": {
|
|
"no-map-spread": "off"
|
|
},
|
|
"ignorePatterns": ["dist", "node_modules", "public"]
|
|
}
|