Skip to content

Commit

Permalink
feat: more tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
RebeccaStevens committed May 6, 2024
1 parent 8557dd8 commit 65287e6
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 32 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
"eslint-import-resolver-typescript": "3.6.1",
"eslint-plugin-eslint-comments": "3.2.0",
"eslint-plugin-format": "0.1.1",
"eslint-plugin-functional": "7.0.0-alpha.2",
"eslint-plugin-functional": "7.0.0-alpha.3",
"eslint-plugin-import-x": "0.5.0",
"eslint-plugin-jsdoc": "48.2.3",
"eslint-plugin-jsonc": "2.15.1",
Expand Down
8 changes: 4 additions & 4 deletions pnpm-lock.yaml

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

54 changes: 27 additions & 27 deletions src/configs/functional.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,36 +130,36 @@ export async function functional(
ignoreInferredTypes: true,
ignoreNamePattern,
parameters: { enforcement: "ReadonlyShallow" },
suggestions: {
ReadonlyShallow: [
[
{
pattern: "^(Array|Map|Set)<(.+)>$",
replace: "Readonly$1<$2>",
},
{ pattern: "^(.+)$", replace: "Readonly<$1>" },
],
],
ReadonlyDeep: [
[
{
pattern: "^(?:Readonly<(.+)>|(.+))$",
replace: "ReadonlyDeep<$1$2>",
},
],
],
Immutable: [
[
{
pattern: "^(?:Readonly(?:Deep)?<(.+)>|(.+))$",
replace: "Immutable<$1$2>",
},
],
],
},
},
},
],
suggestions: {
ReadonlyShallow: [
[
{
pattern: "^(Array|Map|Set)<(.+)>$",
replace: "Readonly$1<$2>",
},
{ pattern: "^(.+)$", replace: "Readonly<$1>" },
],
],
ReadonlyDeep: [
[
{
pattern: "^(?:Readonly<(.+)>|(.+))$",
replace: "ReadonlyDeep<$1$2>",
},
],
],
Immutable: [
[
{
pattern: "^(?:Readonly(?:Deep)?<(.+)>|(.+))$",
replace: "Immutable<$1$2>",
},
],
],
},
},
],
"functional/type-declaration-immutability": [
Expand Down

0 comments on commit 65287e6

Please sign in to comment.