Skip to content

Commit

Permalink
More attempts at linting
Browse files Browse the repository at this point in the history
  • Loading branch information
TotallyInformation committed Feb 16, 2021
1 parent 39da4cc commit 8b9c7a3
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 1 deletion.
10 changes: 9 additions & 1 deletion front-end/jsconfig.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,20 @@
{
"compilerOptions": {
"noEmit": true,
"module": "none",
"moduleResolution":"node",
"allowSyntheticDefaultImports":true,
"alwaysStrict":false,
"newLine":"lf",
"target": "es6",
"checkJs": true
"checkJs": true,
"lib": [
"dom",
"es6"
]
},
"exclude": ["node_modules", "**/node_modules/*"],
"include": [
"../vue-global.d.ts"
]
}
20 changes: 20 additions & 0 deletions typedefs.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @property {boolean} uibNode.allowScripts Allow scripts to be sent to front-end via msg? WARNING: can be a security issue.
* @property {boolean} uibNode.allowStyles Allow CSS to be sent to the front-end via msg? WARNING: can be a security issue.
* @property {boolean} uibNode.copyIndex Copy index.(html|js|css) files from templates if they don't exist?
* @property {String} uibNode.templateFolder Folder name for the source of the chosen template
* @property {boolean} uibNode.showfolder Provide a folder index web page?
* @property {boolean} uibNode.useSecurity Use uibuilder's built-in security features?
* @property {boolean} uibNode.tokenAutoExtend Extend token life when msg's received from client?
Expand Down Expand Up @@ -57,3 +58,22 @@
* @property {Date} [userMetadata.passwordExpiry] Date/time the users password expires.
* @property {Date} [userMetadata.subsExpiry] Date/time the users subscription expires.
*/

/**
* Props define attributes on a virtual node.
* @typedef {Object.<string, any> | {}} Props
* @property {Children} Props.children
*/
/**
* The vnode children of a virtual node.
* @typedef {VNode[]} Children
*/
/**
* Define a custom type for virtual nodes:
* @typedef {string | number | Function} Type
* @typedef {Object.<string, any>} VNode
* @property {Type} VNode.type
* @property {Props} VNode.props
* @property {Children} VNode.children
* @property {Key} [VNode.key]
*/
6 changes: 6 additions & 0 deletions vue-global.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// vue-global.d.ts
import _Vue = require('vue')

declare global {
const Vue: typeof _Vue
}

0 comments on commit 8b9c7a3

Please sign in to comment.