mirror of
https://github.com/unraid/api.git
synced 2026-02-18 05:58:28 -06:00
ci: add xo dep and lint files
This commit is contained in:
@@ -3,7 +3,6 @@
|
||||
* Written by: Alexis Tyler
|
||||
*/
|
||||
|
||||
// eslint-disable-next-line max-params
|
||||
module.exports = function (
|
||||
$injector,
|
||||
ApiManager,
|
||||
|
||||
@@ -72,7 +72,7 @@ am(async () => {
|
||||
try {
|
||||
// Handler non fatal errors
|
||||
$injector.resolve('globalErrorHandler')(coreError);
|
||||
} catch (error) {
|
||||
} catch {
|
||||
throw coreError;
|
||||
}
|
||||
});
|
||||
|
||||
@@ -1 +1 @@
|
||||
module.exports = {extends: ['@commitlint/config-conventional']}
|
||||
module.exports = {extends: ['@commitlint/config-conventional']};
|
||||
|
||||
2998
package-lock.json
generated
2998
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
11
package.json
11
package.json
@@ -44,10 +44,12 @@
|
||||
"devDependencies": {
|
||||
"@commitlint/cli": "^8.2.0",
|
||||
"@commitlint/config-conventional": "^8.2.0",
|
||||
"ava": "^2.4.0",
|
||||
"bundle-dependencies": "^1.0.2",
|
||||
"cz-conventional-changelog": "3.0.2",
|
||||
"husky": "^3.0.8",
|
||||
"modclean": "^3.0.0-beta.1"
|
||||
"modclean": "^3.0.0-beta.1",
|
||||
"xo": "^0.25.3"
|
||||
},
|
||||
"bundledDependencies": [
|
||||
"@gridplus/docker-events",
|
||||
@@ -82,5 +84,10 @@
|
||||
"hooks": {
|
||||
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
|
||||
}
|
||||
}
|
||||
},
|
||||
"xo": {
|
||||
"rules": {
|
||||
"max-params": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user