File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
packages/eslint-config-eslint Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -155,7 +155,7 @@ module.exports = {
155
155
return ;
156
156
}
157
157
158
- const isProp = node . left . type === "MemberExpression" ? true : false ;
158
+ const isProp = node . left . type === "MemberExpression" ;
159
159
const name = isProp ? astUtils . getStaticPropertyName ( node . left ) : node . left . name ;
160
160
161
161
if ( node . right . id && isIdentifier ( name ) && shouldWarn ( name , node . right . id . name ) ) {
Original file line number Diff line number Diff line change 84
84
no-undefined : " error"
85
85
no-underscore-dangle : ["error", {allowAfterThis: true}]
86
86
no-unmodified-loop-condition : " error"
87
+ no-unneeded-ternary : " error"
87
88
no-unused-expressions : " error"
88
89
no-unused-vars : ["error", {vars: "all", args: "after-used"}]
89
90
no-use-before-define : " error"
You can’t perform that action at this time.
0 commit comments