Commit 1759979f authored by lutangar's avatar lutangar
Browse files

wip

parent a15452b2
{
"root": true,
"parser": "@typescript-eslint/parser",
"extends": [
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended"
],
"rules": {
"no-console": "warn",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-explicit-any": ["warn", { "ignoreRestArgs": true }],
"@typescript-eslint/no-unused-vars": "off" // Hard to guess if a library will be used in one of the operations
}
}
......@@ -2,3 +2,4 @@
. "$(dirname "$0")/_/husky.sh"
npm run prettier
npm run eslint
This diff is collapsed.
......@@ -7,14 +7,19 @@
"peertube": ">=3.2.0"
},
"scripts": {
"prepublishOnly": "tsc",
"prepare": "husky install",
"semantic-release": "semantic-release",
"prettier": "prettier --write 'src**/*.js' commitlint.config.js"
"eslint": "eslint 'src/**/*.ts' 'test/**/*.ts'",
"prettier": "prettier-eslint --write 'src/**/*.ts' commitlint.config.js"
},
"publishConfig": {
"access": "public"
},
"main": "./lib/index.js",
"typings": "./lib/index.d.ts",
"files": [
"lib/",
"src/",
"languages/"
],
......@@ -26,7 +31,7 @@
"homepage": "https://gitlab.mim-libre.fr/extensions-peertube/categories-management-plugin/",
"author": "lutangar",
"bugs": "https://gitlab.mim-libre.fr/extensions-peertube/categories-management-plugin/-/issues",
"library": "./src/index.js",
"library": "./lib/index.js",
"css": [],
"clientScripts": [],
"translations": {
......@@ -40,8 +45,21 @@
"@semantic-release/git": "^9.0.0",
"@semantic-release/gitlab": "^6.1.0",
"@semantic-release/npm": "^7.1.3",
"@tsconfig/node14": "^1.0.1",
"@typescript-eslint/eslint-plugin": "^4.27.0",
"@typescript-eslint/parser": "^4.27.0",
"eslint": "^7.29.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier": "^3.4.0",
"husky": "^6.0.0",
"peertube": "^3.0.1",
"prettier": "^2.3.1",
"semantic-release": "^17.4.4"
"prettier-eslint-cli": "^5.0.1",
"semantic-release": "^17.4.4",
"tsconfig-paths": "^3.9.0",
"typescript": "^4.3.4"
},
"peerDependencies": {
"peertube": "^3.0.1"
}
}
......@@ -6,7 +6,7 @@ async function register({
settingsManager,
videoCategoryManager,
peertubeHelpers,
}) {
}: RegisterServerOptions) {
const { logger } = peertubeHelpers;
registerHook({
......
{
"extends": "@tsconfig/node14/tsconfig.json",
"compilerOptions": {
"baseUrl": "src",
"declaration": true,
"outDir": "./lib",
},
"include": [
"./src"
]
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment