eslint-config-decent 2.8.63 → 2.8.65

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.
@@ -1,6 +1,6 @@
1
- import type { TSESLint } from '@typescript-eslint/utils';
1
+ import type { Config } from '@eslint/config-helpers';
2
2
 
3
- const base: TSESLint.FlatConfig.Config = {
3
+ const base: Config = {
4
4
  rules: {
5
5
  'no-loss-of-precision': 'off',
6
6
  'no-loop-func': 'off',
package/src/unicorn.ts CHANGED
@@ -1,7 +1,7 @@
1
- import type { TSESLint } from '@typescript-eslint/utils';
1
+ import type { Config } from '@eslint/config-helpers';
2
2
  import unicorn from 'eslint-plugin-unicorn';
3
3
 
4
- const base: TSESLint.FlatConfig.Config = {
4
+ const base: Config = {
5
5
  plugins: {
6
6
  unicorn,
7
7
  },
package/src/vitest.ts CHANGED
@@ -1,9 +1,9 @@
1
- import type { TSESLint } from '@typescript-eslint/utils';
1
+ import type { Config, Plugin } from '@eslint/config-helpers';
2
2
  import vitest from '@vitest/eslint-plugin';
3
3
 
4
- const base: TSESLint.FlatConfig.Config = {
4
+ const base: Config = {
5
5
  plugins: {
6
- vitest,
6
+ vitest: vitest as unknown as Plugin,
7
7
  },
8
8
  rules: {
9
9
  ...vitest.configs.recommended.rules,
@@ -1,10 +0,0 @@
1
- declare module '@eslint/js' {
2
- import type { TSESLint } from '@typescript-eslint/utils';
3
-
4
- const value: TSESLint.FlatConfig.Plugin & {
5
- configs: {
6
- recommended: TSESLint.FlatConfig.Config;
7
- };
8
- };
9
- export default value;
10
- }