-
-
Notifications
You must be signed in to change notification settings - Fork 587
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
37 changed files
with
83 additions
and
194 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,5 +1,3 @@ | ||
/* eslint-disable no-console */ | ||
|
||
"use strict"; | ||
|
||
const kleur = require("kleur"); | ||
|
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 |
---|---|---|
@@ -1,5 +1,3 @@ | ||
/* eslint-disable no-console, no-unused-vars */ | ||
|
||
"use strict"; | ||
|
||
const fs = require("fs"); | ||
|
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 |
---|---|---|
@@ -1,4 +1,3 @@ | ||
/* eslint-disable no-console */ | ||
"use strict"; | ||
|
||
const ServiceBroker = require("../../src/service-broker"); | ||
|
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 |
---|---|---|
@@ -1,5 +1,3 @@ | ||
/* eslint-disable no-console */ | ||
|
||
"use strict"; | ||
|
||
const kleur = require("kleur"); | ||
|
This file was deleted.
Oops, something went wrong.
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,70 @@ | ||
const js = require("@eslint/js"); | ||
const globals = require("globals"); | ||
const pluginSecurity = require('eslint-plugin-security'); | ||
|
||
/** @type {import('eslint').Linter.FlatConfig[]} */ | ||
module.exports = [ | ||
js.configs.recommended, | ||
pluginSecurity.configs.recommended, | ||
//"plugin:security/recommended-legacy", | ||
//"plugin:prettier/recommended", | ||
{ | ||
files: ["**/*.js", "**/*.mjs"], | ||
languageOptions: { | ||
parserOptions: { | ||
sourceType: "module", | ||
ecmaVersion: 2023 | ||
}, | ||
globals: { | ||
...globals.node, | ||
...globals.es2020, | ||
...globals.commonjs, | ||
...globals.es6, | ||
...globals.jquery, | ||
...globals.jest, | ||
...globals.jasmine, | ||
process: "readonly", | ||
fetch: "readonly" | ||
} | ||
}, | ||
// plugins: ["node", "security"], | ||
rules: { | ||
"no-var": ["error"], | ||
"no-console": ["error"], | ||
"no-unused-vars": ["warn"], | ||
"no-trailing-spaces": ["error"], | ||
"security/detect-object-injection": ["off"], | ||
"security/detect-non-literal-require": ["off"], | ||
"security/detect-non-literal-fs-filename": ["off"], | ||
"no-process-exit": ["off"], | ||
"node/no-unpublished-require": 0 | ||
}, | ||
ignores: ["benchmark/test.js", "test/typescript/hello-world/out/*.js"], | ||
}, { | ||
files: ["test/typescript/hello-world/out/*.js"], | ||
languageOptions: { | ||
globals: { | ||
exports: "readonly", | ||
require: "readonly", | ||
__dirname: "readonly", | ||
console: "readonly", | ||
process: "readonly", | ||
} | ||
}, | ||
rules: { | ||
"no-unused-vars": ["off"] | ||
} | ||
}, { | ||
files: ["test/**/*.js"], | ||
rules: { | ||
"no-console": ["off"], | ||
"no-unused-vars": ["off"] | ||
} | ||
}, { | ||
files: ["dev/**/*.js", "benchmark/**/*.js", "examples/**/*.js"], | ||
rules: { | ||
"no-console": ["off"], | ||
"no-unused-vars": ["off"] | ||
} | ||
} | ||
]; |
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 |
---|---|---|
@@ -1,4 +1,3 @@ | ||
/* eslint-disable no-console */ | ||
"use strict"; | ||
|
||
let _ = require("lodash"); | ||
|
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 |
---|---|---|
@@ -1,5 +1,3 @@ | ||
/* eslint-disable no-console */ | ||
|
||
"use strict"; | ||
|
||
let { times, random, padStart } = require("lodash"); | ||
|
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 |
---|---|---|
@@ -1,5 +1,3 @@ | ||
/* eslint-disable no-console */ | ||
|
||
"use strict"; | ||
|
||
const os = require("os"), | ||
|
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 |
---|---|---|
@@ -1,5 +1,3 @@ | ||
/* eslint-disable no-console */ | ||
|
||
"use strict"; | ||
|
||
let random = require("lodash/random"); | ||
|
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 |
---|---|---|
@@ -1,5 +1,3 @@ | ||
/* eslint-disable no-console */ | ||
|
||
let nc1 = require("nats").connect(); | ||
let nc2 = require("nats").connect(); | ||
|
||
|
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 |
---|---|---|
@@ -1,5 +1,3 @@ | ||
/* eslint-disable no-console */ | ||
|
||
"use strict"; | ||
|
||
let ServiceBroker = require("../../src/service-broker"); | ||
|
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 |
---|---|---|
@@ -1,5 +1,3 @@ | ||
/* eslint-disable no-console */ | ||
|
||
"use strict"; | ||
|
||
let path = require("path"); | ||
|
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 |
---|---|---|
@@ -1,5 +1,3 @@ | ||
/* eslint-disable no-console */ | ||
|
||
"use strict"; | ||
|
||
const path = require("path"); | ||
|
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
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 |
---|---|---|
@@ -1,5 +1,3 @@ | ||
/* eslint-disable no-console */ | ||
|
||
"use strict"; | ||
|
||
const _ = require("lodash"); | ||
|
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 |
---|---|---|
@@ -1,5 +1,3 @@ | ||
/* eslint-disable no-console */ | ||
|
||
"use strict"; | ||
|
||
// Instead use `-r ./tracing.js` // require("./tracing"); | ||
|
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
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 |
---|---|---|
|
@@ -4,8 +4,6 @@ | |
* MIT Licensed | ||
*/ | ||
|
||
/* eslint-disable no-console */ | ||
|
||
"use strict"; | ||
|
||
const BaseLogger = require("./base"); | ||
|
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
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
Oops, something went wrong.