Skip to content

Commit 8aa0b11

Browse files
massongitrenovate[bot]github-actions[bot]
authored
super-linterアップデート (#273)
* chore(deps): update super-linter/super-linter action to v8.6.0 * gitleaksをアップデートしてあげたよ! * eslint.config.mjs更新 * n/no-missing-import: off * Disable dist * Revert "n/no-missing-import: off" This reverts commit 951eee7. * Reapply "n/no-missing-import: off" This reverts commit 578ce67. * n/no-process-exit: off * Disable n/no-unpublished-import * Disable secrets-outside-env * Set pull-requests: write --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 556b275 commit 8aa0b11

File tree

4 files changed

+16
-45
lines changed

4 files changed

+16
-45
lines changed

.github/workflows/add-to-task-list.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ jobs:
1717
id: generate_token
1818
uses: actions/create-github-app-token@f8d387b68d61c58ab83c6c016672934102569859 # v3.0.0
1919
with:
20-
app-id: ${{ secrets.PROJECT_AUTOMATION_APP_ID }}
21-
private-key: ${{ secrets.PROJECT_AUTOMATION_PRIVATE_KEY }}
20+
app-id: ${{ secrets.PROJECT_AUTOMATION_APP_ID }} # zizmor: ignore[secrets-outside-env]
21+
private-key: ${{ secrets.PROJECT_AUTOMATION_PRIVATE_KEY }} # zizmor: ignore[secrets-outside-env]
2222
- uses: dev-hato/actions-add-to-projects@23419f2617aa62a84365bd31e6ed764602a4dddd # v0.0.110
2323
with:
2424
github-token: ${{steps.generate_token.outputs.token}}

.github/workflows/super-linter.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ on:
2121
permissions:
2222
contents: read
2323
packages: read
24+
pull-requests: write
2425
statuses: write
2526
###############
2627
# Set the Job #
@@ -56,7 +57,7 @@ jobs:
5657
# Run Linter against code base #
5758
################################
5859
- name: Lint Code Base
59-
uses: super-linter/super-linter/slim@61abc07d755095a68f4987d1c2c3d1d64408f1f9 # v8.5.0
60+
uses: super-linter/super-linter/slim@9e863354e3ff62e0727d37183162c4a88873df41 # v8.6.0
6061
env:
6162
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6263
DEFAULT_BRANCH: main

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
repos:
33
- repo: https://github.com/zricethezav/gitleaks
4-
rev: v8.30.0
4+
rev: v8.30.1
55
hooks:
66
- id: gitleaks

eslint.config.mjs

Lines changed: 11 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
// https://github.com/super-linter/super-linter/blob/644fff4cf8f9c402888e29313139dd6e7cbce40e/TEMPLATES/eslint.config.mjs
1+
// https://github.com/super-linter/super-linter/blob/58ee821839c7e0d8979f759a8e5ca0d99bb50737/TEMPLATES/eslint.config.mjs
22
import { defineConfig, globalIgnores } from "eslint/config";
33
import n from "eslint-plugin-n";
44
import prettier from "eslint-plugin-prettier";
55
import globals from "globals";
6-
import jsoncParser from "jsonc-eslint-parser";
6+
import eslintPluginJsonc from "eslint-plugin-jsonc";
77
import typescriptEslint from "@typescript-eslint/eslint-plugin";
88
import tsParser from "@typescript-eslint/parser";
99
import pluginVue from "eslint-plugin-vue";
@@ -38,48 +38,18 @@ export default defineConfig([
3838
},
3939
},
4040
},
41-
{
41+
...eslintPluginJsonc.configs["recommended-with-json"].map((config) => ({
42+
...config,
4243
files: ["**/*.json"],
43-
extends: compat.extends("plugin:jsonc/recommended-with-json"),
44-
45-
languageOptions: {
46-
parser: jsoncParser,
47-
ecmaVersion: "latest",
48-
sourceType: "script",
49-
50-
parserOptions: {
51-
jsonSyntax: "JSON",
52-
},
53-
},
54-
},
55-
{
44+
})),
45+
...eslintPluginJsonc.configs["recommended-with-jsonc"].map((config) => ({
46+
...config,
5647
files: ["**/*.jsonc"],
57-
extends: compat.extends("plugin:jsonc/recommended-with-jsonc"),
58-
59-
languageOptions: {
60-
parser: jsoncParser,
61-
ecmaVersion: "latest",
62-
sourceType: "script",
63-
64-
parserOptions: {
65-
jsonSyntax: "JSONC",
66-
},
67-
},
68-
},
69-
{
48+
})),
49+
...eslintPluginJsonc.configs["recommended-with-json5"].map((config) => ({
50+
...config,
7051
files: ["**/*.json5"],
71-
extends: compat.extends("plugin:jsonc/recommended-with-json5"),
72-
73-
languageOptions: {
74-
parser: jsoncParser,
75-
ecmaVersion: "latest",
76-
sourceType: "script",
77-
78-
parserOptions: {
79-
jsonSyntax: "JSON5",
80-
},
81-
},
82-
},
52+
})),
8353
{
8454
files: ["**/*.js", "**/*.mjs", "**/*.cjs", "**/*.jsx"],
8555
extends: compat.extends("plugin:react/recommended"),

0 commit comments

Comments
 (0)