feat(eslint): Rule "prefer-const"
Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
		@@ -233,7 +233,7 @@
 | 
			
		||||
- [ ] "padded-blocks"
 | 
			
		||||
- [ ] "padding-line-between-statements"
 | 
			
		||||
- [ ] "prefer-arrow-callback"
 | 
			
		||||
- [ ] "prefer-const"
 | 
			
		||||
- [X] "prefer-const"
 | 
			
		||||
- [ ] "prefer-destructuring"
 | 
			
		||||
- [ ] "prefer-exponentiation-operator"
 | 
			
		||||
- [ ] "prefer-named-capture-group"
 | 
			
		||||
 
 | 
			
		||||
@@ -388,6 +388,13 @@
 | 
			
		||||
    "error",
 | 
			
		||||
    "never"
 | 
			
		||||
  ],
 | 
			
		||||
  "prefer-const": [
 | 
			
		||||
    "error",
 | 
			
		||||
    {
 | 
			
		||||
      "destructuring": "any",
 | 
			
		||||
      "ignoreReadBeforeAssign": false
 | 
			
		||||
    }
 | 
			
		||||
  ],
 | 
			
		||||
  "prefer-reflect": [
 | 
			
		||||
    "off"
 | 
			
		||||
  ],
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user