refactor: move to eslint

This commit is contained in:
Rainer Killinger
2022-07-04 15:02:09 +02:00
parent 3e2c7a1927
commit bb45c36d86
16 changed files with 632 additions and 251 deletions

View File

@@ -2,7 +2,7 @@
"name": "@openstapps/api",
"version": "0.42.0",
"scripts": {
"build": "npm run tslint && npm run compile",
"build": "npm run lint && npm run compile",
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0 && git add CHANGELOG.md && git commit -m 'docs: update changelog'",
"check-configuration": "openstapps-configuration",
"compile": "rimraf lib && tsc && prepend lib/cli.js '#!/usr/bin/env node\n'",
@@ -12,7 +12,7 @@
"preversion": "npm run prepublishOnly",
"push": "git push && git push origin \"v$npm_package_version\"",
"test": "nyc mocha --require ts-node/register --recursive 'test/*.spec.ts'",
"tslint": "tslint -p tsconfig.json -c tslint.json 'src/**/*.ts'"
"lint": "eslint --ext .ts src/"
},
"description": "Node.js library to interact with the StApps backend service",
"dependencies": {
@@ -42,7 +42,8 @@
},
"license": "GPL-3.0-only",
"devDependencies": {
"@openstapps/configuration": "0.29.1",
"@openstapps/configuration": "0.32.0",
"@openstapps/eslint-config": "1.1.0",
"@testdeck/mocha": "0.2.0",
"@types/chai": "4.3.1",
"@types/chai-as-promised": "7.1.5",
@@ -50,20 +51,28 @@
"@types/fs-extra": "9.0.13",
"@types/json-schema": "7.0.11",
"@types/mocha": "9.1.1",
"@typescript-eslint/eslint-plugin": "5.30.4",
"@typescript-eslint/parser": "5.30.4",
"chai": "4.3.6",
"chai-as-promised": "7.1.1",
"chai-spies": "1.0.0",
"conventional-changelog-cli": "2.2.2",
"eslint": "8.19.0",
"eslint-config-prettier": "8.5.0",
"eslint-plugin-jsdoc": "39.3.3",
"eslint-plugin-prettier": "4.2.1",
"eslint-plugin-unicorn": "43.0.0",
"fs-extra": "10.1.0",
"mocha": "10.0.0",
"nock": "13.2.8",
"nyc": "15.1.0",
"prepend-file-cli": "1.0.6",
"prettier": "2.7.1",
"rimraf": "3.0.2",
"ts-node": "10.8.2",
"tslint": "6.1.3",
"typedoc": "0.22.15",
"typescript": "3.9.10"
"typescript": "4.4.4"
},
"author": "Karl-Philipp Wulfert <krlwlfrt@gmail.com>",
"contributors": [
@@ -76,7 +85,7 @@
"Wieland Schöbl <wulkanat@gmail.com>"
],
"peerDependencies": {
"@openstapps/core": "~0.66.0"
"@openstapps/core": "~0.68.0"
},
"repository": {
"type": "git",