@cargosense/eslint-config 2.0.0 → 3.0.0

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 (3) hide show
  1. package/README.md +1 -1
  2. package/index.js +4 -3
  3. package/package.json +8 -8
package/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  [![npm](https://img.shields.io/npm/v/@cargosense/eslint-config.svg?logo=npm&style=for-the-badge)](https://www.npmjs.com/package/@cargosense/eslint-config)
6
6
  [![Downloads](https://img.shields.io/npm/dt/@cargosense/eslint-config.svg?logo=npm&style=for-the-badge)](https://www.npmjs.com/package/@cargosense/eslint-config)
7
- [![Build](https://img.shields.io/github/actions/workflow/status/CargoSense/eslint-config/ci.yml?branch=main&logo=github&style=for-the-badge)](https://github.com/CargoSense/eslint-config/actions/workflows/ci.yml)
7
+ [![Build](https://img.shields.io/github/actions/workflow/status/CargoSense/eslint-config/ci.yml?logo=github&style=for-the-badge)](https://github.com/CargoSense/eslint-config/actions/workflows/ci.yml)
8
8
 
9
9
  ## Installation
10
10
 
package/index.js CHANGED
@@ -1,5 +1,4 @@
1
- import { cwd } from "node:process";
2
- import { resolve } from "node:path";
1
+ import { fileURLToPath } from "node:url";
3
2
 
4
3
  import { includeIgnoreFile } from "@eslint/compat";
5
4
  import js from "@eslint/js";
@@ -11,11 +10,13 @@ import n from "eslint-plugin-n";
11
10
  import regexp from "eslint-plugin-regexp";
12
11
  import sortClassMembers from "eslint-plugin-sort-class-members";
13
12
 
13
+ const gitignorePath = fileURLToPath(new URL(".gitignore", import.meta.url));
14
+
14
15
  export default [
15
16
  /**
16
17
  * @see {@link https://eslint.org/docs/latest/use/configure/ignore#including-gitignore-files}
17
18
  */
18
- includeIgnoreFile(resolve(cwd(), ".gitignore")),
19
+ includeIgnoreFile(gitignorePath),
19
20
 
20
21
  /**
21
22
  * @see {@link https://www.npmjs.com/package/@eslint/js}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name" :"@cargosense/eslint-config",
3
- "version": "2.0.0",
3
+ "version": "3.0.0",
4
4
  "description": "Shareable ESLint configuration.",
5
5
  "keywords": [
6
6
  "eslint-config",
@@ -23,20 +23,20 @@
23
23
  "test": "NODE_V8_COVERAGE=coverage node --experimental-test-coverage --test"
24
24
  },
25
25
  "dependencies": {
26
- "@eslint/compat": "^1.2.4",
27
- "@eslint/js": "^9.18.0",
28
- "@stylistic/eslint-plugin": "^2.13.0",
26
+ "@eslint/compat": "^1.2.8",
27
+ "@eslint/js": "^9.25.1",
28
+ "@stylistic/eslint-plugin": "^4.2.0",
29
29
  "eslint-plugin-array-func": "^5.0.2",
30
- "eslint-plugin-jsdoc": "^50.6.1",
31
- "eslint-plugin-n": "^17.15.1",
30
+ "eslint-plugin-jsdoc": "^50.6.11",
31
+ "eslint-plugin-n": "^17.17.0",
32
32
  "eslint-plugin-regexp": "^2.7.0",
33
33
  "eslint-plugin-sort-class-members": "^1.21.0"
34
34
  },
35
35
  "devDependencies": {
36
- "eslint": "^9.18.0"
36
+ "eslint": "^9.25.1"
37
37
  },
38
38
  "peerDependencies": {
39
- "eslint": ">=9.18"
39
+ "eslint": ">=9.25.1"
40
40
  },
41
41
  "engines": {
42
42
  "node": "^18.18.0 || ^20.9.0 || >=21.1.0"