Skip to content

Commit

Permalink
More typescript conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
thecodeflayer committed Jul 15, 2020
1 parent a5d370b commit fb2a86e
Show file tree
Hide file tree
Showing 8 changed files with 735 additions and 739 deletions.
72 changes: 14 additions & 58 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,53 +1,3 @@
// module.exports = {
// 'env': {
// 'es2020': true
// },
// // 'extends': [
// // 'eslint:recommended',
// // 'plugin:vue/essential',
// // 'plugin:@typescript-eslint/recommended'
// // ],
// 'extends': [
// 'eslint:recommended',
// 'plugin:@typescript-eslint/recommended',
// // 'prettier/@typescript-eslint',
// //'plugin:prettier/recommended',
// 'plugin:vue/recommended',
// // '@vue/prettier',
// //'@vue/typescript',
// 'plugin:@typescript-eslint/recommended'
// ],
// 'parserOptions': {
// 'ecmaVersion': 11,
// 'parser': '@typescript-eslint/parser',
// 'sourceType': 'module'
// },
// 'plugins': [
// 'vue',
// 'nativescript',
// '@typescript-eslint'
// ],
// 'rules': {
// 'indent': [
// 'error',
// 2
// ],
// 'linebreak-style': [
// 'error',
// 'unix'
// ],
// 'quotes': [
// 'error',
// 'single'
// ],
// 'semi': [
// 'error',
// 'always'
// ],
// 'nativescript/no-short-imports': 'error'
// }

// };
module.exports = {
"parser": "@typescript-eslint/parser",
"parserOptions": {
Expand All @@ -58,19 +8,25 @@ module.exports = {
'indent': [
'error',
2
],
'linebreak-style': [
],
'linebreak-style': [
'error',
'unix'
],
'quotes': [
],
'quotes': [
'error',
'single'
],
'semi': [
],
'semi': [
'error',
'always'
],
'nativescript/no-short-imports': 'error'
],
'nativescript/no-short-imports': 'error',
'nativescript/script-indent': ['error', 4, {
'baseIndent': 1,
'switchCase': 1,
'ignores': []
}],
'space-before-function-paren': ['error', 'never'],
}
};
11 changes: 6 additions & 5 deletions app/components/DarkList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,13 @@
<script type="ts">
import {Component, Vue, Ref} from 'vue-property-decorator';
import DarkMap from "@/components/DarkMap.vue";
import {ScrollView} from 'tns-core-modules/ui/scroll-view';
import DarkMap from '@/components/DarkMap.vue';
import {ScrollView} from 'tns-core-modules/ui/scroll-view';
@Component
export default class DarkList extends Vue {
@Ref() listScrollView!: ScrollView;
@Ref('listScrollView') listScrollView;
menuHandler = {
mode: this.$modelManager.map.darkworld.mode
};
Expand All @@ -70,10 +71,10 @@
mounted() {
this.$modelManager.validateLocales();
this.scrollOffsetY = this.$modelManager.map.lightworld.scrollY;
const sv = this.listScrollView;
const sv = this.listScrollView.nativeView;
setTimeout(() => {
try{
sv.scrollToVerticalOffset(this.scrollOffsetY, false);
sv.nativeView.scrollToVerticalOffset(this.scrollOffsetY, false);
}catch(err){console.log(err);}
}, 300);
Expand Down
Loading

0 comments on commit fb2a86e

Please sign in to comment.