Skip to content

Commit 1f7965f

Browse files
committed
Add the cooldown and Fix the sames
1 parent bab810a commit 1f7965f

26 files changed

Lines changed: 8064 additions & 701 deletions

.github/dependabot.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ updates:
44
directory: /
55
schedule:
66
interval: daily
7+
timezone: Asia/Tokyo
8+
cooldown:
9+
default-days: 1
710
allow:
811
- dependency-type: all
912
rebase-strategy: auto
@@ -15,16 +18,23 @@ updates:
1518
- '*'
1619

1720
- package-ecosystem: npm
18-
directory: '/'
21+
directories:
22+
- '/package/'
23+
- '/tests/'
1924
schedule:
2025
interval: daily
2126
timezone: Asia/Tokyo
27+
cooldown:
28+
default-days: 1
29+
exclude:
30+
- 'pnpm'
31+
- 'appstore-connect-jwt-generator-core'
2232
allow:
2333
- dependency-type: all
2434
rebase-strategy: auto
2535
assignees:
2636
- poad
2737
groups:
28-
esm:
38+
npm:
2939
patterns:
3040
- '*'

.github/workflows/auto-merge.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ permissions:
99

1010
jobs:
1111
auto-merge:
12-
if: github.event.pull_request.draft == false
12+
if: ${{ !github.event.pull_request.draft }}
1313

1414
runs-on: ubuntu-latest
1515
steps:

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
with:
2727
node-version: ${{ matrix.node-version }}
2828
check-latest: true
29-
package-manager-cache: pnpm
29+
package-manager-cache: false
3030

3131
- uses: pnpm/action-setup@v4
3232
name: Install pnpm

.github/workflows/create-release-pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
with:
3737
node-version: 'lts/*'
3838
check-latest: true
39-
package-manager-cache: pnpm
39+
package-manager-cache: false
4040

4141
- uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0
4242
with:

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212
jobs:
1313
release:
1414
if: |
15-
(github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'Type: Release')) || github.event_name == 'workflow_dispatch'
15+
${{ (github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'Type: Release')) || github.event_name == 'workflow_dispatch' }}
1616
permissions:
1717
contents: write
1818
id-token: write # OIDC
Lines changed: 30 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,64 @@
1-
// @ts-check
2-
1+
import { defineConfig } from 'eslint/config';
32
import eslint from '@eslint/js';
3+
import { configs, parser } from 'typescript-eslint';
44
import stylistic from '@stylistic/eslint-plugin';
5-
import tseslint from 'typescript-eslint';
65
import importPlugin from 'eslint-plugin-import';
7-
import pluginPromise from 'eslint-plugin-promise'
6+
// @ts-expect-error ignore type errors
7+
import pluginPromise from 'eslint-plugin-promise';
88

99
import { includeIgnoreFile } from '@eslint/compat';
10-
import path from "node:path";
11-
import { fileURLToPath } from "node:url";
10+
import path from 'node:path';
11+
import { fileURLToPath } from 'node:url';
1212

1313
const __filename = fileURLToPath(import.meta.url);
1414
const __dirname = path.dirname(__filename);
15-
const gitignorePath = path.resolve(__dirname, ".gitignore");
15+
const gitignorePath = path.resolve(__dirname, '.gitignore');
1616

17-
export default tseslint.config(
17+
const eslintConfig = defineConfig(
1818
{
1919
ignores: [
20-
...(includeIgnoreFile(gitignorePath).ignores ?? []),
20+
...(includeIgnoreFile(gitignorePath).ignores || []),
2121
'**/*.d.ts',
22-
'*.js',
22+
'src/tsconfig.json',
23+
'src/stories',
24+
'**/*.css',
2325
'node_modules/**/*',
2426
'out',
2527
'cdk.out',
28+
'dist',
2629
'bin',
2730
],
2831
},
2932
eslint.configs.recommended,
30-
...tseslint.configs.strict,
31-
...tseslint.configs.stylistic,
33+
configs.strict,
34+
configs.stylistic,
3235
pluginPromise.configs['flat/recommended'],
3336
{
34-
files: ['src/**/*.ts'],
37+
files: ['**/*.ts', '*.js'],
38+
plugins: {
39+
'@stylistic': stylistic,
40+
},
3541
languageOptions: {
36-
parser: tseslint.parser,
3742
ecmaVersion: 'latest',
3843
sourceType: 'module',
44+
parser,
45+
parserOptions: {
46+
projectService: true,
47+
tsconfigRootDir: __dirname,
48+
},
3949
},
4050
extends: [
4151
importPlugin.flatConfigs.recommended,
4252
importPlugin.flatConfigs.typescript,
4353
],
4454
settings: {
4555
'import/resolver': {
46-
typescript: true,
47-
node: true,
56+
// You will also need to install and configure the TypeScript resolver
57+
// See also https://github.com/import-js/eslint-import-resolver-typescript#configuration
58+
'typescript': true,
59+
'node': true,
4860
},
4961
},
50-
plugins: {
51-
'@stylistic': stylistic,
52-
},
5362
rules: {
5463
'@stylistic/semi': ['error', 'always'],
5564
'@stylistic/indent': ['error', 2],
@@ -59,3 +68,5 @@ export default tseslint.config(
5968
},
6069
},
6170
);
71+
72+
export default eslintConfig;

0 commit comments

Comments
 (0)