feat(eslint): Rule "no-unneeded-ternary"
Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
		@@ -199,7 +199,7 @@
 | 
				
			|||||||
- [X] "no-underscore-dangle"
 | 
					- [X] "no-underscore-dangle"
 | 
				
			||||||
- [ ] "no-unexpected-multiline"
 | 
					- [ ] "no-unexpected-multiline"
 | 
				
			||||||
- [ ] "no-unmodified-loop-condition"
 | 
					- [ ] "no-unmodified-loop-condition"
 | 
				
			||||||
- [ ] "no-unneeded-ternary"
 | 
					- [X] "no-unneeded-ternary"
 | 
				
			||||||
- [ ] "no-unreachable"
 | 
					- [ ] "no-unreachable"
 | 
				
			||||||
- [ ] "no-unsafe-finally"
 | 
					- [ ] "no-unsafe-finally"
 | 
				
			||||||
- [ ] "no-unsafe-negation"
 | 
					- [ ] "no-unsafe-negation"
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -254,6 +254,12 @@
 | 
				
			|||||||
      "enforceInMethodNames": false
 | 
					      "enforceInMethodNames": false
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
  ],
 | 
					  ],
 | 
				
			||||||
 | 
					  "no-unneeded-ternary": [
 | 
				
			||||||
 | 
					    "error",
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					      "defaultAssignment": true
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					  ],
 | 
				
			||||||
  "no-unused-vars": [
 | 
					  "no-unused-vars": [
 | 
				
			||||||
    "error",
 | 
					    "error",
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user