@trenskow/group 0.0.34 → 0.0.35

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/eslint.config.mjs +43 -43
  2. package/package.json +4 -4
package/eslint.config.mjs CHANGED
@@ -1,50 +1,50 @@
1
- import globals from "globals";
2
- import path from "node:path";
3
- import { fileURLToPath } from "node:url";
4
- import js from "@eslint/js";
5
- import { FlatCompat } from "@eslint/eslintrc";
1
+ import globals from 'globals';
2
+ import path from 'node:path';
3
+ import { fileURLToPath } from 'node:url';
4
+ import js from '@eslint/js';
5
+ import { FlatCompat } from '@eslint/eslintrc';
6
6
 
7
7
  const __filename = fileURLToPath(import.meta.url);
8
8
  const __dirname = path.dirname(__filename);
9
9
  const compat = new FlatCompat({
10
- baseDirectory: __dirname,
11
- recommendedConfig: js.configs.recommended,
12
- allConfig: js.configs.all
10
+ baseDirectory: __dirname,
11
+ recommendedConfig: js.configs.recommended,
12
+ allConfig: js.configs.all
13
13
  });
14
14
 
15
- export default [...compat.extends("eslint:recommended"), {
16
- languageOptions: {
17
- globals: {
18
- ...globals.node,
19
- ...globals.mocha,
20
- },
21
-
22
- ecmaVersion: "latest",
23
- sourceType: "module",
24
- },
25
-
26
- rules: {
27
- indent: ["error", "tab"],
28
- "linebreak-style": ["error", "unix"],
29
- quotes: ["error", "single"],
30
- semi: ["error", "always"],
31
-
32
- "no-console": ["error", {
33
- allow: ["warn", "error", "info"],
34
- }],
35
-
36
- "no-unused-vars": ["error", {
37
- argsIgnorePattern: "^_",
38
- }],
39
-
40
- "no-empty": ["error", {
41
- allowEmptyCatch: true,
42
- }],
43
-
44
- "no-trailing-spaces": ["error", {
45
- ignoreComments: true,
46
- }],
47
-
48
- "require-atomic-updates": "off",
49
- },
15
+ export default [...compat.extends('eslint:recommended'), {
16
+ languageOptions: {
17
+ globals: {
18
+ ...globals.node,
19
+ ...globals.mocha,
20
+ },
21
+
22
+ ecmaVersion: 'latest',
23
+ sourceType: 'module',
24
+ },
25
+
26
+ rules: {
27
+ indent: ['error', 'tab'],
28
+ 'linebreak-style': ['error', 'unix'],
29
+ quotes: ['error', 'single'],
30
+ semi: ['error', 'always'],
31
+
32
+ 'no-console': ['error', {
33
+ allow: ['warn', 'error', 'info'],
34
+ }],
35
+
36
+ 'no-unused-vars': ['error', {
37
+ argsIgnorePattern: '^_',
38
+ }],
39
+
40
+ 'no-empty': ['error', {
41
+ allowEmptyCatch: true,
42
+ }],
43
+
44
+ 'no-trailing-spaces': ['error', {
45
+ ignoreComments: true,
46
+ }],
47
+
48
+ 'require-atomic-updates': 'off',
49
+ },
50
50
  }];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trenskow/group",
3
- "version": "0.0.34",
3
+ "version": "0.0.35",
4
4
  "description": "A small JavaScript function for grouping items in an array.",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -22,11 +22,11 @@
22
22
  },
23
23
  "homepage": "https://github.com/trenskow/group#readme",
24
24
  "devDependencies": {
25
- "@eslint/eslintrc": "^3.3.0",
25
+ "@eslint/eslintrc": "^3.3.1",
26
26
  "@eslint/js": "^9.13.0",
27
27
  "chai": "^5.2.0",
28
- "eslint": "^9.21.0",
29
- "globals": "^15.15.0",
28
+ "eslint": "^9.23.0",
29
+ "globals": "^16.0.0",
30
30
  "mocha": "^11.1.0"
31
31
  }
32
32
  }