1
0
Fork 0
mirror of synced 2024-07-15 03:05:57 +12:00
This commit is contained in:
Adria Navarro 2024-02-06 10:42:44 +01:00
parent 190903cbed
commit 6bc5bf5be1
4 changed files with 6 additions and 5 deletions

View file

@ -7,11 +7,11 @@ module.exports = {
if (
/^@budibase\/[^/]+\/.*$/.test(importPath) &&
!["@budibase/backend-core/tests","@budibase/string-templates/js-helpers"].includes(importPath)
importPath !== "@budibase/backend-core/tests"
) {
context.report({
node,
message: `Importing from @budibase is not allowed, except for @budibase/backend-core/tests and @budibase/string-templates/js-helpers.`,
message: `Importing from @budibase is not allowed, except for @budibase/backend-core/tests.`,
})
}
},

File diff suppressed because one or more lines are too long

View file

@ -1,4 +1,6 @@
import { getJsHelperList } from "@budibase/string-templates/js-helpers"
const {
getJsHelperList,
} = require("../../../../string-templates/src/helpers/list.js")
const helpers = getJsHelperList()
export default {

View file

@ -12,7 +12,6 @@
"import": "./dist/bundle.mjs"
},
"./package.json": "./package.json",
"./js-helpers": "./src/helpers/list.js",
"./test/utils": "./test/utils.js"
},
"files": [