Skip to content

Commit f44951f

Browse files
authored
Merge pull request #174 from howdy39/improve/dependencies-and-ci
ci: 依存関係・セキュリティ・CI の改善
2 parents dfd32b1 + 381e934 commit f44951f

11 files changed

Lines changed: 3041 additions & 7813 deletions

File tree

.clasp.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"scriptId": "<your_script_id>",
2+
"scriptId": "11Yk69y-wzOrMu_xZvR0laYgdxt8j2y4z8rMAOHVZ-NgbU-Ef4K0uRxMe",
33
"rootDir": "dist"
44
}

.eslintignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

.eslintrc.json

Lines changed: 0 additions & 25 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- uses: actions/setup-node@v4
16+
with:
17+
node-version-file: package.json
18+
cache: npm
19+
20+
- run: npm ci
21+
22+
- run: npm run build

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,6 @@ node_modules/
1313

1414
# Build directory
1515
dist/
16+
17+
# clasp credentials
18+
.clasprc.json

eslint.config.mjs

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import eslint from '@eslint/js';
2+
import tseslint from 'typescript-eslint';
3+
import prettierRecommended from 'eslint-plugin-prettier/recommended';
4+
5+
export default tseslint.config(
6+
eslint.configs.recommended,
7+
tseslint.configs.recommended,
8+
prettierRecommended,
9+
{
10+
rules: {
11+
'prettier/prettier': [
12+
'error',
13+
{
14+
singleQuote: true,
15+
semi: true,
16+
printWidth: 100,
17+
},
18+
],
19+
},
20+
},
21+
{
22+
ignores: ['dist/**', 'node_modules/**'],
23+
},
24+
);

0 commit comments

Comments
 (0)