Skip to content

Commit

Permalink
chore(immutable-data): Swap out no-array-mutation and no-object-mutat…
Browse files Browse the repository at this point in the history
…ion for immutable-data.
  • Loading branch information
Rebecca Stevens committed Jul 15, 2019
1 parent 23a8294 commit 6c58379
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,8 @@
"no-var": "error",

// Our rules.
"ts-immutable/immutable-data": "error",
"ts-immutable/no-let": "error",
"ts-immutable/no-array-mutation": "error",
"ts-immutable/no-object-mutation": "error",
"ts-immutable/no-delete": "error",
"ts-immutable/readonly-array": ["error", { "ignoreReturnType": true }],
"ts-immutable/readonly-keyword": "error",
Expand Down
3 changes: 1 addition & 2 deletions src/configs/all.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
const config = {
rules: {
"ts-immutable/no-array-mutation": "error",
"ts-immutable/immutable-data": "error",
"ts-immutable/no-class": "error",
"ts-immutable/no-delete": "error",
"ts-immutable/no-expression-statement": "error",
"ts-immutable/no-if-statement": "error",
"ts-immutable/no-let": "error",
"ts-immutable/no-loop-statement": "error",
"ts-immutable/no-object-mutation": "error",
"ts-immutable/no-reject": "error",
"ts-immutable/no-this": "error",
"ts-immutable/no-throw": "error",
Expand Down
3 changes: 1 addition & 2 deletions src/configs/immutable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,13 @@ const config = deepMerge([
{
rules: {
"ts-immutable/no-let": "error",
"ts-immutable/no-object-mutation": "error",
"ts-immutable/immutable-data": "error",
"ts-immutable/no-delete": "error"
},
overrides: [
{
files: ["*.ts", "*.tsx"],
rules: {
"ts-immutable/no-array-mutation": "error",
"ts-immutable/no-method-signature": "warn",
"ts-immutable/readonly-array": "error",
"ts-immutable/readonly-keyword": "error"
Expand Down

0 comments on commit 6c58379

Please sign in to comment.