Browse Source

perfer const

Rawr 5 years ago
parent
commit
8eb4096117
1 changed files with 5 additions and 1 deletions
  1. 5 1
      package.json

+ 5 - 1
package.json

@@ -41,7 +41,11 @@
         {
         {
           "SwitchCase": 1
           "SwitchCase": 1
         }
         }
-      ]
+      ],
+      "prefer-const": ["error", {
+        "destructuring": "any",
+        "ignoreReadBeforeAssign": false
+      }]
     }
     }
   },
   },
   "scripts": {
   "scripts": {