Skip to content
This repository was archived by the owner on Sep 20, 2024. It is now read-only.

Commit d59cb11

Browse files
Linting the code
1 parent 79802b0 commit d59cb11

File tree

5 files changed

+5
-325
lines changed

5 files changed

+5
-325
lines changed

packages/chakra-ui-core/src/CPseudoBox/tests/CPseudoBox.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ it('should change the style', () => {
2222
my="5" mb="5" rounded="sm" font-family="body"
2323
background-color="blue.200" color="blue.700"`
2424
const { asFragment } = renderComponent({ inlineAttrs })
25-
25+
2626
expect(asFragment()).toMatchSnapshot()
2727
})
2828

packages/chakra-ui-core/src/CPseudoBox/utils.js

Lines changed: 0 additions & 54 deletions
This file was deleted.

packages/chakra-ui-core/src/CThemeProvider/tests/CThemeProvider.test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { toCSSVar } from '@chakra-ui/styled-system'
22
import { mount, shallowMount } from '@vue/test-utils'
3+
import theme from '@chakra-ui/theme-vue'
34
import { getElementStyles } from '@/tests/test-utils'
45

5-
import theme from '@chakra-ui/theme-vue'
66
import CThemeProvider from '..'
77

88
describe('CThemeProvider', () => {
@@ -34,7 +34,7 @@ describe('CThemeProvider', () => {
3434
},
3535
slots: {
3636
default: [ChildComponent]
37-
},
37+
}
3838
})
3939
expect(themeProvider.find(ChildComponent).vm.$chakraTheme()).toBe(theme)
4040
expect(themeProvider.find(ChildComponent).vm.$chakraColorMode()).toBe('light')
@@ -54,7 +54,7 @@ describe('CThemeProvider', () => {
5454
},
5555
slots: {
5656
default: [ChildComponent]
57-
},
57+
}
5858
})
5959

6060
const root = document.querySelector(rootKey)

packages/chakra-ui-core/src/CThemeProvider/tests/__snapshots__/CThemeProvider.test.js.snap

Lines changed: 0 additions & 266 deletions
Original file line numberDiff line numberDiff line change
@@ -264,269 +264,3 @@ exports[`CThemeProvider should inject global Css variables to root 1`] = `
264264
--zIndices-tooltip: 1800;
265265
"
266266
`;
267-
268-
exports[`CThemeProvider should inject global Css variables to root 2`] = `
269-
Object {
270-
"--borderWidths-lg": "",
271-
"--borderWidths-md": "",
272-
"--borderWidths-sm": "",
273-
"--borders-1px": "",
274-
"--borders-2px": "",
275-
"--borders-4px": "",
276-
"--borders-none": "",
277-
"--chakra-ring-color": "",
278-
"--chakra-ring-inset": "",
279-
"--chakra-ring-offset-color": "",
280-
"--chakra-ring-offset-shadow": "",
281-
"--chakra-ring-offset-width": "",
282-
"--chakra-ring-shadow": "",
283-
"--chakra-space-x-reverse": "",
284-
"--chakra-space-y-reverse": "",
285-
"--colors-black": "",
286-
"--colors-blackAlpha-100": "",
287-
"--colors-blackAlpha-200": "",
288-
"--colors-blackAlpha-300": "",
289-
"--colors-blackAlpha-400": "",
290-
"--colors-blackAlpha-50": "",
291-
"--colors-blackAlpha-500": "",
292-
"--colors-blackAlpha-600": "",
293-
"--colors-blackAlpha-700": "",
294-
"--colors-blackAlpha-800": "",
295-
"--colors-blackAlpha-900": "",
296-
"--colors-blue-100": "",
297-
"--colors-blue-200": "",
298-
"--colors-blue-300": "",
299-
"--colors-blue-400": "",
300-
"--colors-blue-50": "",
301-
"--colors-blue-500": "",
302-
"--colors-blue-600": "",
303-
"--colors-blue-700": "",
304-
"--colors-blue-800": "",
305-
"--colors-blue-900": "",
306-
"--colors-current": "",
307-
"--colors-cyan-100": "",
308-
"--colors-cyan-200": "",
309-
"--colors-cyan-300": "",
310-
"--colors-cyan-400": "",
311-
"--colors-cyan-50": "",
312-
"--colors-cyan-500": "",
313-
"--colors-cyan-600": "",
314-
"--colors-cyan-700": "",
315-
"--colors-cyan-800": "",
316-
"--colors-cyan-900": "",
317-
"--colors-error": "",
318-
"--colors-gray-100": "",
319-
"--colors-gray-200": "",
320-
"--colors-gray-300": "",
321-
"--colors-gray-400": "",
322-
"--colors-gray-50": "",
323-
"--colors-gray-500": "",
324-
"--colors-gray-600": "",
325-
"--colors-gray-700": "",
326-
"--colors-gray-800": "",
327-
"--colors-gray-900": "",
328-
"--colors-green-100": "",
329-
"--colors-green-200": "",
330-
"--colors-green-300": "",
331-
"--colors-green-400": "",
332-
"--colors-green-50": "",
333-
"--colors-green-500": "",
334-
"--colors-green-600": "",
335-
"--colors-green-700": "",
336-
"--colors-green-800": "",
337-
"--colors-green-900": "",
338-
"--colors-indigo-100": "",
339-
"--colors-indigo-200": "",
340-
"--colors-indigo-300": "",
341-
"--colors-indigo-400": "",
342-
"--colors-indigo-50": "",
343-
"--colors-indigo-500": "",
344-
"--colors-indigo-600": "",
345-
"--colors-indigo-700": "",
346-
"--colors-indigo-800": "",
347-
"--colors-indigo-900": "",
348-
"--colors-orange-100": "",
349-
"--colors-orange-200": "",
350-
"--colors-orange-300": "",
351-
"--colors-orange-400": "",
352-
"--colors-orange-50": "",
353-
"--colors-orange-500": "",
354-
"--colors-orange-600": "",
355-
"--colors-orange-700": "",
356-
"--colors-orange-800": "",
357-
"--colors-orange-900": "",
358-
"--colors-pink-100": "",
359-
"--colors-pink-200": "",
360-
"--colors-pink-300": "",
361-
"--colors-pink-400": "",
362-
"--colors-pink-50": "",
363-
"--colors-pink-500": "",
364-
"--colors-pink-600": "",
365-
"--colors-pink-700": "",
366-
"--colors-pink-800": "",
367-
"--colors-pink-900": "",
368-
"--colors-primary": "",
369-
"--colors-red-100": "",
370-
"--colors-red-200": "",
371-
"--colors-red-300": "",
372-
"--colors-red-400": "",
373-
"--colors-red-50": "",
374-
"--colors-red-500": "",
375-
"--colors-red-600": "",
376-
"--colors-red-700": "",
377-
"--colors-red-800": "",
378-
"--colors-red-900": "",
379-
"--colors-secondary": "",
380-
"--colors-success": "",
381-
"--colors-tertiary": "",
382-
"--colors-transparent": "",
383-
"--colors-vue-100": "",
384-
"--colors-vue-200": "",
385-
"--colors-vue-300": "",
386-
"--colors-vue-400": "",
387-
"--colors-vue-50": "",
388-
"--colors-vue-500": "",
389-
"--colors-vue-600": "",
390-
"--colors-vue-700": "",
391-
"--colors-vue-800": "",
392-
"--colors-vue-900": "",
393-
"--colors-warning": "",
394-
"--colors-white": "",
395-
"--colors-whiteAlpha-100": "",
396-
"--colors-whiteAlpha-200": "",
397-
"--colors-whiteAlpha-300": "",
398-
"--colors-whiteAlpha-400": "",
399-
"--colors-whiteAlpha-50": "",
400-
"--colors-whiteAlpha-500": "",
401-
"--colors-whiteAlpha-600": "",
402-
"--colors-whiteAlpha-700": "",
403-
"--colors-whiteAlpha-800": "",
404-
"--colors-whiteAlpha-900": "",
405-
"--colors-yellow-100": "",
406-
"--colors-yellow-200": "",
407-
"--colors-yellow-300": "",
408-
"--colors-yellow-400": "",
409-
"--colors-yellow-50": "",
410-
"--colors-yellow-500": "",
411-
"--colors-yellow-600": "",
412-
"--colors-yellow-700": "",
413-
"--colors-yellow-800": "",
414-
"--colors-yellow-900": "",
415-
"--fontSizes-2xl": "",
416-
"--fontSizes-3xl": "",
417-
"--fontSizes-4xl": "",
418-
"--fontSizes-5xl": "",
419-
"--fontSizes-6xl": "",
420-
"--fontSizes-lg": "",
421-
"--fontSizes-md": "",
422-
"--fontSizes-sm": "",
423-
"--fontSizes-xl": "",
424-
"--fontSizes-xs": "",
425-
"--fontWeights-black": "",
426-
"--fontWeights-bold": "",
427-
"--fontWeights-extrabold": "",
428-
"--fontWeights-hairline": "",
429-
"--fontWeights-light": "",
430-
"--fontWeights-medium": "",
431-
"--fontWeights-normal": "",
432-
"--fontWeights-semibold": "",
433-
"--fontWeights-thin": "",
434-
"--fonts-body": "",
435-
"--fonts-heading": "",
436-
"--fonts-mono": "",
437-
"--letterSpacings-normal": "",
438-
"--letterSpacings-tight": "",
439-
"--letterSpacings-tighter": "",
440-
"--letterSpacings-wide": "",
441-
"--letterSpacings-wider": "",
442-
"--letterSpacings-widest": "",
443-
"--lineHeights-base": "",
444-
"--lineHeights-none": "",
445-
"--lineHeights-normal": "",
446-
"--lineHeights-short": "",
447-
"--lineHeights-shorter": "",
448-
"--lineHeights-tall": "",
449-
"--lineHeights-taller": "",
450-
"--radii-full": "",
451-
"--radii-lg": "",
452-
"--radii-md": "",
453-
"--radii-none": "",
454-
"--radii-sm": "",
455-
"--shadows-2xl": "",
456-
"--shadows-inner": "",
457-
"--shadows-lg": "",
458-
"--shadows-md": "",
459-
"--shadows-none": "",
460-
"--shadows-outline": "",
461-
"--shadows-sm": "",
462-
"--shadows-xl": "",
463-
"--sizes-0": "",
464-
"--sizes-1": "",
465-
"--sizes-10": "",
466-
"--sizes-12": "",
467-
"--sizes-16": "",
468-
"--sizes-2": "",
469-
"--sizes-20": "",
470-
"--sizes-24": "",
471-
"--sizes-2xl": "",
472-
"--sizes-2xs": "",
473-
"--sizes-3": "",
474-
"--sizes-32": "",
475-
"--sizes-3xl": "",
476-
"--sizes-3xs": "",
477-
"--sizes-4": "",
478-
"--sizes-40": "",
479-
"--sizes-48": "",
480-
"--sizes-4xl": "",
481-
"--sizes-5": "",
482-
"--sizes-56": "",
483-
"--sizes-5xl": "",
484-
"--sizes-6": "",
485-
"--sizes-64": "",
486-
"--sizes-6xl": "",
487-
"--sizes-8": "",
488-
"--sizes-containers-lg": "",
489-
"--sizes-containers-md": "",
490-
"--sizes-containers-sm": "",
491-
"--sizes-containers-xl": "",
492-
"--sizes-full": "",
493-
"--sizes-lg": "",
494-
"--sizes-md": "",
495-
"--sizes-px": "",
496-
"--sizes-sm": "",
497-
"--sizes-xl": "",
498-
"--sizes-xs": "",
499-
"--space-0": "",
500-
"--space-1": "",
501-
"--space-10": "",
502-
"--space-12": "",
503-
"--space-16": "",
504-
"--space-2": "",
505-
"--space-20": "",
506-
"--space-24": "",
507-
"--space-3": "",
508-
"--space-32": "",
509-
"--space-4": "",
510-
"--space-40": "",
511-
"--space-48": "",
512-
"--space-5": "",
513-
"--space-56": "",
514-
"--space-6": "",
515-
"--space-64": "",
516-
"--space-8": "",
517-
"--space-px": "",
518-
"--zIndices-auto": "",
519-
"--zIndices-banner": "",
520-
"--zIndices-base": "",
521-
"--zIndices-docked": "",
522-
"--zIndices-dropdown": "",
523-
"--zIndices-hide": "",
524-
"--zIndices-modal": "",
525-
"--zIndices-overlay": "",
526-
"--zIndices-popover": "",
527-
"--zIndices-skipLink": "",
528-
"--zIndices-sticky": "",
529-
"--zIndices-toast": "",
530-
"--zIndices-tooltip": "",
531-
}
532-
`;

packages/chakra-ui-core/src/Css/Css.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ import { css } from '@chakra-ui/styled-system'
55
* @param {Object} styleProps Styles object
66
* @returns {Function} (theme) => CSSStyleObject
77
*/
8-
const buildCssFn = (styleProps) => css(styleProps)
8+
const buildCssFn = styleProps => css(styleProps)
99
export default buildCssFn

0 commit comments

Comments
 (0)