Add linter config

This commit is contained in:
Saúl Ibarra Corretgé 2022-09-15 10:22:22 +02:00
parent 9e973ffe03
commit 48fc7767bd
5 changed files with 895 additions and 112 deletions

View file

@ -1,2 +1,3 @@
dist
node_modules
node_modules
.eslintrc.js

View file

@ -1,3 +0,0 @@
{
"extends": "@jitsi/eslint-config"
}

977
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -13,19 +13,13 @@
"npm": ">=7.0.0"
},
"dependencies": {
"@jitsi/eslint-config": "^4.1.0",
"@types/debug": "4.1.5",
"@types/express": "4.17.11",
"@types/node": "14.14.31",
"@types/socket.io": "2.1.4",
"@typescript-eslint/eslint-plugin": "5.30.5",
"@typescript-eslint/parser": "5.30.4",
"cross-env": "^7.0.3",
"debug": "4.3.1",
"dotenv": "^10.0.0",
"eslint": "8.1.0",
"eslint-plugin-import": "2.25.2",
"eslint-plugin-jsdoc": "37.0.3",
"express": "4.17.1",
"socket.io": "^2.5.0",
"socket.io-prometheus-metrics": "^1.0.6",
@ -35,7 +29,18 @@
"license": "MIT",
"scripts": {
"build": "tsc",
"lint": "eslint .",
"lint-fix": "eslint . --fix",
"start": "tsc && node dist/index.js",
"start:dev": "cross-env NODE_ENV=development ts-node-dev --respawn --transpile-only src/index.ts"
},
"devDependencies": {
"@jitsi/eslint-config": "^4.1.0",
"@typescript-eslint/eslint-plugin": "5.30.5",
"@typescript-eslint/parser": "5.30.4",
"eslint": "8.1.0",
"eslint-plugin-import": "2.25.2",
"eslint-plugin-jsdoc": "37.0.3",
"eslint-plugin-typescript-sort-keys": "^2.1.0"
}
}

7
src/.eslintrc.js Normal file
View file

@ -0,0 +1,7 @@
module.exports = {
extends: [
'@jitsi/eslint-config',
'@jitsi/eslint-config/jsdoc',
'@jitsi/eslint-config/typescript',
],
};