Resolve "Transition to ESLint"

This commit is contained in:
Thea Schöbl
2022-06-27 14:40:09 +00:00
committed by Rainer Killinger
parent ca1d2444e0
commit 418ba67d15
47 changed files with 1854 additions and 1634 deletions

View File

@@ -12,10 +12,10 @@
"Michel Jonathan Schmitz",
"Rainer Killinger <mail-openstapps@killinger.co>",
"Sebastian Lange",
"Wieland Schöbl"
"Thea Schöbl <dev@theaninova.de>"
],
"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'",
@@ -29,35 +29,37 @@
"test": "npm run test-unit && npm run test-integration",
"test-unit": "env NODE_CONFIG_ENV=elasticsearch ALLOW_NO_TRANSPORT=true STAPPS_LOG_LEVEL=0 nyc mocha --require ts-node/register --exit 'test/**/*.spec.ts'",
"test-integration": "sudo docker-compose -f integration-test.yml pull && sudo docker-compose -f integration-test.yml up --build --abort-on-container-exit --exit-code-from apicli",
"tslint": "tslint -p tsconfig.json -c tslint.json 'src/**/*.ts'"
"lint": "eslint -c .eslintrc.json --ignore-path .eslintignore --ext .ts src/ test/",
"lint:fix": "eslint --fix -c .eslintrc.json --ignore-path .eslintignore --ext .ts src/ test/"
},
"dependencies": {
"@elastic/elasticsearch": "5.6.22",
"@openstapps/core": "0.66.1",
"@openstapps/core-tools": "0.30.1",
"@openstapps/core": "0.68.0",
"@openstapps/core-tools": "0.31.0",
"@openstapps/logger": "0.8.1",
"@types/express-prometheus-middleware": "1.2.1",
"@types/node": "14.18.18",
"@types/node": "14.18.21",
"config": "3.3.7",
"cors": "2.8.5",
"express": "4.18.1",
"express-prometheus-middleware": "1.2.0",
"express-promise-router": "4.1.1",
"got": "11.8.3",
"got": "11.8.5",
"moment": "2.29.3",
"morgan": "1.10.0",
"nock": "13.2.4",
"nock": "13.2.7",
"node-cache": "5.1.2",
"node-cron": "3.0.0",
"node-cron": "3.0.1",
"nodemailer": "6.7.5",
"prom-client": "14.0.1",
"promise-queue": "2.2.5",
"ts-node": "10.8.0",
"ts-node": "10.8.1",
"uuid": "8.3.2"
},
"devDependencies": {
"@openstapps/configuration": "0.29.1",
"@openstapps/es-mapping-generator": "0.1.0",
"@openstapps/configuration": "0.32.0",
"@openstapps/es-mapping-generator": "0.2.0",
"@openstapps/eslint-config": "1.1.0",
"@testdeck/mocha": "0.2.0",
"@types/chai": "4.3.1",
"@types/chai-as-promised": "7.1.5",
@@ -74,21 +76,28 @@
"@types/sinon-express-mock": "1.3.9",
"@types/supertest": "2.0.12",
"@types/uuid": "8.3.4",
"@typescript-eslint/eslint-plugin": "5.29.0",
"@typescript-eslint/parser": "5.29.0",
"chai": "4.3.6",
"chai-as-promised": "7.1.1",
"conventional-changelog-cli": "2.2.2",
"eslint": "8.18.0",
"eslint-config-prettier": "8.5.0",
"eslint-plugin-jsdoc": "39.3.3",
"eslint-plugin-prettier": "4.1.0",
"eslint-plugin-unicorn": "42.0.0",
"get-port": "5.1.1",
"mocha": "10.0.0",
"mocked-env": "1.3.5",
"nyc": "15.1.0",
"prepend-file-cli": "1.0.6",
"redoc-cli": "0.13.14",
"prettier": "2.7.1",
"redoc-cli": "0.13.16",
"rimraf": "3.0.2",
"sinon": "14.0.0",
"sinon-express-mock": "2.2.1",
"supertest": "6.2.3",
"tslint": "6.1.3",
"typedoc": "0.22.15",
"typedoc": "0.22.17",
"typescript": "4.4.4"
},
"nyc": {