Skip to content

Commit

Permalink
🐞 fix:eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
eleliauk committed Sep 11, 2024
1 parent 138912d commit a5e5def
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 9 deletions.
1 change: 1 addition & 0 deletions src/common/components/CourseInfo/CourseInfo.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { View } from '@tarojs/components';
import React from 'react';

import './index.scss';

interface ICourseInfoProps {
Expand Down
1 change: 1 addition & 0 deletions src/common/components/PublishHeader/PublishHeader.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { Image, Text, View } from '@tarojs/components';
import React from 'react';

import './index.scss';

interface IPublishHeaderProps {
Expand Down
5 changes: 3 additions & 2 deletions src/common/components/QuestionDetail/QuestionDetail.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import { Image, Text, View } from '@tarojs/components';
import React, { useEffect, useState } from 'react';
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment

import './index.scss';

import askicon from '@/common/assets/img/publishQuestion/ask.png';

Check failure on line 6 in src/common/components/QuestionDetail/QuestionDetail.tsx

View workflow job for this annotation

GitHub Actions / lint-and-format

Absolute imports should come before relative imports
import PublishHeader from '@/common/components/PublishHeader/PublishHeader';

Check failure on line 7 in src/common/components/QuestionDetail/QuestionDetail.tsx

View workflow job for this annotation

GitHub Actions / lint-and-format

Absolute imports should come before relative imports
import { useCourseStore } from '@/pages/main/store/store';

Check failure on line 8 in src/common/components/QuestionDetail/QuestionDetail.tsx

View workflow job for this annotation

GitHub Actions / lint-and-format

Absolute imports should come before relative imports

import IconFont from '../iconfont';
import './index.scss';

interface IUser {
avatar: string;
Expand Down
1 change: 0 additions & 1 deletion src/common/components/iconfont/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/* tslint:disable */
/* eslint-disable */

import React, { FunctionComponent } from 'react';

Expand Down
1 change: 0 additions & 1 deletion src/pages/classInfo/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import Label3 from '@/common/components/label3/label3';
import ShowStar from '@/common/components/showStar/showStar';
import { get } from '@/common/utils/fetch';


// import { useRef } from 'react';
// import Echarts, { EChartOption, EchartsHandle } from 'taro-react-echarts';
// 定义接口
Expand Down
11 changes: 8 additions & 3 deletions src/pages/publishQuestion/index.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,21 @@
/* eslint-disable-next-line import/first */
import { Button, Image, Textarea, View } from '@tarojs/components';
import Taro from '@tarojs/taro';
import { useEffect, useState } from 'react';

// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
import './index.scss';

// eslint-disable-next-line import/first
import askicon from '@/common/assets/img/publishQuestion/ask.png';
// eslint-disable-next-line import/first
import { Course } from '@/common/assets/types';
// eslint-disable-next-line import/first
import CourseInfo from '@/common/components/CourseInfo/CourseInfo';
// eslint-disable-next-line import/first
import PublishHeader from '@/common/components/PublishHeader/PublishHeader';
// eslint-disable-next-line import/first
import { get, post } from '@/common/utils/fetch';

import './index.scss';

export interface UserInfo {
avatarUrl: string; // 用户头像的URL
nickName: string; // 用户昵称
Expand Down
5 changes: 3 additions & 2 deletions src/pages/questionInfo/index.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { View } from '@tarojs/components';
import React, { useEffect, useState } from 'react';

import { Course } from '@/common/assets/types';
import CourseInfo from '@/common/components/CourseInfo/CourseInfo';
import QuestionDetail from '@/common/components/QuestionDetail/QuestionDetail'; // 假设你的组件文件名为QuestionDetail.tsx
import { get } from '@/common/utils/fetch';
import { View } from '@tarojs/components';
import React, { useEffect, useState } from 'react';

const Index: React.FC = () => {
const question = {
Expand Down

0 comments on commit a5e5def

Please sign in to comment.