Skip to content

Commit 5ec7761

Browse files
authored
Merge pull request #728 from OWASP/dependabot/npm_and_yarn/wrongsecrets-balancer/eslint-9.12.0
build(deps-dev): bump eslint from 8.57.0 to 9.12.0 in /wrongsecrets-balancer
2 parents d76f2c4 + e6ab9e8 commit 5ec7761

File tree

6 files changed

+461
-486
lines changed

6 files changed

+461
-486
lines changed

wrongsecrets-balancer/.eslintrc

Lines changed: 0 additions & 19 deletions
This file was deleted.
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
import prettier from "eslint-plugin-prettier";
2+
import globals from "globals";
3+
import path from "node:path";
4+
import { fileURLToPath } from "node:url";
5+
import js from "@eslint/js";
6+
import { FlatCompat } from "@eslint/eslintrc";
7+
8+
const __filename = fileURLToPath(import.meta.url);
9+
const __dirname = path.dirname(__filename);
10+
const compat = new FlatCompat({
11+
baseDirectory: __dirname,
12+
recommendedConfig: js.configs.recommended,
13+
allConfig: js.configs.all
14+
});
15+
16+
export default [...compat.extends("eslint:recommended"), {
17+
plugins: {
18+
prettier,
19+
},
20+
21+
languageOptions: {
22+
globals: {
23+
...globals.node,
24+
...globals.commonjs,
25+
...globals.jest,
26+
},
27+
28+
ecmaVersion: 2020,
29+
sourceType: "commonjs",
30+
},
31+
32+
rules: {
33+
"prettier/prettier": "error",
34+
"linebreak-style": ["error", "unix"],
35+
semi: ["error", "always"],
36+
"no-console": "off",
37+
},
38+
}];

0 commit comments

Comments
 (0)