diff --git a/.github/renovate.json b/.github/renovate.json index 21debee0..dea16f64 100644 --- a/.github/renovate.json +++ b/.github/renovate.json @@ -2,12 +2,6 @@ "$schema": "https://docs.renovatebot.com/renovate-schema.json", "extends": ["github>renovatebot/.github", ":pinDependencies"], "packageRules": [ - { - "description": "Automerge Renovate updates", - "semanticCommitType": "fix", - "matchPackageNames": ["renovate/renovate"], - "matchUpdateTypes": ["major", "minor", "patch"] - }, { "description": "Update references in Markdown files weekly", "matchPaths": ["**/*.md"], diff --git a/.lintstagedrc.js b/.lintstagedrc.js deleted file mode 100644 index 4965bad0..00000000 --- a/.lintstagedrc.js +++ /dev/null @@ -1,4 +0,0 @@ -module.exports = { - '*.{ts,tsx,js,jsx,json}': ['yarn lint-es:file:fix'], - '*.{js,jsx,ts,tsx,md,yml,yaml,json}': ['yarn format:file'], -}; diff --git a/.lintstagedrc.json b/.lintstagedrc.json new file mode 100644 index 00000000..07d33d2c --- /dev/null +++ b/.lintstagedrc.json @@ -0,0 +1,4 @@ +{ + "*.{ts,tsx,js,jsx,json}": "eslint --fix", + "*": "prettier --ignore-unknown --write" +} diff --git a/package.json b/package.json index 59d73128..97057cca 100644 --- a/package.json +++ b/package.json @@ -22,15 +22,15 @@ "build": "run-s clean compile", "clean": "rimraf dist/", "compile": "ncc build -o dist --target es2021", - "format": "prettier --cache --ignore-unknown --write \"**/*.*\"", - "format:file": "prettier --cache --write", - "lint": "run-s lint-es", + "lint": "run-s lint-es prettier", "lint-es": "eslint .", "lint-es:file": "eslint", "lint-es:file:fix": "eslint --fix", "lint-es:fix": "eslint --fix .", - "lint:fix": "run-s lint-es:fix", + "lint:fix": "run-s lint-es:fix prettier-fix", "prepare": "husky install", + "prettier": "prettier --cache --check --ignore-unknown \"{**/*,*}.*\"", + "prettier-fix": "prettier --cache --write --ignore-unknown \"{**/*,*}.*\"", "release": "run-s clean build semantic-release", "semantic-release": "semantic-release", "start": "run-s build && node dist" diff --git a/src/input.ts b/src/input.ts index 54ffc904..f9a67a61 100644 --- a/src/input.ts +++ b/src/input.ts @@ -8,7 +8,8 @@ interface EnvironmentVariable { class Input { readonly options = { - envRegex: /^(?:RENOVATE_\w+|LOG_LEVEL|GITHUB_COM_TOKEN|NODE_OPTIONS|(?:HTTPS?|NO)_PROXY|(?:https?|no)_proxy)$/, + envRegex: + /^(?:RENOVATE_\w+|LOG_LEVEL|GITHUB_COM_TOKEN|NODE_OPTIONS|(?:HTTPS?|NO)_PROXY|(?:https?|no)_proxy)$/, configurationFile: { input: 'configurationFile', env: 'RENOVATE_CONFIG_FILE', diff --git a/tsconfig.json b/tsconfig.json index 022f92d7..5a825b5f 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -4,5 +4,6 @@ "allowSyntheticDefaultImports": true, "allowJs": true, "outDir": "dist" - } + }, + "ts-node": { "transpileOnly": true } }