Skip to content

Commit 0d0ce36

Browse files
committedJul 16, 2024·
update dependencies, update eslint, fix new eslintrules
1 parent e3ca54f commit 0d0ce36

9 files changed

+893
-2731
lines changed
 

‎.eslintrc.json

-19
This file was deleted.

‎eslint.config.mjs

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
import globals from "globals";
2+
import mochaPlugin from 'eslint-plugin-mocha';
3+
import pluginJs from "@eslint/js";
4+
5+
6+
export default [
7+
mochaPlugin.configs.flat.recommended,
8+
{
9+
files: ["**/*.js"],
10+
languageOptions: {sourceType: "commonjs"}
11+
},
12+
{
13+
languageOptions: {
14+
globals: {
15+
...globals.browser,
16+
...globals.node
17+
}
18+
},
19+
rules: {
20+
"mocha/no-mocha-arrows": "off",
21+
"mocha/consistent-spacing-between-blocks": "off",
22+
}
23+
},
24+
{
25+
ignores: [
26+
'coverage/*'
27+
]
28+
},
29+
pluginJs.configs.recommended,
30+
];

‎lib/helpers/uuid.js

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ function uuidv4js() {
44
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'
55
.replace(/[xy]/g, (c) => {
66
const r = Math.floor(Math.random() * 16);
7-
// eslint-disable-next-line no-bitwise
87
const v = (c === 'x') ? r : ((r & 0x3) | 0x8);
98
return v.toString(16);
109
});

0 commit comments

Comments
 (0)
Please sign in to comment.