Skip to content

Commit

Permalink
Merge pull request #728 from OWASP/dependabot/npm_and_yarn/wrongsecre…
Browse files Browse the repository at this point in the history
…ts-balancer/eslint-9.12.0

build(deps-dev): bump eslint from 8.57.0 to 9.12.0 in /wrongsecrets-balancer
  • Loading branch information
commjoen authored Oct 9, 2024
2 parents d76f2c4 + e6ab9e8 commit 5ec7761
Show file tree
Hide file tree
Showing 6 changed files with 461 additions and 486 deletions.
19 changes: 0 additions & 19 deletions wrongsecrets-balancer/.eslintrc

This file was deleted.

38 changes: 38 additions & 0 deletions wrongsecrets-balancer/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
import prettier from "eslint-plugin-prettier";
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("eslint:recommended"), {
plugins: {
prettier,
},

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

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

rules: {
"prettier/prettier": "error",
"linebreak-style": ["error", "unix"],
semi: ["error", "always"],
"no-console": "off",
},
}];
Loading

0 comments on commit 5ec7761

Please sign in to comment.