1
1
mirror of https://github.com/kahole/edamagit.git synced 2024-09-11 07:15:31 +03:00

replaces deprecated tslint with eslint

This commit is contained in:
kahole 2020-03-15 18:22:04 +01:00
parent 67be38d14b
commit 7202c6514b
5 changed files with 1194 additions and 225 deletions

29
.eslintrc.json Normal file
View File

@ -0,0 +1,29 @@
{
"env": {
"es6": true,
"node": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended"
],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module"
},
"plugins": [
"@typescript-eslint"
],
"rules": {
"eqeqeq": "error",
"quotes": [2, "single", { "avoidEscape": true, "allowTemplateLiterals": true }],
"curly": "warn",
"no-empty": "off",
"no-unused-vars": "off"
}
}

View File

@ -2,6 +2,6 @@
// See http://go.microsoft.com/fwlink/?LinkId=827846
// for the documentation about the extensions.json format
"recommendations": [
"ms-vscode.vscode-typescript-tslint-plugin"
"dbaeumer.vscode-eslint"
]
}

1352
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -442,19 +442,22 @@
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc --forceConsistentCasingInFileNames -p ./",
"lint": "eslint src --ext ts",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile",
"pretest": "npm run compile && npm run lint",
"test": "node ./out/test/runTest.js"
},
"devDependencies": {
"@types/glob": "^7.1.1",
"@types/mocha": "^5.2.7",
"@types/mocha": "^7.0.1",
"@types/node": "^12.11.7",
"@types/vscode": "^1.40.0",
"glob": "^7.1.5",
"mocha": "^6.2.2",
"typescript": "^3.7.3",
"tslint": "^5.20.1",
"vscode-test": "^1.2.2"
"@types/vscode": "^1.43.0",
"eslint": "^6.8.0",
"@typescript-eslint/parser": "^2.18.0",
"@typescript-eslint/eslint-plugin": "^2.18.0",
"glob": "^7.1.6",
"mocha": "^7.0.1",
"typescript": "^3.7.5",
"vscode-test": "^1.3.0"
}
}

View File

@ -1,17 +0,0 @@
{
"rules": {
"no-string-throw": true,
"no-unused-expression": true,
"no-duplicate-variable": true,
"curly": true,
"class-name": true,
"semicolon": [
true,
"always"
],
"triple-equals": true,
"quotemark": [true, "single"],
"prefer-const": true
},
"defaultSeverity": "warning"
}