Skip to content

Commit 50a4842

Browse files
upupmingMolunerfinn
authored andcommitted
📦 Chore: add vscode workspace settings & migrate tslint to eslint
1 parent 301770f commit 50a4842

File tree

5 files changed

+1008
-53
lines changed

5 files changed

+1008
-53
lines changed

.eslintrc.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"extends": "standard-with-typescript",
3+
"parserOptions": {
4+
"project": "./tsconfig.json"
5+
}
6+
}

.vscode/settings.json

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
{
2-
"tslint.enable": true,
3-
"typescript.tsdk": "node_modules\\typescript\\lib",
4-
"tslint.autoFixOnSave": true
5-
}
2+
"editor.formatOnSave": false,
3+
"eslint.validate": [
4+
"javascript",
5+
"javascriptreact",
6+
"typescript",
7+
"typescriptreact"
8+
],
9+
"editor.codeActionsOnSave": {
10+
"source.fixAll.eslint": true
11+
},
12+
"eslint.enable": true,
13+
"eslint.alwaysShowStatus": true,
14+
"editor.tabSize": 2
15+
}

package.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,15 +61,24 @@
6161
"@types/node": "^10.5.2",
6262
"@types/request-promise-native": "^1.0.15",
6363
"@types/resolve": "^0.0.8",
64+
"@typescript-eslint/eslint-plugin": "3",
65+
"@typescript-eslint/parser": "^3.2.0",
66+
"babel-eslint": "^10.1.0",
6467
"commitizen": "^3.0.7",
6568
"conventional-changelog": "^3.0.6",
6669
"copyfiles": "^2.1.0",
6770
"cz-customizable": "^5.10.0",
71+
"eslint": "7",
72+
"eslint-config-standard-with-typescript": "^18.0.2",
73+
"eslint-plugin-import": "2",
74+
"eslint-plugin-node": "11",
75+
"eslint-plugin-promise": "4",
76+
"eslint-plugin-standard": "4",
6877
"husky": "^1.3.1",
6978
"pre-commit": "^1.2.2",
7079
"tslint": "^5.10.0",
7180
"tslint-config-standard": "^8.0.1",
72-
"typescript": "3.7.4"
81+
"typescript": "^3.9.5"
7382
},
7483
"dependencies": {
7584
"chalk": "^2.4.1",

tslint.json

Lines changed: 0 additions & 25 deletions
This file was deleted.

0 commit comments

Comments
 (0)