Skip to content

Commit 6e177d4

Browse files
Update super-linter (#547)
* chore(deps): update super-linter/super-linter action to v8.5.0 * Update eslint.config.mjs * Add .codespellrc * Disable n/no-missing-import * Set react version --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
1 parent c73e1f2 commit 6e177d4

File tree

3 files changed

+9
-20
lines changed

3 files changed

+9
-20
lines changed

.codespellrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# https://github.com/super-linter/super-linter/blob/ff76a002516303867ea0cc83fa748467362c80eb/TEMPLATES/.codespellrc
2+
[codespell]
3+
check-hidden =
4+
skip = */package-lock.json,*/go.mod,*/go.sum,*.log,.git,*/bun.lock

.github/workflows/super-linter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
# Run Linter against code base #
5656
################################
5757
- name: Lint Code Base
58-
uses: super-linter/super-linter/slim@d5b0a2ab116623730dd094f15ddc1b6b25bf7b99 # v8.3.2
58+
uses: super-linter/super-linter/slim@61abc07d755095a68f4987d1c2c3d1d64408f1f9 # v8.5.0
5959
env:
6060
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6161
DEFAULT_BRANCH: main

eslint.config.mjs

Lines changed: 4 additions & 19 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";
@@ -21,7 +21,7 @@ const compat = new FlatCompat({
2121
});
2222

2323
export default defineConfig([
24-
globalIgnores(["!**/.*", "**/node_modules/.*", "**/dist/**"]),
24+
globalIgnores(["!**/.*", "**/node_modules/.*"]),
2525
{
2626
extends: compat.extends("eslint:recommended"),
2727

@@ -126,20 +126,5 @@ export default defineConfig([
126126
},
127127
},
128128
},
129-
{
130-
files: ["**/*.vue"],
131-
extends: compat.extends("plugin:vue/recommended"),
132-
133-
languageOptions: {
134-
parser: vueParser,
135-
ecmaVersion: "latest",
136-
sourceType: "module",
137-
138-
parserOptions: {
139-
ecmaFeatures: {
140-
modules: true,
141-
},
142-
},
143-
},
144-
},
129+
...pluginVue.configs["flat/recommended"],
145130
]);

0 commit comments

Comments
 (0)