@jgarber/eslint-config 6.0.0 → 7.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 (4) hide show
  1. package/README.md +0 -12
  2. package/index.js +9 -0
  3. package/package.json +12 -16
  4. package/index.cjs +0 -24
package/README.md CHANGED
@@ -6,9 +6,6 @@
6
6
  [![Downloads](https://img.shields.io/npm/dt/@jgarber/eslint-config.svg?logo=npm&style=for-the-badge)](https://www.npmjs.com/package/@jgarber/eslint-config)
7
7
  [![Build](https://img.shields.io/github/actions/workflow/status/jgarber623/eslint-config/ci.yml?branch=main&logo=github&style=for-the-badge)](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
@@ -172,6 +172,15 @@ export default [
172
172
  */
173
173
  "jsdoc/tag-lines": ["warn", "any", { startLines: 1 }],
174
174
 
175
+ /*
176
+ * Disallow unsupported Node.js built-in APIs on the specified version .
177
+ *
178
+ * @see {@link https://github.com/eslint-community/eslint-plugin-n/blob/master/docs/rules/no-unsupported-features/node-builtins.md}
179
+ */
180
+ "n/no-unsupported-features/node-builtins": ["error", {
181
+ allowExperimental: true,
182
+ }],
183
+
175
184
  /**
176
185
  * Disallow unused variables.
177
186
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jgarber/eslint-config",
3
- "version": "6.0.0",
3
+ "version": "7.0.0",
4
4
  "description": "Shareable ESLint configuration.",
5
5
  "keywords": [
6
6
  "config",
@@ -16,33 +16,29 @@
16
16
  "license": "MIT",
17
17
  "author": "Jason Garber <jason@sixtwothree.org> (https://sixtwothree.org)",
18
18
  "files": [
19
- "index.cjs",
20
19
  "index.js"
21
20
  ],
22
21
  "type": "module",
23
- "exports": {
24
- "import": "./index.js",
25
- "require": "./index.cjs"
26
- },
27
22
  "repository": "github:jgarber623/eslint-config",
23
+ "exports": "./index.js",
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/js": "^9.6.0",
34
- "@stylistic/eslint-plugin": "^2.6.0-beta.0",
35
- "eslint-plugin-array-func": "^5.0.1",
36
- "eslint-plugin-jsdoc": "^48.5.0",
37
- "eslint-plugin-n": "^17.9.0",
38
- "eslint-plugin-regexp": "^2.6.0",
39
- "eslint-plugin-sort-class-members": "^1.20.0"
29
+ "@eslint/js": "^9.17.0",
30
+ "@stylistic/eslint-plugin": "^2.12.1",
31
+ "eslint-plugin-array-func": "^5.0.2",
32
+ "eslint-plugin-jsdoc": "^50.6.1",
33
+ "eslint-plugin-n": "^17.15.1",
34
+ "eslint-plugin-regexp": "^2.7.0",
35
+ "eslint-plugin-sort-class-members": "^1.21.0"
40
36
  },
41
37
  "devDependencies": {
42
- "eslint": "^9.6.0"
38
+ "eslint": "^9.17.0"
43
39
  },
44
40
  "peerDependencies": {
45
- "eslint": ">=9.6.0"
41
+ "eslint": ">=9.17.0"
46
42
  },
47
43
  "engines": {
48
44
  "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
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
- })();