File tree 12 files changed +40
-5
lines changed
12 files changed +40
-5
lines changed Original file line number Diff line number Diff line change
1
+ [* .{js,jsx,ts,tsx,vue} ]
2
+ indent_style = space
3
+ indent_size = 2
4
+ end_of_line = lf
5
+ trim_trailing_whitespace = true
6
+ insert_final_newline = true
7
+ max_line_length = 100
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ module.exports = {
10
10
'prettier' ,
11
11
'plugin:prettier-vue/recommended' ,
12
12
'prettier/vue' ,
13
+ '@vue/typescript/recommended' ,
13
14
] ,
14
15
parserOptions : {
15
16
parser : 'babel-eslint' ,
Original file line number Diff line number Diff line change 19
19
"vuex" : " ^3.4.0"
20
20
},
21
21
"devDependencies" : {
22
- "@babel/polyfill" : " ^7.7.0" ,
22
+ "@typescript-eslint/eslint-plugin" : " ^2.33.0" ,
23
+ "@typescript-eslint/parser" : " ^2.33.0" ,
23
24
"@vue/cli-plugin-babel" : " ~4.3.0" ,
24
25
"@vue/cli-plugin-eslint" : " ~4.3.0" ,
25
26
"@vue/cli-plugin-router" : " ^4.3.1" ,
27
+ "@vue/cli-plugin-typescript" : " ~4.4.0" ,
26
28
"@vue/cli-plugin-vuex" : " ~4.3.0" ,
27
29
"@vue/cli-service" : " ~4.3.0" ,
28
30
"@vue/eslint-config-airbnb" : " ^5.0.2" ,
31
+ "@vue/eslint-config-typescript" : " ^5.0.2" ,
29
32
"babel-eslint" : " ^10.1.0" ,
30
33
"eslint" : " ^6.7.2" ,
31
34
"eslint-config-airbnb" : " ^18.1.0" ,
39
42
"prettier" : " ^2.0.5" ,
40
43
"sass" : " ^1.19.0" ,
41
44
"sass-loader" : " ^8.0.0" ,
45
+ "typescript" : " ~3.9.3" ,
42
46
"vue-cli-plugin-bootstrap-vue" : " ~0.6.0" ,
43
47
"vue-template-compiler" : " ^2.6.11"
44
48
}
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ api.interceptors.response.use(
29
29
console . log ( err ) ;
30
30
if ( err . response && err . response . status === 401 ) {
31
31
console . log ( 'Dispatching refresh_token...' ) ;
32
- apiStore . store . dispatch ( 'user/refresh_token ' ) ;
32
+ apiStore . store . dispatch ( 'user/refreshToken ' ) ;
33
33
// maybe redirect to /login if needed !
34
34
}
35
35
return new Promise ( ( resolve , reject ) => {
Original file line number Diff line number Diff line change
1
+ declare module '*.vue' {
2
+ import Vue from 'vue' ;
3
+
4
+ export default Vue ;
5
+ }
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ export default {
6
6
version : '' ,
7
7
trades : [ ] ,
8
8
openTrades : [ ] ,
9
- trade_count : 0 ,
9
+ tradeCount : 0 ,
10
10
performanceStats : [ ] ,
11
11
whitelist : [ ] ,
12
12
blacklist : [ ] ,
@@ -28,7 +28,7 @@ export default {
28
28
mutations : {
29
29
updateTrades ( state , trades ) {
30
30
state . trades = trades . trades ;
31
- state . trade_count = trades . trades_count ;
31
+ state . tradeCount = trades . trades_count ;
32
32
} ,
33
33
updateOpenTrades ( state , trades ) {
34
34
state . openTrades = trades ;
Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ export default {
89
89
} )
90
90
. catch ( console . error ) ;
91
91
} ,
92
- refresh_token ( { commit, dispatch } ) {
92
+ refreshToken ( { commit, dispatch } ) {
93
93
console . log ( 'Refreshing token...' ) ;
94
94
const token = JSON . parse ( localStorage . getItem ( AUTH_REF_TOKEN ) ) ;
95
95
axios
Original file line number Diff line number Diff line change
1
+ {
2
+ "compilerOptions" : {
3
+ // this aligns with Vue's browser support
4
+ "target" : " es5" ,
5
+ // this enables stricter inference for data properties on `this`
6
+ "strict" : true ,
7
+ // if using webpack 2+ or rollup, to leverage tree shaking:
8
+ "module" : " es2015" ,
9
+ "moduleResolution" : " node"
10
+ },
11
+ "include" : [
12
+ " src/**/*.ts" ,
13
+ " src/**/*.tsx" ,
14
+ " src/**/*.vue" ,
15
+ " tests/**/*.ts" ,
16
+ " tests/**/*.tsx"
17
+ ]
18
+ }
You can’t perform that action at this time.
0 commit comments