Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kendallgassner committed Dec 2, 2024
1 parent 47dc01a commit 35a11b2
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,26 @@ 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("plugin:github/recommended"), {
export default [...compat.config({
extends: "plugin:github/recommended",
ignorePatterns: ['eslint.config.mjs', '.markdownlint-cli2.cjs'],
rules: {
"import/no-commonjs": "off",
"filenames/match-regex": "off",
"i18n-text/no-en": "off",
},
}), {
plugins: {
github,
},

ignores: ['eslint.config.mjs', '.markdownlint-cli2.cjs'],
languageOptions: {
globals: {
...globals.node,
Expand All @@ -33,6 +42,4 @@ export default [...compat.extends("plugin:github/recommended"), {
"filenames/match-regex": "off",
"i18n-text/no-en": "off",
},

ignores: ['**/.markdownlint-cli2.cjs'],
}];

0 comments on commit 35a11b2

Please sign in to comment.