forked from juice-shop/multi-juicer
-
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #728 from OWASP/dependabot/npm_and_yarn/wrongsecre…
…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
Showing
6 changed files
with
461 additions
and
486 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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", | ||
}, | ||
}]; |
Oops, something went wrong.