@cargosense/eslint-config 1.4.0 → 2.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 (2) hide show
  1. package/index.js +9 -0
  2. package/package.json +15 -16
package/index.js CHANGED
@@ -1,3 +1,7 @@
1
+ import { cwd } from "node:process";
2
+ import { resolve } from "node:path";
3
+
4
+ import { includeIgnoreFile } from "@eslint/compat";
1
5
  import js from "@eslint/js";
2
6
  import stylistic from "@stylistic/eslint-plugin";
3
7
 
@@ -8,6 +12,11 @@ import regexp from "eslint-plugin-regexp";
8
12
  import sortClassMembers from "eslint-plugin-sort-class-members";
9
13
 
10
14
  export default [
15
+ /**
16
+ * @see {@link https://eslint.org/docs/latest/use/configure/ignore#including-gitignore-files}
17
+ */
18
+ includeIgnoreFile(resolve(cwd(), ".gitignore")),
19
+
11
20
  /**
12
21
  * @see {@link https://www.npmjs.com/package/@eslint/js}
13
22
  * @see {@link https://eslint.org/docs/latest/rules/}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name" :"@cargosense/eslint-config",
3
- "version": "1.4.0",
3
+ "version": "2.0.0",
4
4
  "description": "Shareable ESLint configuration.",
5
5
  "keywords": [
6
6
  "eslint-config",
@@ -12,38 +12,37 @@
12
12
  "bugs": "https://github.com/CargoSense/eslint-config/issues",
13
13
  "license": "MIT",
14
14
  "author": "CargoSense <npm@cargosense.com> (https://www.cargosense.com)",
15
+ "type": "module",
15
16
  "files": [
16
17
  "index.js"
17
18
  ],
18
- "type": "module",
19
- "exports": {
20
- "./package.json": "./package.json",
21
- ".": "./index.js"
22
- },
23
- "repository": "github:CargoSense/eslint-config",
19
+ "exports": "./index.js",
20
+ "repository": "https://github.com/CargoSense/eslint-config",
24
21
  "scripts": {
25
22
  "lint": "npx eslint",
26
23
  "test": "NODE_V8_COVERAGE=coverage node --experimental-test-coverage --test"
27
24
  },
28
25
  "dependencies": {
29
- "@eslint/js": "^9.9.1",
30
- "@stylistic/eslint-plugin": "^2.7.2",
26
+ "@eslint/compat": "^1.2.4",
27
+ "@eslint/js": "^9.18.0",
28
+ "@stylistic/eslint-plugin": "^2.13.0",
31
29
  "eslint-plugin-array-func": "^5.0.2",
32
- "eslint-plugin-jsdoc": "^48.11.0",
33
- "eslint-plugin-n": "^17.10.2",
34
- "eslint-plugin-regexp": "^2.6.0",
35
- "eslint-plugin-sort-class-members": "^1.20.0"
30
+ "eslint-plugin-jsdoc": "^50.6.1",
31
+ "eslint-plugin-n": "^17.15.1",
32
+ "eslint-plugin-regexp": "^2.7.0",
33
+ "eslint-plugin-sort-class-members": "^1.21.0"
36
34
  },
37
35
  "devDependencies": {
38
- "eslint": "^9.9.1"
36
+ "eslint": "^9.18.0"
39
37
  },
40
38
  "peerDependencies": {
41
- "eslint": ">=9"
39
+ "eslint": ">=9.18"
42
40
  },
43
41
  "engines": {
44
42
  "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
45
43
  },
46
44
  "publishConfig": {
47
- "access": "public"
45
+ "access": "public",
46
+ "provenance": true
48
47
  }
49
48
  }