Skip to content

Commit 700298c

Browse files
committed
fix: tidy up import of lodash, chain requires the whole library anyway
1 parent dc87b92 commit 700298c

File tree

7 files changed

+74
-60
lines changed

7 files changed

+74
-60
lines changed

src/css-animations/bounce-and-spin.ts

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1-
import { chain } from 'lodash'
2-
import every from 'lodash/every'
3-
import isArray from 'lodash/isArray'
4-
import isPlainObject from 'lodash/isPlainObject'
5-
import isString from 'lodash/isString'
6-
import isUndefined from 'lodash/isUndefined'
7-
import keys from 'lodash/keys'
8-
import values from 'lodash/values'
1+
import {
2+
chain,
3+
every,
4+
isArray,
5+
isPlainObject,
6+
isString,
7+
isUndefined,
8+
keys,
9+
values,
10+
} from 'lodash'
911
import defaultTheme from 'tailwindcss/defaultTheme'
1012
import { type PluginUtils } from 'tailwindcss/types/config'
1113

src/css-animations/bounce.ts

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1-
import { chain } from 'lodash'
2-
import every from 'lodash/every'
3-
import isArray from 'lodash/isArray'
4-
import isPlainObject from 'lodash/isPlainObject'
5-
import isString from 'lodash/isString'
6-
import isUndefined from 'lodash/isUndefined'
7-
import keys from 'lodash/keys'
8-
import values from 'lodash/values'
1+
import {
2+
chain,
3+
every,
4+
isArray,
5+
isPlainObject,
6+
isString,
7+
isUndefined,
8+
keys,
9+
values,
10+
} from 'lodash'
911
import defaultTheme from 'tailwindcss/defaultTheme'
1012
import { type PluginUtils } from 'tailwindcss/types/config'
1113

src/css-animations/spin.ts

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1-
import { chain } from 'lodash'
2-
import every from 'lodash/every'
3-
import isPlainObject from 'lodash/isPlainObject'
4-
import isString from 'lodash/isString'
5-
import isUndefined from 'lodash/isUndefined'
6-
import keys from 'lodash/keys'
7-
import mapValues from 'lodash/mapValues'
8-
import values from 'lodash/values'
1+
import {
2+
chain,
3+
every,
4+
isPlainObject,
5+
isString,
6+
isUndefined,
7+
keys,
8+
mapValues,
9+
values,
10+
} from 'lodash'
911
import defaultTheme from 'tailwindcss/defaultTheme'
1012
import { type PluginUtils } from 'tailwindcss/types/config'
1113

src/css-utilities/scale.ts

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
import { chain } from 'lodash'
2-
import every from 'lodash/every'
3-
import isPlainObject from 'lodash/isPlainObject'
4-
import isString from 'lodash/isString'
5-
import isUndefined from 'lodash/isUndefined'
6-
import keys from 'lodash/keys'
7-
import values from 'lodash/values'
1+
import {
2+
chain,
3+
every,
4+
isPlainObject,
5+
isString,
6+
isUndefined,
7+
keys,
8+
values,
9+
} from 'lodash'
810

911
import { type CSSUtility } from '@/css-utilities'
1012
import { Base } from '@/css-utilities/base'

src/css-utilities/transform.ts

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
import { chain } from 'lodash'
2-
import every from 'lodash/every'
3-
import isPlainObject from 'lodash/isPlainObject'
4-
import isString from 'lodash/isString'
5-
import isUndefined from 'lodash/isUndefined'
6-
import keys from 'lodash/keys'
7-
import values from 'lodash/values'
1+
import {
2+
chain,
3+
every,
4+
isPlainObject,
5+
isString,
6+
isUndefined,
7+
keys,
8+
values,
9+
} from 'lodash'
810

911
import { type CSSUtility } from '@/css-utilities'
1012
import { Base } from '@/css-utilities/base'

src/css-utilities/translate.ts

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1-
import { chain } from 'lodash'
2-
import every from 'lodash/every'
3-
import isPlainObject from 'lodash/isPlainObject'
4-
import isString from 'lodash/isString'
5-
import isUndefined from 'lodash/isUndefined'
6-
import keys from 'lodash/keys'
7-
import pickBy from 'lodash/pickBy'
8-
import values from 'lodash/values'
1+
import {
2+
chain,
3+
every,
4+
isPlainObject,
5+
isString,
6+
isUndefined,
7+
keys,
8+
pickBy,
9+
values,
10+
} from 'lodash'
911

1012
import { type CSSUtility } from '@/css-utilities'
1113
import { Base } from '@/css-utilities/base'

src/utils/css-value.ts

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
1-
import { chain } from 'lodash'
2-
import get from 'lodash/get'
3-
import has from 'lodash/has'
4-
import includes from 'lodash/includes'
5-
import isArray from 'lodash/isArray'
6-
import isBoolean from 'lodash/isBoolean'
7-
import isFinite from 'lodash/isFinite'
8-
import isNumber from 'lodash/isNumber'
9-
import isObject from 'lodash/isObject'
10-
import isPlainObject from 'lodash/isPlainObject'
11-
import isString from 'lodash/isString'
12-
import isUndefined from 'lodash/isUndefined'
13-
import toLower from 'lodash/toLower'
14-
import trim from 'lodash/trim'
1+
import {
2+
chain,
3+
get,
4+
has,
5+
includes,
6+
isArray,
7+
isBoolean,
8+
isFinite,
9+
isNumber,
10+
isObject,
11+
isPlainObject,
12+
isString,
13+
isUndefined,
14+
toLower,
15+
trim,
16+
} from 'lodash'
1517

1618
import { generateGuard } from '@/utils/generate-guard'
1719

0 commit comments

Comments
 (0)