Skip to content

Commit

Permalink
Merge pull request #4963 from dev-hato/update_super_linter_6
Browse files Browse the repository at this point in the history
super-linterアップデート
  • Loading branch information
massongit authored Mar 9, 2025
2 parents 2597487 + 027ab21 commit f0b0116
Show file tree
Hide file tree
Showing 9 changed files with 105 additions and 49 deletions.
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

0 comments on commit f0b0116

Please sign in to comment.