fix eslint warnings & errors; add .eslintignore
parent
74f644b3ee
commit
229dffa9a1
|
|
@ -0,0 +1,19 @@
|
|||
config
|
||||
.husky
|
||||
**/.gitignore
|
||||
dist/
|
||||
deploy_versions/
|
||||
.temp/
|
||||
.rn_temp/
|
||||
node_modules/
|
||||
.DS_Store
|
||||
.swc
|
||||
.husky
|
||||
.prettierignore
|
||||
.env.*
|
||||
**/*.json
|
||||
**/*.svg
|
||||
**/*.scss
|
||||
**/*.md
|
||||
*.config.js
|
||||
index.html
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
/**/.gitignore
|
||||
**/.gitignore
|
||||
dist/
|
||||
deploy_versions/
|
||||
.temp/
|
||||
|
|
@ -9,8 +9,5 @@ node_modules/
|
|||
.husky
|
||||
.prettierignore
|
||||
.env.*
|
||||
<<<<<<< HEAD
|
||||
project.*.json
|
||||
=======
|
||||
**/*.svg
|
||||
>>>>>>> dev
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
import { Component, ReactNode } from 'react';
|
||||
import { AtTabBar } from 'taro-ui';
|
||||
import Taro from '@tarojs/taro';
|
||||
import pt from '@/plain-text';
|
||||
import 'taro-ui/dist/style/index.scss';
|
||||
import './index.scss';
|
||||
import pt from '@/plain-text';
|
||||
|
||||
const navList: Array<Taro.TabBarItem> = [
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
import { Component, ReactNode } from 'react';
|
||||
import { AtForm, AtInput, AtButton, AtMessage } from 'taro-ui';
|
||||
import './inform.scss';
|
||||
import Taro from '@tarojs/taro';
|
||||
import pt from '@/plain-text';
|
||||
import './inform.scss';
|
||||
|
||||
export default class InformPage extends Component {
|
||||
state = {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import { Component, ReactNode } from 'react';
|
||||
import './myTicket.scss';
|
||||
import { View } from '@tarojs/components';
|
||||
import './myTicket.scss';
|
||||
|
||||
export default class SettingsPage extends Component {
|
||||
render(): ReactNode {
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
import { AtTextarea, AtButton, AtForm, AtMessage } from 'taro-ui';
|
||||
import { Component, ReactNode } from 'react';
|
||||
import './report.scss';
|
||||
import Taro from '@tarojs/taro';
|
||||
import pt from '@/plain-text';
|
||||
import './report.scss';
|
||||
|
||||
export default class SettingsPage extends Component {
|
||||
state = {
|
||||
|
|
@ -36,7 +36,7 @@ export default class SettingsPage extends Component {
|
|||
}
|
||||
onReset() {
|
||||
this.setState({
|
||||
Report: '',
|
||||
report: '',
|
||||
});
|
||||
}
|
||||
render(): ReactNode {
|
||||
|
|
|
|||
|
|
@ -1,26 +1,24 @@
|
|||
import { AtButton, AtList, AtListItem } from 'taro-ui';
|
||||
import { Component, ReactNode } from 'react';
|
||||
import './settings.scss';
|
||||
import Taro from '@tarojs/taro';
|
||||
import { View, Picker } from '@tarojs/components';
|
||||
import pt, { Lang } from '@/plain-text';
|
||||
import './settings.scss';
|
||||
|
||||
export default class SettingsPage extends Component {
|
||||
state = {
|
||||
selector: ['简体中文', 'English'],
|
||||
selectorChecked: {
|
||||
zh_CN: '简体中文',
|
||||
en_US: 'English',
|
||||
}[pt.getCurLang()],
|
||||
};
|
||||
|
||||
showLangDict: Record<string, Lang> = {
|
||||
简体中文: 'zh_CN',
|
||||
English: 'en_US',
|
||||
};
|
||||
|
||||
reversedShowLangDict: Record<Lang, string> = {
|
||||
zh_CN: '简体中文',
|
||||
en_US: 'English',
|
||||
};
|
||||
|
||||
state = {
|
||||
selector: ['简体中文', 'English'],
|
||||
selectorChecked: this.reversedShowLangDict[pt.getCurLang()],
|
||||
};
|
||||
|
||||
onSelect = (e: { detail: { value: string | number } }) => {
|
||||
this.setState({
|
||||
selectorChecked: this.state.selector[e.detail.value],
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
import { View } from '@tarojs/components';
|
||||
import { Component, ReactNode } from 'react';
|
||||
import Taro from '@tarojs/taro';
|
||||
import type CustomTabBar from '../../custom-tab-bar';
|
||||
import './user.scss';
|
||||
import type CustomTabBar from '@/custom-tab-bar';
|
||||
import { AtList, AtListItem } from 'taro-ui';
|
||||
import PageFooter from '@/components/PageFooter/PageFooter';
|
||||
import pt from '@/plain-text';
|
||||
import './user.scss';
|
||||
|
||||
export default class UserPage extends Component {
|
||||
// 以下是TabBar相关
|
||||
|
|
|
|||
Loading…
Reference in New Issue