@jgarber/eslint-config 6.1.0 → 8.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.
- package/README.md +0 -12
- package/index.js +8 -0
- package/package.json +18 -20
- package/index.cjs +0 -24
package/README.md
CHANGED
|
@@ -6,9 +6,6 @@
|
|
|
6
6
|
[](https://www.npmjs.com/package/@jgarber/eslint-config)
|
|
7
7
|
[](https://github.com/jgarber623/eslint-config/actions/workflows/ci.yml)
|
|
8
8
|
|
|
9
|
-
> [!IMPORTANT]\
|
|
10
|
-
> This shareable configuration uses ESLint's new "flat" configuration file format, which may not be suitable for every project. See [the official documentation](https://eslint.org/docs/latest/use/configure/configuration-files-new) for details.
|
|
11
|
-
|
|
12
9
|
## Installation
|
|
13
10
|
|
|
14
11
|
```sh
|
|
@@ -17,20 +14,11 @@ npm install --save-dev @jgarber/eslint-config
|
|
|
17
14
|
|
|
18
15
|
## Usage
|
|
19
16
|
|
|
20
|
-
Using [ECMAScript module (ESM)](https://nodejs.org/api/esm.html) syntax:
|
|
21
|
-
|
|
22
17
|
```js
|
|
23
18
|
// eslint.config.js
|
|
24
19
|
export { default } from "@jgarber/eslint-config";
|
|
25
20
|
```
|
|
26
21
|
|
|
27
|
-
Using [CommonJS module](https://nodejs.org/api/modules.html) syntax:
|
|
28
|
-
|
|
29
|
-
```js
|
|
30
|
-
// eslint.config.js
|
|
31
|
-
module.exports = (async () => await require("@jgarber/eslint-config"))();
|
|
32
|
-
```
|
|
33
|
-
|
|
34
22
|
## License
|
|
35
23
|
|
|
36
24
|
@jgarber/eslint-config is freely available under the [MIT License](https://opensource.org/licenses/MIT).
|
package/index.js
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import path from "node:path";
|
|
2
|
+
|
|
3
|
+
import { includeIgnoreFile } from "@eslint/compat";
|
|
1
4
|
import js from "@eslint/js";
|
|
2
5
|
import stylistic from "@stylistic/eslint-plugin";
|
|
3
6
|
|
|
@@ -8,6 +11,11 @@ import regexp from "eslint-plugin-regexp";
|
|
|
8
11
|
import sortClassMembers from "eslint-plugin-sort-class-members";
|
|
9
12
|
|
|
10
13
|
export default [
|
|
14
|
+
/**
|
|
15
|
+
* @see {@link https://eslint.org/docs/latest/use/configure/ignore#including-gitignore-files}
|
|
16
|
+
*/
|
|
17
|
+
includeIgnoreFile(path.resolve(import.meta.dirname, ".gitignore")),
|
|
18
|
+
|
|
11
19
|
/**
|
|
12
20
|
* @see {@link https://www.npmjs.com/package/eslint-plugin-jsdoc}
|
|
13
21
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jgarber/eslint-config",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "8.0.0",
|
|
4
4
|
"description": "Shareable ESLint configuration.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"config",
|
|
@@ -15,39 +15,37 @@
|
|
|
15
15
|
"bugs": "https://github.com/jgarber623/eslint-config/issues",
|
|
16
16
|
"license": "MIT",
|
|
17
17
|
"author": "Jason Garber <jason@sixtwothree.org> (https://sixtwothree.org)",
|
|
18
|
+
"type": "module",
|
|
18
19
|
"files": [
|
|
19
|
-
"index.cjs",
|
|
20
20
|
"index.js"
|
|
21
21
|
],
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"import": "./index.js",
|
|
25
|
-
"require": "./index.cjs"
|
|
26
|
-
},
|
|
27
|
-
"repository": "github:jgarber623/eslint-config",
|
|
22
|
+
"exports": "./index.js",
|
|
23
|
+
"repository": "https://github.com/jgarber623/eslint-config",
|
|
28
24
|
"scripts": {
|
|
29
|
-
"lint": "eslint .",
|
|
25
|
+
"lint": "npx eslint .",
|
|
30
26
|
"test": "NODE_V8_COVERAGE=coverage node --experimental-test-coverage --test"
|
|
31
27
|
},
|
|
32
28
|
"dependencies": {
|
|
33
|
-
"@eslint/
|
|
34
|
-
"@
|
|
35
|
-
"eslint-plugin
|
|
36
|
-
"eslint-plugin-
|
|
37
|
-
"eslint-plugin-
|
|
38
|
-
"eslint-plugin-
|
|
39
|
-
"eslint-plugin-
|
|
29
|
+
"@eslint/compat": "^1.2.4",
|
|
30
|
+
"@eslint/js": "^9.17.0",
|
|
31
|
+
"@stylistic/eslint-plugin": "^2.12.1",
|
|
32
|
+
"eslint-plugin-array-func": "^5.0.2",
|
|
33
|
+
"eslint-plugin-jsdoc": "^50.6.1",
|
|
34
|
+
"eslint-plugin-n": "^17.15.1",
|
|
35
|
+
"eslint-plugin-regexp": "^2.7.0",
|
|
36
|
+
"eslint-plugin-sort-class-members": "^1.21.0"
|
|
40
37
|
},
|
|
41
38
|
"devDependencies": {
|
|
42
|
-
"eslint": "^9.
|
|
39
|
+
"eslint": "^9.17.0"
|
|
43
40
|
},
|
|
44
41
|
"peerDependencies": {
|
|
45
|
-
"eslint": ">=9.
|
|
42
|
+
"eslint": ">=9.17.0"
|
|
46
43
|
},
|
|
47
44
|
"engines": {
|
|
48
|
-
"node": "^
|
|
45
|
+
"node": "^20.11.0 || >=21.2.0"
|
|
49
46
|
},
|
|
50
47
|
"publishConfig": {
|
|
51
|
-
"access": "public"
|
|
48
|
+
"access": "public",
|
|
49
|
+
"provenance": true
|
|
52
50
|
}
|
|
53
51
|
}
|
package/index.cjs
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
module.exports = (async () => {
|
|
2
|
-
const { default: eslintConfig } = await import("./index.js");
|
|
3
|
-
|
|
4
|
-
return [
|
|
5
|
-
...eslintConfig,
|
|
6
|
-
{
|
|
7
|
-
languageOptions: {
|
|
8
|
-
/**
|
|
9
|
-
* @see {@link https://www.npmjs.com/package/globals}
|
|
10
|
-
* @see {@link https://github.com/sindresorhus/globals/blob/main/globals.json}
|
|
11
|
-
*/
|
|
12
|
-
globals: {
|
|
13
|
-
__dirname: "readonly",
|
|
14
|
-
__filename: "readonly",
|
|
15
|
-
exports: "writable",
|
|
16
|
-
global: "readonly",
|
|
17
|
-
module: "readonly",
|
|
18
|
-
require: "readonly",
|
|
19
|
-
},
|
|
20
|
-
sourceType: "commonjs",
|
|
21
|
-
},
|
|
22
|
-
},
|
|
23
|
-
];
|
|
24
|
-
})();
|