trying to get eslint to work with typescript-language-server
This commit is contained in:
parent
704079060f
commit
484c37c9bf
|
@ -0,0 +1,2 @@
|
|||
node_modules
|
||||
public
|
|
@ -1 +1,2 @@
|
|||
public/js/irreligious.js
|
||||
node_modules/*
|
||||
|
|
15
cmd
15
cmd
|
@ -1,15 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
cmd=$1
|
||||
|
||||
if [ "$cmd" = "lint" ]; then
|
||||
eslint_d . --ext .ts
|
||||
elif [ "$cmd" = "build" ]; then
|
||||
eslint_d . --ext .ts && tsc
|
||||
elif [ "$cmd" = "run" ]; then
|
||||
firefox public/index.html &
|
||||
else
|
||||
echo "Usage: ./cmd lint - lint"
|
||||
echo " ./cmd build - lint and compile"
|
||||
echo " ./cmd run - run in firefox"
|
||||
fi
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"devDependencies": {
|
||||
"@typescript-eslint/eslint-plugin": "^4.30.0",
|
||||
"@typescript-eslint/parser": "^4.30.0",
|
||||
"@typescript-eslint/typescript-estree": "^4.30.0",
|
||||
"eslint": "^7.32.0",
|
||||
"typescript": "^4.4.2",
|
||||
"typescript-language-server": "^0.6.2"
|
||||
}
|
||||
}
|
|
@ -14,15 +14,15 @@ interface IResource {
|
|||
readonly valueInWholeNumbers: boolean;
|
||||
readonly clickText: string;
|
||||
readonly clickDescription: string;
|
||||
readonly altClickText?: string;
|
||||
readonly altClickDescription?: string;
|
||||
// readonly altClickText?: string;
|
||||
// readonly altClickDescription?: string;
|
||||
readonly value: number;
|
||||
readonly cost: { [key: string]: number };
|
||||
|
||||
max (state: GameState): number | null;
|
||||
inc (state: GameState): number | null;
|
||||
clickAction(state: GameState): void;
|
||||
altClickAction (state: GameState): void;
|
||||
// altClickAction (state: GameState): void;
|
||||
addValue (amount: number, state: GameState): void;
|
||||
isUnlocked (state: GameState): boolean;
|
||||
advanceAction (time: number, state: GameState): void;
|
||||
|
|
|
@ -8,8 +8,7 @@
|
|||
"experimentalDecorators": true,
|
||||
"target": "ES5",
|
||||
"module": "none",
|
||||
"plugins": [{
|
||||
"name": "typescript-eslint-language-service"
|
||||
}]
|
||||
}
|
||||
"plugins": [{"name": "typescript-eslint-language-service"}]
|
||||
},
|
||||
"include": ["src"]
|
||||
}
|
||||
|
|
Reference in New Issue