0.0.2
en cours: règles ESLint/Oxlint - eslint OK - imports EN COURS
This commit is contained in:
parent
63781a6119
commit
93dd909919
14 changed files with 2293 additions and 1509 deletions
153
rules/perfectionist.ts
Normal file
153
rules/perfectionist.ts
Normal file
|
|
@ -0,0 +1,153 @@
|
|||
import type { DummyRuleMap } from "oxlint";
|
||||
|
||||
const perfectionistRules: DummyRuleMap = {
|
||||
"perfectionist/sort-array-includes": [
|
||||
"error",
|
||||
{
|
||||
order: "asc",
|
||||
type: "natural",
|
||||
},
|
||||
],
|
||||
"perfectionist/sort-classes": [
|
||||
"error",
|
||||
{
|
||||
order: "asc",
|
||||
type: "natural",
|
||||
},
|
||||
],
|
||||
"perfectionist/sort-decorators": [
|
||||
"error",
|
||||
{
|
||||
order: "asc",
|
||||
type: "natural",
|
||||
},
|
||||
],
|
||||
"perfectionist/sort-enums": [
|
||||
"error",
|
||||
{
|
||||
order: "asc",
|
||||
type: "natural",
|
||||
},
|
||||
],
|
||||
"perfectionist/sort-export-attributes": [
|
||||
"error",
|
||||
{
|
||||
order: "asc",
|
||||
type: "natural",
|
||||
},
|
||||
],
|
||||
"perfectionist/sort-exports": [
|
||||
"error",
|
||||
{
|
||||
order: "asc",
|
||||
type: "natural",
|
||||
},
|
||||
],
|
||||
"perfectionist/sort-heritage-clauses": [
|
||||
"error",
|
||||
{
|
||||
order: "asc",
|
||||
type: "natural",
|
||||
},
|
||||
],
|
||||
"perfectionist/sort-import-attributes": [
|
||||
"error",
|
||||
{
|
||||
order: "asc",
|
||||
type: "natural",
|
||||
},
|
||||
],
|
||||
"perfectionist/sort-interfaces": [
|
||||
"error",
|
||||
{
|
||||
order: "asc",
|
||||
type: "natural",
|
||||
},
|
||||
],
|
||||
"perfectionist/sort-intersection-types": [
|
||||
"error",
|
||||
{
|
||||
order: "asc",
|
||||
type: "natural",
|
||||
},
|
||||
],
|
||||
"perfectionist/sort-jsx-props": [
|
||||
"error",
|
||||
{
|
||||
order: "asc",
|
||||
type: "natural",
|
||||
},
|
||||
],
|
||||
"perfectionist/sort-maps": [
|
||||
"error",
|
||||
{
|
||||
order: "asc",
|
||||
type: "natural",
|
||||
},
|
||||
],
|
||||
"perfectionist/sort-modules": [
|
||||
"error",
|
||||
{
|
||||
order: "asc",
|
||||
type: "natural",
|
||||
},
|
||||
],
|
||||
"perfectionist/sort-named-exports": [
|
||||
"error",
|
||||
{
|
||||
order: "asc",
|
||||
type: "natural",
|
||||
},
|
||||
],
|
||||
"perfectionist/sort-named-imports": [
|
||||
"error",
|
||||
{
|
||||
order: "asc",
|
||||
type: "natural",
|
||||
},
|
||||
],
|
||||
"perfectionist/sort-object-types": [
|
||||
"error",
|
||||
{
|
||||
order: "asc",
|
||||
type: "natural",
|
||||
},
|
||||
],
|
||||
"perfectionist/sort-objects": [
|
||||
"error",
|
||||
{
|
||||
order: "asc",
|
||||
type: "natural",
|
||||
},
|
||||
],
|
||||
"perfectionist/sort-sets": [
|
||||
"error",
|
||||
{
|
||||
order: "asc",
|
||||
type: "natural",
|
||||
},
|
||||
],
|
||||
"perfectionist/sort-switch-case": [
|
||||
"error",
|
||||
{
|
||||
order: "asc",
|
||||
type: "natural",
|
||||
},
|
||||
],
|
||||
"perfectionist/sort-union-types": [
|
||||
"error",
|
||||
{
|
||||
order: "asc",
|
||||
type: "natural",
|
||||
},
|
||||
],
|
||||
"perfectionist/sort-variable-declarations": [
|
||||
"error",
|
||||
{
|
||||
order: "asc",
|
||||
type: "natural",
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
export default perfectionistRules;
|
||||
Loading…
Add table
Add a link
Reference in a new issue