eslint-config-nick2bad4u 1.0.2 → 1.0.4

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 CHANGED
@@ -36,6 +36,14 @@ export default [
36
36
  ];
37
37
  ```
38
38
 
39
+ If you prefer named imports, use `presets` (not `configs`):
40
+
41
+ ```js
42
+ import { presets } from "eslint-config-nick2bad4u";
43
+
44
+ export default [...presets.all];
45
+ ```
46
+
39
47
  Available presets:
40
48
 
41
49
  - `nick2bad4u.configs.all` - full shared config, including packaged Typefest and Etc-Misc source rules.
package/eslint.config.mjs CHANGED
@@ -2571,7 +2571,7 @@ export const createConfig = (options = {}) => {
2571
2571
  "html/no-aria-hidden-on-focusable": "warn",
2572
2572
  "html/no-duplicate-class": "warn",
2573
2573
  "html/no-empty-headings": "warn",
2574
- "html/no-extra-spacing-attrs": [
2574
+ "html/no-extra-spacing-tags": [
2575
2575
  "error",
2576
2576
  { enforceBeforeSelfClose: true },
2577
2577
  ],
@@ -3446,26 +3446,31 @@ export const configs = Object.freeze({
3446
3446
  }),
3447
3447
  withoutFileProgress2: createConfig({
3448
3448
  plugins: {
3449
+ "file-progress": false,
3449
3450
  "file-progress-2": false,
3450
3451
  },
3451
3452
  }),
3452
3453
  withoutGithubActions2: createConfig({
3453
3454
  plugins: {
3455
+ "github-actions": false,
3454
3456
  "github-actions-2": false,
3455
3457
  },
3456
3458
  }),
3457
3459
  withoutImmutable2: createConfig({
3458
3460
  plugins: {
3461
+ immutable: false,
3459
3462
  "immutable-2": false,
3460
3463
  },
3461
3464
  }),
3462
3465
  withoutRepo: createConfig({
3463
3466
  plugins: {
3464
3467
  repo: false,
3468
+ "repo-compliance": false,
3465
3469
  },
3466
3470
  }),
3467
3471
  withoutSdl2: createConfig({
3468
3472
  plugins: {
3473
+ sdl: false,
3469
3474
  "sdl-2": false,
3470
3475
  },
3471
3476
  }),
@@ -3506,6 +3511,7 @@ export const configs = Object.freeze({
3506
3511
  }),
3507
3512
  withoutWriteGoodComments2: createConfig({
3508
3513
  plugins: {
3514
+ "write-good-comments": false,
3509
3515
  "write-good-comments-2": false,
3510
3516
  },
3511
3517
  }),
package/index.d.ts CHANGED
@@ -96,7 +96,7 @@ export declare const createConfig: (
96
96
  ) => Linter.Config[];
97
97
 
98
98
  /** Shared flat config presets. */
99
- export declare const configs: Nick2Bad4UEslintConfigPresets;
99
+ export declare const presets: Nick2Bad4UEslintConfigPresets;
100
100
 
101
101
  declare const nickTwoBadFourU: {
102
102
  readonly configs: Nick2Bad4UEslintConfigPresets;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://www.schemastore.org/package.json",
3
3
  "name": "eslint-config-nick2bad4u",
4
- "version": "1.0.2",
4
+ "version": "1.0.4",
5
5
  "private": false,
6
6
  "description": "Shared flat ESLint config for Nick2bad4u ESLint plugin projects.",
7
7
  "keywords": [
package/preset.mjs CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  configs as sharedConfigs,
4
4
  } from "./eslint.config.mjs";
5
5
 
6
- export const configs = Object.freeze({
6
+ export const presets = Object.freeze({
7
7
  all: sharedConfigs.all,
8
8
  base: sharedConfigs.base,
9
9
  recommended: sharedConfigs.recommended,
@@ -35,7 +35,7 @@ export const configs = Object.freeze({
35
35
  export const createConfig = (options) => createSharedConfig(options);
36
36
 
37
37
  const nickTwoBadFourU = Object.freeze({
38
- configs,
38
+ configs: presets,
39
39
  createConfig,
40
40
  });
41
41