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 b69816a commit 0da31f8
Show file tree
Hide file tree
Showing 4 changed files with 72 additions and 24 deletions.
File renamed without changes.
36 changes: 36 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
import github from "eslint-plugin-github";
import globals from "globals";
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("plugin:github/recommended"), {
plugins: {
github,
},

languageOptions: {
globals: {
...globals.node,
...globals.jest,
},

ecmaVersion: 2020,
sourceType: "commonjs",
},

rules: {
"import/no-commonjs": "off",
"filenames/match-regex": "off",
"i18n-text/no-en": "off",
},
}];
57 changes: 33 additions & 24 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,11 @@
"lodash": "^4.17.15"
},
"devDependencies": {
"@eslint/eslintrc": "^3.2.0",
"@eslint/js": "^9.16.0",
"eslint": "^9.16.0",
"eslint-plugin-github": "^5.0.1",
"globals": "^15.13.0",
"jest": "^29.5.0",
"markdownlint": "^0.36.1",
"markdownlint-cli2": "^0.15.0"
Expand Down

0 comments on commit 0da31f8

Please sign in to comment.