AssertionError [ERR_ASSERTION]: A fatal parsing error occurred: Parsing error: Unexpected token >
at runRuleForItem (/Users/lakshya/Desktop/projects/my-eslint-plugin/node_modules/eslint/lib/rule-tester/rule-tester.js:559:13)
at testValidTemplate (/Users/lakshya/Desktop/projects/my-eslint-plugin/node_modules/eslint/lib/rule-tester/rule-tester.js:605:28)
at Function.<anonymous> (/Users/lakshya/Desktop/projects/my-eslint-plugin/node_modules/eslint/lib/rule-tester/rule-tester.js:885:25)
at Function.itDefaultHandler (/Users/lakshya/Desktop/projects/my-eslint-plugin/node_modules/eslint/lib/rule-tester/rule-tester.js:294:23)
at /Users/lakshya/Desktop/projects/my-eslint-plugin/node_modules/eslint/lib/rule-tester/rule-tester.js:884:32
at Array.forEach (<anonymous>)
at Function.<anonymous> (/Users/lakshya/Desktop/projects/my-eslint-plugin/node_modules/eslint/lib/rule-tester/rule-tester.js:883:28)
at Function.describeDefaultHandler (/Users/lakshya/Desktop/projects/my-eslint-plugin/nod
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ "type": "dock", "align": "left", "width": 150 }, | |
{ | |
"type": "appleScriptTitledButton", | |
"source": { | |
"inline": "if application \"Spotify\" is running then\rtell application \"Spotify\"\rif player state is playing then\rreturn (get artist of current track) & \" – \" & (get name of current track)\relse\rreturn \"\"\rend if\rend tell\rend if\rreturn \"\"\r" | |
}, | |
"action": "appleScript", | |
"actionAppleScript": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#A Shell script to fetch bitcoin price and display ! | |
#Author: Lakshya Khera | |
#Dependencies | |
# - jq https://stedolan.github.io/jq/ | |
# - lolcat https://github.com/busyloop/lolcat/ | |
# | |
bitcoin_price=$(curl -s https://api.coindesk.com/v1/bpi/currentprice.json | jq '.bpi.USD.rate ') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class UserService { | |
constructor(private readonly userRepository : UserRepository) { | |
// Here the userRepository is abstracted! | |
} | |
getUser(id : String) : UserEntity { | |
return this.userRepository.getAll() | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class UserRepository { | |
constructor() { | |
this.userModel = userModel; | |
} | |
getOne(id: String) { | |
// ..db calls!! | |
} | |
getAll() : UserEntity { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface UserEntity { | |
name: String; | |
age: Number; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let state = { | |
activity:{ | |
activeView:"Activity" | |
}, | |
loader: { | |
isloading:false | |
}, | |
user: { | |
isLogged:true, | |
userDetails: { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<div> | |
{{getCount}} | |
<br/> | |
<button @click="increase">-</button> | |
<button @click="decrease">+</button> | |
</div> | |
</template> | |
<script lang="ts"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { VuexModule, Module, getModule, MutationAction } from 'vuex-module-decorators'; | |
import store from '../index'; | |
@Module({ | |
namespaced: true, | |
name: 'counter', | |
store: store, | |
dynamic: true, | |
}) | |
class CounterModule extends VuexModule { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Vue from 'vue'; | |
import Vuex from 'vuex'; | |
Vue.use(Vuex); | |
export default new Vuex.Store({ | |
state: {}, | |
actions: {}, | |
mutations: {}, | |
}); |
NewerOlder