eslint-config-decent 2.0.1 → 2.0.2

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/dist/index.cjs CHANGED
@@ -11,6 +11,7 @@ const importPlugin = require('eslint-plugin-import-x');
11
11
  const jsdoc = require('eslint-plugin-jsdoc');
12
12
  const mocha = require('eslint-plugin-mocha');
13
13
  const promise = require('eslint-plugin-promise');
14
+ const compat = require('@eslint/compat');
14
15
  const a11y = require('eslint-plugin-jsx-a11y');
15
16
  const react = require('eslint-plugin-react');
16
17
  const reactHooks = require('eslint-plugin-react-hooks');
@@ -505,7 +506,7 @@ const base$3 = {
505
506
  "jsx-a11y": a11y__default,
506
507
  react: react__default,
507
508
  "react-hooks": reactHooks__default,
508
- "testing-library": testingLibrary__default
509
+ "testing-library": compat.fixupPluginRules(testingLibrary__default)
509
510
  },
510
511
  rules: {
511
512
  ...a11y__default.configs.recommended.rules,
package/dist/index.mjs CHANGED
@@ -9,6 +9,7 @@ import importPlugin from 'eslint-plugin-import-x';
9
9
  import jsdoc from 'eslint-plugin-jsdoc';
10
10
  import mocha from 'eslint-plugin-mocha';
11
11
  import promise from 'eslint-plugin-promise';
12
+ import { fixupPluginRules } from '@eslint/compat';
12
13
  import a11y from 'eslint-plugin-jsx-a11y';
13
14
  import react from 'eslint-plugin-react';
14
15
  import reactHooks from 'eslint-plugin-react-hooks';
@@ -486,7 +487,7 @@ const base$3 = {
486
487
  "jsx-a11y": a11y,
487
488
  react,
488
489
  "react-hooks": reactHooks,
489
- "testing-library": testingLibrary
490
+ "testing-library": fixupPluginRules(testingLibrary)
490
491
  },
491
492
  rules: {
492
493
  ...a11y.configs.recommended.rules,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-decent",
3
- "version": "2.0.1",
3
+ "version": "2.0.2",
4
4
  "description": "A decent ESLint configuration",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",
@@ -72,6 +72,7 @@
72
72
  "node": ">=20.11.0"
73
73
  },
74
74
  "dependencies": {
75
+ "@eslint/compat": "1.1.1",
75
76
  "@eslint/js": "^9.8.0",
76
77
  "@typescript-eslint/utils": "8.0.0",
77
78
  "eslint-config-prettier": "^9.1.0",
package/src/react.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import { fixupPluginRules } from '@eslint/compat';
1
2
  import type { TSESLint } from '@typescript-eslint/utils';
2
3
  import a11y from 'eslint-plugin-jsx-a11y';
3
4
  import react from 'eslint-plugin-react';
@@ -9,7 +10,7 @@ const base: TSESLint.FlatConfig.Config = {
9
10
  'jsx-a11y': a11y,
10
11
  react,
11
12
  'react-hooks': reactHooks,
12
- 'testing-library': testingLibrary,
13
+ 'testing-library': fixupPluginRules(testingLibrary) as typeof testingLibrary,
13
14
  },
14
15
  rules: {
15
16
  ...a11y.configs.recommended.rules,