@trenskow/group 0.0.26 → 0.0.27

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.
@@ -0,0 +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";
6
+
7
+ const __filename = fileURLToPath(import.meta.url);
8
+ const __dirname = path.dirname(__filename);
9
+ const compat = new FlatCompat({
10
+ baseDirectory: __dirname,
11
+ recommendedConfig: js.configs.recommended,
12
+ allConfig: js.configs.all
13
+ });
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
+ },
50
+ }];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trenskow/group",
3
- "version": "0.0.26",
3
+ "version": "0.0.27",
4
4
  "description": "A small JavaScript function for grouping items in an array.",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -22,8 +22,11 @@
22
22
  },
23
23
  "homepage": "https://github.com/trenskow/group#readme",
24
24
  "devDependencies": {
25
+ "@eslint/eslintrc": "^3.1.0",
26
+ "@eslint/js": "^9.13.0",
25
27
  "chai": "^5.1.1",
26
- "eslint": "^9.12.0",
28
+ "eslint": "^9.13.0",
29
+ "globals": "^15.11.0",
27
30
  "mocha": "^10.7.3"
28
31
  }
29
32
  }
package/.eslintrc.js DELETED
@@ -1,55 +0,0 @@
1
- module.exports = {
2
- 'env': {
3
- 'es6': true,
4
- 'node': true,
5
- 'mocha': true
6
- },
7
- 'parserOptions': {
8
- 'ecmaVersion': 2017,
9
- 'sourceType': 'module'
10
- },
11
- 'extends': 'eslint:recommended',
12
- 'rules': {
13
- 'indent': [
14
- 'error',
15
- 'tab'
16
- ],
17
- 'linebreak-style': [
18
- 'error',
19
- 'unix'
20
- ],
21
- 'quotes': [
22
- 'error',
23
- 'single'
24
- ],
25
- 'semi': [
26
- 'error',
27
- 'always'
28
- ],
29
- 'no-console': [
30
- 'error', {
31
- 'allow': [
32
- 'warn',
33
- 'error',
34
- 'info'
35
- ]
36
- }
37
- ],
38
- 'no-unused-vars': [
39
- 'error', {
40
- 'argsIgnorePattern': '^_'
41
- }
42
- ],
43
- 'no-empty': [
44
- 'error', {
45
- 'allowEmptyCatch': true
46
- }
47
- ],
48
- 'no-trailing-spaces': [
49
- 'error', {
50
- 'ignoreComments': true
51
- }
52
- ],
53
- 'require-atomic-updates': 'off'
54
- }
55
- };