Commit c0f418e
Chore: Remove lodash (#14287)
* Chore: Update table to ^6.0.9
* Chore: Remove lodash.last
lodash.last(array) -> array[array.length - 1]
* Chore: Remove lodash.get
v = lodash.get(a, "b.c") -> if (a && a.b && a.b.c) v = a.b.c
* Chore: Remove lodash.noop
lodash.noop -> () => {}
* Chore: Remove lodash.union
https://exploringjs.com/impatient-js/ch_sets.html#union-a-b
* Chore: Remove lodash.intersection
https://exploringjs.com/impatient-js/ch_sets.html#intersection-a-b
* Chore: Remove lodash.findLast
lodash.findLast(array) -> [...array].reverse().find(_ =>_)
* Chore: Remove lodash.overSome
* Chore: Remove lodash.isPlainObject
* Chore: Remove lodash.isString
lodash.isString(str) -> typeof str === "string";
* Chore: Remove lodash.range
* Chore: Remove lodash.sortedLastIndex
https://www.30secondsofcode.org/js/s/sorted-last-index
* Chore: Remove lodash.sortedIndexBy
https://www.30secondsofcode.org/js/s/sorted-index-by
* Chore: Remove lodash.sample
https://www.30secondsofcode.org/js/s/sample
* Chore: Remove lodash.flatMap
* Chore: Remove lodash.flatten
* Chore: Remove lodash.template
* Chore: Remove lodash.escapeRegExp
Add the escape-string-regexp package
* Chore: Remove lodash.isEqual
Add the fast-deep-equal package
* Chore: Remove lodash.merge
Add the deep-extend package
* Chore: Remove lodash.cloneDeep
Add the clone package
* Chore: Remove lodash.omit
Add the omit package
* Chore: Remove lodash.upperFirst
Add the upper-case-first package
* Chore: Remove lodash.memoize
Add the fast-memoize package
* Chore: Remove lodash.mapValues
Add the map-values package
* Chore: Remove lodash.flatten
* Chore: Remove lodash
* Chore: Replace arrays.flat()
* Chore: Replace clone with rfdc
* Chore: Add comment about map-values
* Chore: Remove omit dependency
* Chore: Remove rfdc dependency
* Chore: Remove upper-case-first dependency
* Chore: Remove fast-memoize dependency
* Chore: Apply suggestions in lib/linter/node-event-generator.js
Co-authored-by: Milos Djermanovic <[email protected]>
* Chore: Add tests for upperCaseFirst
* Chore: Remove map-values dependency
* Chore: Apply review suggestions
* Chore: Upgrade deep-extend to ^0.6.0
* Chore: Replace deep-extend dependency with lodash.merge
* Chore: Apply review suggestion
* Chore: Simplify search code
* Chore: Apply review suggestions
Co-authored-by: Milos Djermanovic <[email protected]>1 parent 52655dd commit c0f418e
58 files changed
Lines changed: 526 additions & 220 deletions
File tree
- bin
- docs/developer-guide
- code-path-analysis
- lib
- cli-engine
- formatters
- init
- linter
- rule-tester
- rules
- utils
- source-code
- token-store
- messages
- tests/lib
- rule-tester
- rules
- tools
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
70 | | - | |
71 | | - | |
| 69 | + | |
72 | 70 | | |
73 | | - | |
74 | 71 | | |
75 | 72 | | |
76 | 73 | | |
| |||
80 | 77 | | |
81 | 78 | | |
82 | 79 | | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
| 80 | + | |
91 | 81 | | |
92 | 82 | | |
93 | 83 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
198 | | - | |
199 | | - | |
200 | 198 | | |
201 | 199 | | |
202 | 200 | | |
| |||
215 | 213 | | |
216 | 214 | | |
217 | 215 | | |
218 | | - | |
| 216 | + | |
219 | 217 | | |
220 | 218 | | |
221 | 219 | | |
| |||
239 | 237 | | |
240 | 238 | | |
241 | 239 | | |
242 | | - | |
243 | | - | |
244 | 240 | | |
245 | 241 | | |
246 | 242 | | |
| |||
285 | 281 | | |
286 | 282 | | |
287 | 283 | | |
| 284 | + | |
| 285 | + | |
288 | 286 | | |
289 | | - | |
| 287 | + | |
290 | 288 | | |
291 | 289 | | |
292 | 290 | | |
| |||
304 | 302 | | |
305 | 303 | | |
306 | 304 | | |
307 | | - | |
| 305 | + | |
308 | 306 | | |
309 | 307 | | |
310 | 308 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
198 | | - | |
199 | | - | |
200 | 198 | | |
201 | 199 | | |
202 | 200 | | |
| |||
215 | 213 | | |
216 | 214 | | |
217 | 215 | | |
218 | | - | |
| 216 | + | |
219 | 217 | | |
220 | 218 | | |
221 | 219 | | |
| |||
239 | 237 | | |
240 | 238 | | |
241 | 239 | | |
242 | | - | |
243 | | - | |
244 | 240 | | |
245 | 241 | | |
246 | 242 | | |
| |||
285 | 281 | | |
286 | 282 | | |
287 | 283 | | |
| 284 | + | |
| 285 | + | |
288 | 286 | | |
289 | | - | |
| 287 | + | |
290 | 288 | | |
291 | 289 | | |
292 | 290 | | |
| |||
304 | 302 | | |
305 | 303 | | |
306 | 304 | | |
307 | | - | |
| 305 | + | |
308 | 306 | | |
309 | 307 | | |
310 | 308 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
Lines changed: 11 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
1 | 7 | | |
2 | 8 | | |
3 | 9 | | |
| |||
88 | 94 | | |
89 | 95 | | |
90 | 96 | | |
91 | | - | |
| 97 | + | |
92 | 98 | | |
93 | 99 | | |
94 | | - | |
| 100 | + | |
95 | 101 | | |
96 | 102 | | |
97 | 103 | | |
98 | 104 | | |
99 | | - | |
| 105 | + | |
100 | 106 | | |
101 | 107 | | |
102 | 108 | | |
| |||
113 | 119 | | |
114 | 120 | | |
115 | 121 | | |
| 122 | + | |
| 123 | + | |
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | 7 | | |
12 | 8 | | |
13 | 9 | | |
14 | 10 | | |
15 | | - | |
16 | | - | |
17 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
18 | 31 | | |
19 | 32 | | |
20 | 33 | | |
| |||
80 | 93 | | |
81 | 94 | | |
82 | 95 | | |
83 | | - | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
84 | 99 | | |
85 | 100 | | |
86 | 101 | | |
| |||
92 | 107 | | |
93 | 108 | | |
94 | 109 | | |
95 | | - | |
| 110 | + | |
96 | 111 | | |
97 | 112 | | |
98 | 113 | | |
| |||
108 | 123 | | |
109 | 124 | | |
110 | 125 | | |
111 | | - | |
112 | | - | |
| 126 | + | |
113 | 127 | | |
114 | 128 | | |
115 | 129 | | |
| |||
0 commit comments