mirror of
https://github.com/n8n-io/n8n-nodes-starter.git
synced 2025-12-10 15:08:08 -06:00
Fix "glob-parent" vulnerability; update tslint and tsconfig
This commit is contained in:
parent
f8ecf587f8
commit
58b5d0d9c0
3 changed files with 33 additions and 4 deletions
11
package.json
11
package.json
|
|
@ -18,7 +18,11 @@
|
|||
"build": "tsc && gulp",
|
||||
"tslint": "tslint -p tsconfig.json -c tslint.json",
|
||||
"watch": "tsc --watch",
|
||||
"test": "jest"
|
||||
"test": "jest",
|
||||
"preinstall": "npx npm-force-resolutions"
|
||||
},
|
||||
"resolutions": {
|
||||
"glob-parent": "^6.0.1"
|
||||
},
|
||||
"files": [
|
||||
"dist"
|
||||
|
|
@ -38,13 +42,14 @@
|
|||
"@types/request-promise-native": "~1.0.15",
|
||||
"gulp": "^4.0.0",
|
||||
"jest": "^26.4.2",
|
||||
"n8n-workflow": "~0.79.0",
|
||||
"n8n-workflow": "~0.85.0",
|
||||
"nodelinter": "^0.1.9",
|
||||
"ts-jest": "^26.3.0",
|
||||
"tslint": "^6.1.2",
|
||||
"typescript": "~4.3.5"
|
||||
},
|
||||
"dependencies": {
|
||||
"n8n-core": "~0.96.0"
|
||||
"n8n-core": "~0.103.0"
|
||||
},
|
||||
"jest": {
|
||||
"transform": {
|
||||
|
|
|
|||
|
|
@ -1,7 +1,8 @@
|
|||
{
|
||||
"compilerOptions": {
|
||||
"lib": [
|
||||
"es2017"
|
||||
"es2017",
|
||||
"es2019.array"
|
||||
],
|
||||
"types": [
|
||||
"node",
|
||||
|
|
@ -13,6 +14,7 @@
|
|||
"strictNullChecks": true,
|
||||
"strict": true,
|
||||
"preserveConstEnums": true,
|
||||
"resolveJsonModule": true,
|
||||
"declaration": true,
|
||||
"outDir": "./dist/",
|
||||
"target": "es2017",
|
||||
|
|
@ -22,6 +24,7 @@
|
|||
"credentials/**/*",
|
||||
"src/**/*",
|
||||
"nodes/**/*",
|
||||
"nodes/**/*.json",
|
||||
"test/**/*"
|
||||
],
|
||||
"exclude": [
|
||||
|
|
|
|||
21
tslint.json
21
tslint.json
|
|
@ -46,6 +46,7 @@
|
|||
"forin": true,
|
||||
"jsdoc-format": true,
|
||||
"label-position": true,
|
||||
"indent": [true, "tabs", 2],
|
||||
"member-access": [
|
||||
true,
|
||||
"no-public"
|
||||
|
|
@ -60,6 +61,10 @@
|
|||
"no-default-export": true,
|
||||
"no-duplicate-variable": true,
|
||||
"no-inferrable-types": true,
|
||||
"ordered-imports": [true, {
|
||||
"import-sources-order": "any",
|
||||
"named-imports-order": "case-insensitive"
|
||||
}],
|
||||
"no-namespace": [
|
||||
true,
|
||||
"allow-declarations"
|
||||
|
|
@ -82,11 +87,27 @@
|
|||
"ignore-bound-class-methods"
|
||||
],
|
||||
"switch-default": true,
|
||||
"trailing-comma": [
|
||||
true,
|
||||
{
|
||||
"multiline": {
|
||||
"objects": "always",
|
||||
"arrays": "always",
|
||||
"functions": "always",
|
||||
"typeLiterals": "ignore"
|
||||
},
|
||||
"esSpecCompliant": true
|
||||
}
|
||||
],
|
||||
"triple-equals": [
|
||||
true,
|
||||
"allow-null-check"
|
||||
],
|
||||
"use-isnan": true,
|
||||
"quotemark": [
|
||||
true,
|
||||
"single"
|
||||
],
|
||||
"quotes": [
|
||||
"error",
|
||||
"single"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue