configuration-oxlint/rules/perfectionist.ts
gcch 2971fd7c5c 2026-04-06
- eslint OK
- import OK
- jsdoc OK
- node OK
- oxc OK
- promise OK
- typescript OK
- unicorn en cours
2026-04-07 11:07:43 +02:00

153 lines
2.4 KiB
TypeScript

import type { DummyRuleMap } from "oxlint";
const perfectionistRules: DummyRuleMap = {
"perfectionist/sort-array-includes": [
"deny",
{
order: "asc",
type: "natural",
},
],
"perfectionist/sort-classes": [
"deny",
{
order: "asc",
type: "natural",
},
],
"perfectionist/sort-decorators": [
"deny",
{
order: "asc",
type: "natural",
},
],
"perfectionist/sort-enums": [
"deny",
{
order: "asc",
type: "natural",
},
],
"perfectionist/sort-export-attributes": [
"deny",
{
order: "asc",
type: "natural",
},
],
"perfectionist/sort-exports": [
"deny",
{
order: "asc",
type: "natural",
},
],
"perfectionist/sort-heritage-clauses": [
"deny",
{
order: "asc",
type: "natural",
},
],
"perfectionist/sort-import-attributes": [
"deny",
{
order: "asc",
type: "natural",
},
],
"perfectionist/sort-interfaces": [
"deny",
{
order: "asc",
type: "natural",
},
],
"perfectionist/sort-intersection-types": [
"deny",
{
order: "asc",
type: "natural",
},
],
"perfectionist/sort-jsx-props": [
"deny",
{
order: "asc",
type: "natural",
},
],
"perfectionist/sort-maps": [
"deny",
{
order: "asc",
type: "natural",
},
],
"perfectionist/sort-modules": [
"deny",
{
order: "asc",
type: "natural",
},
],
"perfectionist/sort-named-exports": [
"deny",
{
order: "asc",
type: "natural",
},
],
"perfectionist/sort-named-imports": [
"deny",
{
order: "asc",
type: "natural",
},
],
"perfectionist/sort-object-types": [
"deny",
{
order: "asc",
type: "natural",
},
],
"perfectionist/sort-objects": [
"deny",
{
order: "asc",
type: "natural",
},
],
"perfectionist/sort-sets": [
"deny",
{
order: "asc",
type: "natural",
},
],
"perfectionist/sort-switch-case": [
"deny",
{
order: "asc",
type: "natural",
},
],
"perfectionist/sort-union-types": [
"deny",
{
order: "asc",
type: "natural",
},
],
"perfectionist/sort-variable-declarations": [
"deny",
{
order: "asc",
type: "natural",
},
],
};
export default perfectionistRules;