ci: add xo dep and lint files

This commit is contained in:
Alexis Tyler
2019-10-12 16:29:54 +10:30
parent d8e693e8a4
commit e856a12823
5 changed files with 2307 additions and 707 deletions

View File

@@ -3,7 +3,6 @@
* Written by: Alexis Tyler
*/
// eslint-disable-next-line max-params
module.exports = function (
$injector,
ApiManager,

View File

@@ -72,7 +72,7 @@ am(async () => {
try {
// Handler non fatal errors
$injector.resolve('globalErrorHandler')(coreError);
} catch (error) {
} catch {
throw coreError;
}
});

View File

@@ -1 +1 @@
module.exports = {extends: ['@commitlint/config-conventional']}
module.exports = {extends: ['@commitlint/config-conventional']};

2998
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -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
}
}
}