Commit 00c3b99
authored
Improve no-use-computed-property-like-method rule (#1659)
- Change to track variables to check types.
- Change to track the conditional expression to check types.
- Change condition to track branch and return to check types.
- Change to check the expressions in template as well.
- Fix known bugs.1 parent 7bca4d3 commit 00c3b99
File tree
6 files changed
+907
-260
lines changed- lib
- rules
- utils
- tests/lib/rules
6 files changed
+907
-260
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
235 | 235 | | |
236 | 236 | | |
237 | 237 | | |
238 | | - | |
| 238 | + | |
239 | 239 | | |
240 | 240 | | |
241 | 241 | | |
| |||
244 | 244 | | |
245 | 245 | | |
246 | 246 | | |
247 | | - | |
248 | | - | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | | - | |
253 | | - | |
254 | | - | |
255 | | - | |
256 | | - | |
257 | | - | |
258 | | - | |
259 | | - | |
260 | 247 | | |
261 | 248 | | |
262 | 249 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | 82 | | |
119 | 83 | | |
120 | 84 | | |
121 | 85 | | |
122 | 86 | | |
123 | 87 | | |
124 | | - | |
| 88 | + | |
125 | 89 | | |
126 | 90 | | |
127 | 91 | | |
| |||
0 commit comments