Skip to content

Commit

Permalink
feat: ✨ bump eslint-plugin-perfectionist to v4.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmy-guzman committed Dec 6, 2024
1 parent 05e59c4 commit 2adf903
Show file tree
Hide file tree
Showing 3 changed files with 86 additions and 40 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
"eslint-plugin-jest-dom": "^5.5.0",
"eslint-plugin-jsx-a11y": "^6.10.2",
"eslint-plugin-n": "^17.14.0",
"eslint-plugin-perfectionist": "^4.1.2",
"eslint-plugin-perfectionist": "^4.2.0",
"eslint-plugin-playwright": "^2.1.0",
"eslint-plugin-react": "^7.37.2",
"eslint-plugin-react-compiler": "19.0.0-beta-df7b47d-20241124",
Expand Down
18 changes: 6 additions & 12 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

106 changes: 79 additions & 27 deletions src/rules.gen.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9252,6 +9252,10 @@ type PerfectionistSortArrayIncludes = []|[{
// ----- perfectionist/sort-classes -----
type PerfectionistSortClasses = []|[{

ignoreCallbackDependenciesPatterns?: string[]

partitionByComment?: (string[] | boolean | string)

customGroups?: ({

groupName?: string
Expand All @@ -9261,12 +9265,12 @@ type PerfectionistSortClasses = []|[{
order?: ("desc" | "asc")
anyOf?: {

modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[]

elementValuePattern?: string

decoratorNamePattern?: string

modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[]

selector?: ("accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method")

elementNamePattern?: string
Expand All @@ -9279,21 +9283,17 @@ type PerfectionistSortClasses = []|[{

order?: ("desc" | "asc")

modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[]

elementValuePattern?: string

decoratorNamePattern?: string

modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[]

selector?: ("accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method")

elementNamePattern?: string
})[]

ignoreCallbackDependenciesPatterns?: string[]

partitionByComment?: (string[] | boolean | string)

partitionByNewLine?: boolean

specialCharacters?: ("remove" | "trim" | "keep")
Expand Down Expand Up @@ -9456,19 +9456,46 @@ type PerfectionistSortInterfaces = []|[{
ignorePattern?: string[]

partitionByComment?: (string[] | boolean | string)
customGroups?: ({
[k: string]: (string | string[]) | undefined
} | ({

groupName?: string

type?: ("alphabetical" | "line-length" | "natural" | "unsorted")

order?: ("desc" | "asc")
anyOf?: {

modifiers?: ("optional" | "required" | "multiline")[]

selector?: ("index-signature" | "member" | "method" | "multiline" | "property")

elementNamePattern?: string
}[]
} | {

groupName?: string

type?: ("alphabetical" | "line-length" | "natural" | "unsorted")

order?: ("desc" | "asc")

modifiers?: ("optional" | "required" | "multiline")[]

selector?: ("index-signature" | "member" | "method" | "multiline" | "property")

elementNamePattern?: string
})[])

groupKind?: ("mixed" | "optional-first" | "required-first")
groupKind?: ("mixed" | "required-first" | "optional-first")

partitionByNewLine?: boolean

specialCharacters?: ("remove" | "trim" | "keep")

newlinesBetween?: ("ignore" | "always" | "never")

customGroups?: {
[k: string]: (string | string[]) | undefined
}

ignoreCase?: boolean

locales?: (string | string[])
Expand Down Expand Up @@ -9541,6 +9568,8 @@ type PerfectionistSortMaps = []|[{
// ----- perfectionist/sort-modules -----
type PerfectionistSortModules = []|[{

partitionByComment?: (string[] | boolean | string)

customGroups?: ({

groupName?: string
Expand All @@ -9550,12 +9579,10 @@ type PerfectionistSortModules = []|[{
order?: ("desc" | "asc")
anyOf?: {

modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[]

elementValuePattern?: string

decoratorNamePattern?: string

modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[]

selector?: ("enum" | "function" | "interface" | "type" | "class")

elementNamePattern?: string
Expand All @@ -9568,19 +9595,15 @@ type PerfectionistSortModules = []|[{

order?: ("desc" | "asc")

modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[]

elementValuePattern?: string

decoratorNamePattern?: string

modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[]

selector?: ("enum" | "function" | "interface" | "type" | "class")

elementNamePattern?: string
})[]

partitionByComment?: (string[] | boolean | string)

partitionByNewLine?: boolean

specialCharacters?: ("remove" | "trim" | "keep")
Expand Down Expand Up @@ -9640,7 +9663,40 @@ type PerfectionistSortNamedImports = []|[{
// ----- perfectionist/sort-object-types -----
type PerfectionistSortObjectTypes = []|[{

ignorePattern?: string[]

partitionByComment?: (string[] | boolean | string)
customGroups?: ({
[k: string]: (string | string[]) | undefined
} | ({

groupName?: string

type?: ("alphabetical" | "line-length" | "natural" | "unsorted")

order?: ("desc" | "asc")
anyOf?: {

modifiers?: ("optional" | "required" | "multiline")[]

selector?: ("index-signature" | "member" | "method" | "multiline" | "property")

elementNamePattern?: string
}[]
} | {

groupName?: string

type?: ("alphabetical" | "line-length" | "natural" | "unsorted")

order?: ("desc" | "asc")

modifiers?: ("optional" | "required" | "multiline")[]

selector?: ("index-signature" | "member" | "method" | "multiline" | "property")

elementNamePattern?: string
})[])

groupKind?: ("mixed" | "required-first" | "optional-first")

Expand All @@ -9650,10 +9706,6 @@ type PerfectionistSortObjectTypes = []|[{

newlinesBetween?: ("ignore" | "always" | "never")

customGroups?: {
[k: string]: (string | string[]) | undefined
}

ignoreCase?: boolean

locales?: (string | string[])
Expand Down

0 comments on commit 2adf903

Please sign in to comment.