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