Skip to content

Commit d541742

Browse files
committed
Fix style
1 parent b242fb7 commit d541742

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+84
-143
lines changed

.eslintrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"jest": true
44
},
55
"parserOptions": {
6-
"ecmaVersion": 2018,
6+
"ecmaVersion": 2020,
77
"sourceType": "module"
88
},
99
"extends": ["prettier"],

jit/corePlugins/animation.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ const { nameClass } = require('../pluginUtils')
22
const transformThemeValue = require('../../lib/util/transformThemeValue').default
33
const parseAnimationValue = require('../../lib/util/parseAnimationValue').default
44

5-
module.exports = function ({ matchUtilities, jit: { theme } }) {
5+
module.exports = function ({ matchUtilities, theme }) {
66
let keyframes = Object.fromEntries(
7-
Object.entries(theme.keyframes).map(([key, value]) => {
7+
Object.entries(theme('keyframes')).map(([key, value]) => {
88
return [
99
key,
1010
[

jit/corePlugins/backgroundColor.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ const flattenColorPalette = require('../../lib/util/flattenColorPalette').defaul
22
const withAlphaVariable = require('../../lib/util/withAlphaVariable').default
33
const { asColor, nameClass } = require('../pluginUtils')
44

5-
module.exports = function ({ matchUtilities, jit: { theme } }) {
6-
let colorPalette = flattenColorPalette(theme.backgroundColor)
5+
module.exports = function ({ matchUtilities, theme }) {
6+
let colorPalette = flattenColorPalette(theme('backgroundColor'))
77

88
matchUtilities({
99
bg: (modifier) => {

jit/corePlugins/backgroundImage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const { nameClass } = require('../pluginUtils')
22

3-
module.exports = function ({ matchUtilities, jit: { theme } }) {
3+
module.exports = function ({ matchUtilities }) {
44
matchUtilities({
55
bg: (modifier, { theme }) => {
66
let value = theme.backgroundImage[modifier]

jit/corePlugins/backgroundOpacity.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const { asValue, nameClass } = require('../pluginUtils')
22

3-
module.exports = function ({ matchUtilities, jit: { theme, addVariant, e } }) {
3+
module.exports = function ({ matchUtilities }) {
44
matchUtilities({
55
'bg-opacity': (modifier, { theme }) => {
66
let value = asValue(modifier, theme.backgroundOpacity)

jit/corePlugins/backgroundPosition.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const { nameClass } = require('../pluginUtils')
22

3-
module.exports = function ({ matchUtilities, jit: { theme } }) {
3+
module.exports = function ({ matchUtilities }) {
44
matchUtilities({
55
bg: (modifier, { theme }) => {
66
let value = theme.backgroundPosition[modifier]

jit/corePlugins/backgroundSize.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const { nameClass } = require('../pluginUtils')
22

3-
module.exports = function ({ matchUtilities, jit: { theme } }) {
3+
module.exports = function ({ matchUtilities }) {
44
matchUtilities({
55
bg: (modifier, { theme }) => {
66
let value = theme.backgroundSize[modifier]

jit/corePlugins/borderColor.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ const flattenColorPalette = require('../../lib/util/flattenColorPalette').defaul
22
const withAlphaVariable = require('../../lib/util/withAlphaVariable').default
33
const { asColor, nameClass } = require('../pluginUtils')
44

5-
module.exports = function ({ matchUtilities, jit: { theme } }) {
6-
let colorPalette = flattenColorPalette(theme.borderColor)
5+
module.exports = function ({ matchUtilities, theme }) {
6+
let colorPalette = flattenColorPalette(theme('borderColor'))
77

88
matchUtilities({
99
border: (modifier) => {

jit/corePlugins/borderOpacity.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const { asValue, nameClass } = require('../pluginUtils')
22

3-
module.exports = function ({ matchUtilities, jit: { theme } }) {
3+
module.exports = function ({ matchUtilities }) {
44
matchUtilities({
55
'border-opacity': (modifier, { theme }) => {
66
let value = asValue(modifier, theme.borderOpacity)

jit/corePlugins/borderRadius.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const { asLength, nameClass } = require('../pluginUtils')
22

3-
module.exports = function ({ matchUtilities, jit: { theme } }) {
3+
module.exports = function ({ matchUtilities }) {
44
matchUtilities({
55
rounded: (modifier, { theme }) => {
66
let value = asLength(modifier, theme['borderRadius'])

0 commit comments

Comments
 (0)