Fix react imports grouping sort

This commit is contained in:
Pavel Prichodko 2022-02-24 23:30:34 +01:00
parent a341e44b1c
commit 0644bfa3db
No known key found for this signature in database
GPG Key ID: 0EB8D75C775AB6F1
7 changed files with 12 additions and 8 deletions

View File

@ -45,7 +45,7 @@
// Side effect imports.
["^\\u0000"],
// `react` related packages come first.
["react"],
["^react"],
// Things that start with a letter (or digit or underscore), or `@` followed by a letter.
["^@?\\w"],
// Absolute imports and other imports such as Vue-style `@/foo`.

View File

@ -1,6 +1,7 @@
import React, { render } from 'react-dom'
import React, { StrictMode } from 'react'
import { render } from 'react-dom'
import { GroupChat, lightTheme } from '@status-im/react'
import { StrictMode } from 'react'
const App = () => {
return (

View File

@ -1,6 +1,7 @@
import React, { render } from 'react-dom'
import React, { StrictMode } from 'react'
import { render } from 'react-dom'
import { CommunityChat, lightTheme } from '@status-im/react'
import { StrictMode } from 'react'
const App = () => {
return (

View File

@ -11,6 +11,7 @@
"build": "wsrun -e -c -s build",
"lint": "eslint 'packages/**/*.{ts,tsx}'",
"lint:fix": "eslint 'packages/**/*.{ts,tsx}' --fix",
"lint:examples": "eslint 'examples/**/*.{ts,tsx}'",
"format": "prettier --write .",
"typecheck": "wsrun -e -c -s typecheck",
"test": "wsrun -e -c -s test"

View File

@ -1,6 +1,6 @@
import HCaptcha from '@hcaptcha/react-hcaptcha'
import React, { useState } from 'react'
import HCaptcha from '@hcaptcha/react-hcaptcha'
import styled, { useTheme } from 'styled-components'
import { useMessengerContext } from '../../contexts/messengerProvider'

View File

@ -1,6 +1,7 @@
import QRCode from 'qrcode.react'
import React from 'react'
import QRCode from 'qrcode.react'
import { CopyInput } from '../Form/CopyInput'
import { Heading, MiddleSection, QRWrapper, Section, Text } from './ModalStyle'

View File

@ -1,6 +1,6 @@
import QRCode from 'qrcode.react'
import React, { useState } from 'react'
import QRCode from 'qrcode.react'
import styled from 'styled-components'
import { buttonStyles } from '../Buttons/buttonStyle'