All checks were successful
/ build (map[dockerfile:./services/hasura/Dockerfile name:hasura]) (push) Successful in 47s
/ build (map[dockerfile:./services/web/Dockerfile name:web]) (push) Successful in 1m47s
/ build (map[dockerfile:./services/watchers/Dockerfile name:watchers]) (push) Successful in 2m37s
/ build (map[dockerfile:./services/files/Dockerfile name:files]) (push) Successful in 2m52s
/ build (map[dockerfile:./services/api/Dockerfile name:api]) (push) Successful in 3m2s
/ build (map[dockerfile:./services/app/Dockerfile name:app]) (push) Successful in 31s
/ build (map[dockerfile:./services/tasks/Dockerfile name:tasks]) (push) Successful in 2m44s
/ deploy (push) Successful in 48s
111 lines
2.4 KiB
JavaScript
111 lines
2.4 KiB
JavaScript
const path = require("path")
|
|
const fs = require("fs")
|
|
|
|
// see https://github.com/import-js/eslint-plugin-import/issues/1174
|
|
const packageDirs = ["libs", "services"]
|
|
const packageDir = []
|
|
for (const dir of packageDirs) {
|
|
for (const d of fs
|
|
.readdirSync(path.resolve(__dirname, dir))
|
|
.filter(
|
|
(entry) =>
|
|
entry.slice(0, 1) !== "." &&
|
|
fs.lstatSync(path.resolve(__dirname, dir, entry)).isDirectory()
|
|
)) {
|
|
const p = path.resolve(dir, d)
|
|
packageDir.push(p)
|
|
}
|
|
}
|
|
|
|
module.exports = {
|
|
ignorePatterns: ["**/build/*", "modjo", "**/as-back"],
|
|
settings: {
|
|
"import/resolver": {
|
|
alias: true,
|
|
},
|
|
},
|
|
extends: [
|
|
"airbnb-base",
|
|
"prettier",
|
|
"plugin:prettier/recommended",
|
|
"plugin:import/recommended",
|
|
],
|
|
plugins: ["sql-pretty"],
|
|
rules: {
|
|
"no-undef": [2],
|
|
"sql-pretty/format": [1, { tags: ["sql"] }],
|
|
"no-shadow": [2, { allow: ["sql", "error"] }],
|
|
"node/no-extraneous-require": [0],
|
|
"import/no-commonjs": [0],
|
|
"import/no-dynamic-require": [0],
|
|
"import/no-extraneous-dependencies": [0],
|
|
"import/order": [
|
|
"error",
|
|
{
|
|
groups: [
|
|
"builtin",
|
|
"external",
|
|
"internal",
|
|
"parent",
|
|
"index",
|
|
"sibling",
|
|
"object",
|
|
],
|
|
pathGroups: [
|
|
{
|
|
group: "internal",
|
|
pattern: "~/**",
|
|
},
|
|
{
|
|
group: "internal",
|
|
pattern: "~**",
|
|
},
|
|
],
|
|
pathGroupsExcludedImportTypes: [],
|
|
},
|
|
],
|
|
"global-require": [0],
|
|
"no-restricted-syntax": [0],
|
|
"no-async-promise-executor": [0],
|
|
"no-nested-ternary": [0],
|
|
"no-loop-func": [0],
|
|
"no-new": [0],
|
|
"func-names": [0],
|
|
"no-plusplus": [0],
|
|
"no-param-reassign": [0],
|
|
"no-continue": [0],
|
|
"no-unused-vars": [
|
|
2,
|
|
{
|
|
vars: "all",
|
|
args: "after-used",
|
|
argsIgnorePattern: "^_",
|
|
varsIgnorePattern: "^_",
|
|
},
|
|
],
|
|
"no-console": [0],
|
|
"no-throw-literal": [0],
|
|
"no-await-in-loop": [0],
|
|
"consistent-return": [0],
|
|
semi: ["error", "never"],
|
|
"prettier/prettier": [
|
|
"error",
|
|
{
|
|
semi: false,
|
|
},
|
|
],
|
|
},
|
|
parserOptions: {
|
|
ecmaVersion: "latest",
|
|
sourceType: "script",
|
|
env: [
|
|
{
|
|
node: true,
|
|
},
|
|
],
|
|
},
|
|
globals: {
|
|
AggregateError: true,
|
|
dbug: true,
|
|
},
|
|
}
|