Skip to content

Commit

Permalink
Merge pull request #726 from OWASP/dependabot/npm_and_yarn/cleaner/es…
Browse files Browse the repository at this point in the history
…lint-9.12.0

build(deps-dev): bump eslint from 8.57.0 to 9.12.0 in /cleaner
  • Loading branch information
commjoen authored Oct 9, 2024
2 parents f8d8d8c + 7803177 commit d76f2c4
Show file tree
Hide file tree
Showing 4 changed files with 421 additions and 427 deletions.
38 changes: 38 additions & 0 deletions cleaner/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 d76f2c4

Please sign in to comment.