Skip to content

Commit

Permalink
feat(enforce-type-declaration-immutableness): create rule
Browse files Browse the repository at this point in the history
  • Loading branch information
RebeccaStevens committed Sep 12, 2022
1 parent 51bfbc1 commit c7df9a2
Show file tree
Hide file tree
Showing 12 changed files with 1,033 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -68,6 +68,7 @@
"@typescript-eslint/utils": "^5.10.2",
"deepmerge-ts": "^4.0.3",
"escape-string-regexp": "^4.0.0",
"is-immutable-type": "^0.0.6",
"semver": "^7.3.7"
},
"devDependencies": {
Expand Down
1 change: 1 addition & 0 deletions src/configs/all.ts
Expand Up @@ -19,6 +19,7 @@ const config: Linter.Config = {
{
files: ["*.ts", "*.tsx"],
rules: {
"functional/enforce-type-immutableness": "error",
"functional/no-method-signature": "error",
"functional/no-mixed-type": "error",
"functional/prefer-readonly-type": "error",
Expand Down
1 change: 1 addition & 0 deletions src/configs/no-mutations.ts
Expand Up @@ -9,6 +9,7 @@ const config: Linter.Config = {
{
files: ["*.ts", "*.tsx"],
rules: {
"functional/enforce-type-immutableness": "error",
"functional/no-method-signature": "warn",
"functional/prefer-readonly-type": "error",
},
Expand Down

0 comments on commit c7df9a2

Please sign in to comment.