mirror of
https://github.com/usebruno/bruno.git
synced 2025-08-07 12:58:59 +02:00
* Feature: adding dynamic variable support (#3609) Co-authored-by: Raghav Sethi <109696225+rsxc@users.noreply.github.com> Co-authored-by: sanjai0py <sanjailucifer666@gmail.com>
54 lines
1.1 KiB
JavaScript
54 lines
1.1 KiB
JavaScript
// eslint.config.js
|
|
const { defineConfig } = require("eslint/config");
|
|
const globals = require("globals");
|
|
|
|
module.exports = defineConfig([
|
|
{
|
|
files: ["packages/bruno-app/**/*.{js,jsx,ts}"],
|
|
ignores: ["**/*.config.js"],
|
|
languageOptions: {
|
|
globals: {
|
|
...globals.browser,
|
|
...globals.jest,
|
|
global: false,
|
|
require: false,
|
|
Buffer: false,
|
|
process: false
|
|
},
|
|
parserOptions: {
|
|
ecmaFeatures: {
|
|
jsx: true,
|
|
},
|
|
},
|
|
},
|
|
rules: {
|
|
"no-undef": "error",
|
|
},
|
|
},
|
|
{
|
|
// It prevents lint errors when using CommonJS exports (module.exports) in Jest mocks.
|
|
files: ["packages/bruno-app/src/test-utils/mocks/codemirror.js"],
|
|
languageOptions: {
|
|
globals: {
|
|
...globals.node,
|
|
...globals.jest,
|
|
},
|
|
},
|
|
rules: {
|
|
"no-undef": "error",
|
|
},
|
|
},
|
|
{
|
|
files: ["packages/bruno-electron/**/*.{js}"],
|
|
ignores: ["**/*.config.js"],
|
|
languageOptions: {
|
|
globals: {
|
|
...globals.node,
|
|
...globals.jest,
|
|
},
|
|
},
|
|
rules: {
|
|
"no-undef": "error",
|
|
},
|
|
}
|
|
]); |