Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

super-linterアップデート #4963

Merged
merged 7 commits into from
Mar 9, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
73 changes: 73 additions & 0 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
---
# https://github.com/super-linter/super-linter/blob/d0b304a6a58b560749c679157953fec8ba7206df/TEMPLATES/.eslintrc.yml
env:
browser: true
es6: true
jest: true
node: true
extends:
- "eslint:recommended"
ignorePatterns:
- "!.*"
- "**/node_modules/.*"
plugins:
- n
- prettier
overrides:
# JSON files
- files:
- "*.json"
extends:
- plugin:jsonc/recommended-with-json
parser: jsonc-eslint-parser
parserOptions:
jsonSyntax: JSON
# JSONC files
- files:
- "*.jsonc"
extends:
- plugin:jsonc/recommended-with-jsonc
parser: jsonc-eslint-parser
parserOptions:
jsonSyntax: JSONC
# JSON5 files
- files:
- "*.json5"
extends:
- plugin:jsonc/recommended-with-json5
parser: jsonc-eslint-parser
parserOptions:
jsonSyntax: JSON5
# Javascript files
- files:
- "**/*.js"
- "**/*.mjs"
- "**/*.cjs"
- "**/*.jsx"
#extends:
# - "plugin:react/recommended"
parserOptions:
sourceType: module
ecmaVersion: latest
ecmaFeatures:
jsx: true
modules: true
# TypeScript files
- files:
- "**/*.ts"
- "**/*.cts"
- "**/*.mts"
- "**/*.tsx"
extends:
- "plugin:@typescript-eslint/recommended"
- plugin:n/recommended
#- plugin:react/recommended
- prettier
rules:
n/no-missing-import: off
parser: "@typescript-eslint/parser"
plugins:
- "@typescript-eslint"
parserOptions:
ecmaVersion: latest
sourceType: module
3 changes: 1 addition & 2 deletions .github/workflows/pr-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,12 @@ jobs:
- name: Install dependencies
run: bash "${GITHUB_WORKSPACE}/scripts/pr_test/pr_super_lint/npm_ci.sh"
- name: Lint files
uses: super-linter/super-linter/slim@85f7611e0f7b53c8573cca84aa0ed4344f6f6a4d # v7.2.1
uses: super-linter/super-linter/slim@4e8a7c2bf106c4c766c816b35ec612638dc9b6b2 # v7.3.0
env:
VALIDATE_ALL_CODEBASE: true
VALIDATE_SQLFLUFF: false
VALIDATE_CHECKOV: false # TODO: checkovが依存するopenaiのバージョンがアップデートされたら削除
VALIDATE_JSCPD: false
TYPESCRIPT_DEFAULT_STYLE: prettier
VALIDATE_TYPESCRIPT_STANDARD: false
LINTER_RULES_PATH: .
FILTER_REGEX_EXCLUDE: ".*assets/.*.txt"
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
repos:
- repo: https://github.com/zricethezav/gitleaks
rev: v8.21.2
rev: v8.24.0
hooks:
- id: gitleaks
3 changes: 2 additions & 1 deletion .textlintrc
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
"https://platform.openai.com/api-keys",
"https://fly.io/dashboard/",
"https://fly.io/docs/getting-started/launch-demo/#1-install-flyctl",
"https://fly.io/docs/getting-started/launch-demo/#2-sign-up-or-sign-in"
"https://fly.io/docs/getting-started/launch-demo/#2-sign-up-or-sign-in",
"https://ngrok.com/"
]
},
"no-mixed-zenkaku-and-hankaku-alphabet": true,
Expand Down
8 changes: 8 additions & 0 deletions commitlint.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// https://github.com/super-linter/super-linter/blob/5d6e3fcecc2b2906eedc2d15495fd6027bf51a9e/commitlint.config.js
module.exports = {
extends: ["@commitlint/config-conventional"],
helpUrl: "https://www.conventionalcommits.org/",
// We need this until https://github.com/dependabot/dependabot-core/issues/2445
// is resolved.
ignores: [(msg: string) => /Signed-off-by: dependabot\[bot]/m.test(msg)],
};
39 changes: 4 additions & 35 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading