mirror of
https://github.com/dorny/paths-filter.git
synced 2026-07-05 13:55:36 +00:00
Compare commits
12 Commits
298e00d169
...
782721e39b
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
782721e39b | ||
|
|
bec1723bc4 | ||
|
|
1794b11ca4 | ||
|
|
9cff7d242b | ||
|
|
e8779dce3a | ||
|
|
99d6b694d8 | ||
|
|
72ccd00322 | ||
|
|
89fb1a85fc | ||
|
|
5b1e195ea9 | ||
|
|
c0a0458410 | ||
|
|
069ad76cd1 | ||
|
|
7ac8b60816 |
10
.github/renovate.json
vendored
Normal file
10
.github/renovate.json
vendored
Normal file
@ -0,0 +1,10 @@
|
||||
{
|
||||
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||
"extends": ["config:recommended", "group:allNonMajor", "schedule:monthly"],
|
||||
"timezone": "Pacific/Auckland",
|
||||
"labels": ["dependencies"],
|
||||
"vulnerabilityAlerts": {
|
||||
"labels": ["security"],
|
||||
"schedule": ["at any time"]
|
||||
}
|
||||
}
|
||||
15310
dist/index.mjs
generated
vendored
15310
dist/index.mjs
generated
vendored
File diff suppressed because one or more lines are too long
@ -1,36 +1,14 @@
|
||||
// @ts-check
|
||||
|
||||
import {fixupPluginRules} from '@eslint/compat'
|
||||
import {FlatCompat} from '@eslint/eslintrc'
|
||||
import jsEslint from '@eslint/js'
|
||||
import eslintConfigPrettier from 'eslint-config-prettier'
|
||||
import tsEslint from 'typescript-eslint'
|
||||
|
||||
const compat = new FlatCompat({
|
||||
baseDirectory: import.meta.dirname,
|
||||
recommendedConfig: jsEslint.configs.recommended,
|
||||
allConfig: jsEslint.configs.all
|
||||
})
|
||||
|
||||
/* eslint-disable @typescript-eslint/explicit-function-return-type */
|
||||
/**
|
||||
* @param {string} name the pugin name
|
||||
* @param {string} alias the plugin alias
|
||||
* @returns {import("eslint").ESLint.Plugin}
|
||||
*/
|
||||
function legacyPlugin(name, alias = name) {
|
||||
const plugin = compat.plugins(name)[0]?.plugins?.[alias]
|
||||
|
||||
if (!plugin) {
|
||||
throw new Error(`Unable to resolve plugin ${name} and/or alias ${alias}`)
|
||||
}
|
||||
|
||||
return fixupPluginRules(plugin)
|
||||
}
|
||||
/* eslint-enable @typescript-eslint/explicit-function-return-type */
|
||||
import * as eslintPluginImportX from 'eslint-plugin-import-x'
|
||||
import * as tsEslint from 'typescript-eslint'
|
||||
|
||||
export default tsEslint.config(
|
||||
jsEslint.configs.recommended,
|
||||
eslintPluginImportX.flatConfigs.recommended,
|
||||
eslintPluginImportX.flatConfigs.typescript,
|
||||
...tsEslint.configs.strictTypeChecked,
|
||||
...tsEslint.configs.stylisticTypeChecked,
|
||||
{
|
||||
@ -44,13 +22,9 @@ export default tsEslint.config(
|
||||
}
|
||||
},
|
||||
{
|
||||
ignores: ['**/coverage', '**/dist', '**/esbuild.config.mjs']
|
||||
ignores: ['**/coverage', '**/dist', '**/lib', '**/esbuild.config.mjs']
|
||||
},
|
||||
{
|
||||
plugins: {
|
||||
github: legacyPlugin('eslint-plugin-github', 'github'), // pending https://github.com/github/eslint-plugin-github/issues/513
|
||||
import: legacyPlugin('eslint-plugin-import', 'import') // Needed for above
|
||||
},
|
||||
rules: {
|
||||
'@typescript-eslint/await-thenable': 'warn',
|
||||
'@typescript-eslint/explicit-function-return-type': 'warn',
|
||||
@ -65,11 +39,7 @@ export default tsEslint.config(
|
||||
allowNumber: true
|
||||
}
|
||||
],
|
||||
'github/array-foreach': 'error',
|
||||
'github/no-implicit-buggy-globals': 'error',
|
||||
'github/no-then': 'error',
|
||||
'github/no-dynamic-script-tag': 'error',
|
||||
'import/no-extraneous-dependencies': [
|
||||
'import-x/no-extraneous-dependencies': [
|
||||
'error',
|
||||
{
|
||||
devDependencies: true,
|
||||
@ -77,7 +47,7 @@ export default tsEslint.config(
|
||||
peerDependencies: true
|
||||
}
|
||||
],
|
||||
'import/order': ['warn', {'newlines-between': 'always', alphabetize: {order: 'asc'}}],
|
||||
'import-x/order': ['warn', {'newlines-between': 'always', alphabetize: {order: 'asc'}}],
|
||||
'no-console': ['warn']
|
||||
}
|
||||
},
|
||||
|
||||
47
package.json
47
package.json
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "paths-filter",
|
||||
"version": "1.0.0",
|
||||
"version": "5.0.0",
|
||||
"private": true,
|
||||
"description": "Execute your workflow steps only if relevant files are modified.",
|
||||
"type": "module",
|
||||
@ -25,37 +25,36 @@
|
||||
],
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@actions/core": "^1.10.1",
|
||||
"@actions/core": "^1.11.1",
|
||||
"@actions/exec": "^1.1.1",
|
||||
"@actions/github": "^6.0.0",
|
||||
"@actions/github": "^6.0.1",
|
||||
"js-yaml": "^4.1.0",
|
||||
"micromatch": "^4.0.8"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@eslint/compat": "^1.1.1",
|
||||
"@eslint/eslintrc": "^3.1.0",
|
||||
"@eslint/js": "^9.10.0",
|
||||
"@octokit/webhooks-types": "^7.5.1",
|
||||
"@tsconfig/node20": "^20.1.4",
|
||||
"@types/eslint__js": "^8.42.3",
|
||||
"@eslint/eslintrc": "^3.3.1",
|
||||
"@eslint/js": "^9.29.0",
|
||||
"@octokit/webhooks-types": "^7.6.1",
|
||||
"@tsconfig/node20": "^20.1.6",
|
||||
"@types/js-yaml": "^4.0.9",
|
||||
"@types/micromatch": "^4.0.9",
|
||||
"@types/node": "^20.0.0",
|
||||
"@typescript-eslint/eslint-plugin": "^8.5.0",
|
||||
"@typescript-eslint/parser": "^8.5.0",
|
||||
"chalk": "^5.3.0",
|
||||
"esbuild": "^0.23.1",
|
||||
"eslint": "^9.10.0",
|
||||
"eslint-config-prettier": "^9.1.0",
|
||||
"eslint-import-resolver-typescript": "^3.6.3",
|
||||
"eslint-plugin-github": "^5.0.1",
|
||||
"prettier": "^3.3.3",
|
||||
"typescript": "^5.6.2",
|
||||
"typescript-eslint": "^8.5.0",
|
||||
"vitest": "^2.0.5"
|
||||
"@types/node": "^24.0.3",
|
||||
"@typescript-eslint/eslint-plugin": "^8.34.1",
|
||||
"@typescript-eslint/parser": "^8.34.1",
|
||||
"chalk": "^5.4.1",
|
||||
"esbuild": "^0.25.5",
|
||||
"eslint": "^9.29.0",
|
||||
"eslint-config-prettier": "^10.1.5",
|
||||
"eslint-import-resolver-typescript": "^4.4.3",
|
||||
"eslint-plugin-github": "^6.0.0",
|
||||
"eslint-plugin-import-x": "^4.15.2",
|
||||
"prettier": "^3.5.3",
|
||||
"typescript": "^5.8.3",
|
||||
"typescript-eslint": "^8.34.1",
|
||||
"vitest": "^3.2.4"
|
||||
},
|
||||
"volta": {
|
||||
"node": "20.17.0",
|
||||
"pnpm": "8.15.8"
|
||||
"node": "20.19.2",
|
||||
"pnpm": "10.12.1"
|
||||
}
|
||||
}
|
||||
|
||||
5800
pnpm-lock.yaml
5800
pnpm-lock.yaml
File diff suppressed because it is too large
Load Diff
2
pnpm-workspace.yaml
Normal file
2
pnpm-workspace.yaml
Normal file
@ -0,0 +1,2 @@
|
||||
onlyBuiltDependencies:
|
||||
- esbuild
|
||||
Loading…
Reference in New Issue
Block a user