Skip to content

Commit 371445d

Browse files
super-linterアップデート (#2266)
* chore(deps): update super-linter/super-linter action to v8.4.0 * Update eslint.config.mjs * Set n/no-missing-import: off --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
1 parent 6231f69 commit 371445d

2 files changed

Lines changed: 6 additions & 21 deletions

File tree

.github/workflows/super-linter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
# Run Linter against code base #
5555
################################
5656
- name: Lint Code Base
57-
uses: super-linter/super-linter/slim@d5b0a2ab116623730dd094f15ddc1b6b25bf7b99 # v8.3.2
57+
uses: super-linter/super-linter/slim@12562e48d7059cf666c43a4ecb0d3b5a2b31bd9e # v8.4.0
5858
env:
5959
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6060
DEFAULT_BRANCH: main

eslint.config.mjs

Lines changed: 5 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
// https://github.com/super-linter/super-linter/blob/0d8f7aad449c1dc8ecaf2362684de5d379d2cd7d/TEMPLATES/eslint.config.mjs
1+
// https://github.com/super-linter/super-linter/blob/644fff4cf8f9c402888e29313139dd6e7cbce40e/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";
66
import jsoncParser from "jsonc-eslint-parser";
77
import typescriptEslint from "@typescript-eslint/eslint-plugin";
88
import tsParser from "@typescript-eslint/parser";
9-
import vueParser from "vue-eslint-parser";
9+
import pluginVue from "eslint-plugin-vue";
1010
import path from "node:path";
1111
import { fileURLToPath } from "node:url";
1212
import js from "@eslint/js";
@@ -82,7 +82,7 @@ export default defineConfig([
8282
},
8383
{
8484
files: ["**/*.js", "**/*.mjs", "**/*.cjs", "**/*.jsx"],
85-
// extends: compat.extends("plugin:react/recommended"),
85+
extends: compat.extends("plugin:react/recommended"),
8686

8787
languageOptions: {
8888
ecmaVersion: "latest",
@@ -102,7 +102,7 @@ export default defineConfig([
102102
extends: compat.extends(
103103
"plugin:@typescript-eslint/recommended",
104104
"plugin:n/recommended",
105-
// "plugin:react/recommended",
105+
"plugin:react/recommended",
106106
"prettier",
107107
),
108108

@@ -120,20 +120,5 @@ export default defineConfig([
120120
"n/no-missing-import": "off",
121121
},
122122
},
123-
{
124-
files: ["**/*.vue"],
125-
extends: compat.extends("plugin:vue/recommended"),
126-
127-
languageOptions: {
128-
parser: vueParser,
129-
ecmaVersion: "latest",
130-
sourceType: "module",
131-
132-
parserOptions: {
133-
ecmaFeatures: {
134-
modules: true,
135-
},
136-
},
137-
},
138-
},
123+
...pluginVue.configs["flat/recommended"],
139124
]);

0 commit comments

Comments
 (0)