Skip to content

Commit

Permalink
Production Release
Browse files Browse the repository at this point in the history
Sprint 45
Add Admin Permission to User- Sean Sayler #712
Update to latest version of USWDS 3.10.0 #699
Dependabot Alert: Regular Expression Denial of Service (ReDoS) in cross-spawn #703
  • Loading branch information
felder101 committed Dec 18, 2024
1 parent d3cb254 commit 6910bf0
Show file tree
Hide file tree
Showing 16 changed files with 1,254 additions and 686 deletions.
88 changes: 88 additions & 0 deletions training-front-end/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
import globals from "globals";
import astro from "eslint-plugin-astro";
import typescriptEslint from "@typescript-eslint/eslint-plugin";
import tsParser from "@typescript-eslint/parser";
import vueParser from "vue-eslint-parser";
import astroParser from "astro-eslint-parser";
import path from "node:path";
import { fileURLToPath } from "node:url";
import js from "@eslint/js";
import { FlatCompat } from "@eslint/eslintrc";

const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all
});

export default [...compat.extends("eslint:recommended", "plugin:@typescript-eslint/recommended"), {

plugins: {
"@typescript-eslint": typescriptEslint,
},

languageOptions: {
globals: {
...globals.browser,
...globals.node,
Fragment: "readonly",
},

parser: tsParser,
ecmaVersion: "latest",
sourceType: "module",
},
}, {
files: ["**/*.js"],

languageOptions: {
globals: {
global: "writeable",
},
},
}, ...compat.extends(
"eslint:recommended",
"plugin:astro/recommended",
"plugin:astro/jsx-a11y-strict",
).map(config => ({
...config,
files: ["**/*.astro"],
})), {
files: ["**/*.astro"],

languageOptions: {
parser: astroParser,
ecmaVersion: 5,
sourceType: "script",

parserOptions: {
parser: "@typescript-eslint/parser",
extraFileExtensions: [".astro"],
},
},

rules: {
"astro/jsx-a11y/anchor-is-valid": "off",
},
}, ...compat.extends("plugin:vue/vue3-recommended", "plugin:vuejs-accessibility/recommended").map(config => ({
...config,
files: ["**/*.vue"],
})), {
files: ["**/*.vue"],

languageOptions: {
parser: vueParser,
ecmaVersion: "latest",
sourceType: "module",
},

rules: {
"vuejs-accessibility/label-has-for": ["error", {
required: {
some: ["id"],
},
}],
},
}];
Loading

0 comments on commit 6910bf0

Please sign in to comment.