hygen-github-action-generators
Advanced tools
Comparing version
@@ -1,2 +0,2 @@ | ||
export default [ | ||
const prompt = [ | ||
{ | ||
@@ -8,4 +8,6 @@ type: 'input', | ||
initial: () => | ||
(process.version.match(/^v(\d+\.\d+.\d+)/) ?? [undefined, undefined])[1], | ||
(/^v(\d+\.\d+.\d+)/.exec(process.version) ?? [undefined, undefined])[1], | ||
}, | ||
]; | ||
export default prompt; |
{ | ||
"name": "hygen-github-action-generators", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "Generators for standard github actions workflows", | ||
@@ -25,3 +25,3 @@ "keywords": [ | ||
"pretest": "npm run lint && npm run compile", | ||
"lint": "eslint .", | ||
"lint": "xo", | ||
"compile": "echo 'this package does not need to be compiled'" | ||
@@ -74,3 +74,87 @@ }, | ||
] | ||
}, | ||
"xo": { | ||
"space": true, | ||
"prettier": true, | ||
"rules": { | ||
"func-names": [ | ||
"error", | ||
"always" | ||
], | ||
"no-await-in-loop": "off", | ||
"@typescript-eslint/no-implicit-any-catch": "off", | ||
"unicorn/no-array-reduce": "off", | ||
"import/extensions": "off", | ||
"n/prefer-global/process": "off" | ||
}, | ||
"overrides": [ | ||
{ | ||
"files": "**/*.ts", | ||
"rules": { | ||
"@typescript-eslint/naming-convention": [ | ||
"error", | ||
{ | ||
"selector": "default", | ||
"format": [ | ||
"camelCase" | ||
] | ||
}, | ||
{ | ||
"selector": "variable", | ||
"format": [ | ||
"camelCase", | ||
"UPPER_CASE", | ||
"PascalCase" | ||
] | ||
}, | ||
{ | ||
"selector": "parameter", | ||
"format": [ | ||
"camelCase", | ||
"PascalCase" | ||
] | ||
}, | ||
{ | ||
"selector": "typeLike", | ||
"format": [ | ||
"PascalCase" | ||
] | ||
}, | ||
{ | ||
"selector": "classProperty", | ||
"format": [ | ||
"camelCase" | ||
] | ||
}, | ||
{ | ||
"selector": "objectLiteralProperty", | ||
"format": null | ||
}, | ||
{ | ||
"selector": "typeProperty", | ||
"format": null | ||
}, | ||
{ | ||
"selector": "enum", | ||
"format": [ | ||
"PascalCase", | ||
"UPPER_CASE" | ||
] | ||
}, | ||
{ | ||
"selector": "enumMember", | ||
"format": null | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"files": "**/*.test.ts", | ||
"rules": { | ||
"import/no-extraneous-dependencies": "off", | ||
"@typescript-eslint/naming-convention": "off" | ||
} | ||
} | ||
] | ||
} | ||
} |
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
10432
23.51%11
10%0
-100%