mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-11-01 16:37:48 +03:00
Update
This commit is contained in:
parent
2a944c6e23
commit
05527916ad
|
|
@ -1,4 +1,5 @@
|
||||||
|
import { defineConfig } from 'eslint/config';
|
||||||
import eslint from '@eslint/js';
|
import eslint from '@eslint/js';
|
||||||
import eslintConfigPrettier from 'eslint-config-prettier';
|
import eslintConfigPrettier from 'eslint-config-prettier';
|
||||||
|
|
||||||
export default [eslint.configs.recommended, eslintConfigPrettier];
|
export default defineConfig([eslint.configs.recommended, eslintConfigPrettier]);
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,11 @@
|
||||||
|
import { defineConfig } from 'eslint/config';
|
||||||
import eslint from '@eslint/js';
|
import eslint from '@eslint/js';
|
||||||
import react from 'eslint-plugin-react';
|
import react from 'eslint-plugin-react';
|
||||||
import { fixupPluginRules } from '@eslint/compat';
|
import reactHooks from 'eslint-plugin-react-hooks';
|
||||||
import eslintPluginReactHooks from 'eslint-plugin-react-hooks';
|
|
||||||
import jest from 'eslint-plugin-jest';
|
import jest from 'eslint-plugin-jest';
|
||||||
import eslintConfigPrettier from 'eslint-config-prettier';
|
import eslintConfigPrettier from 'eslint-config-prettier';
|
||||||
|
|
||||||
export default [
|
export default defineConfig([
|
||||||
{
|
{
|
||||||
files: ['test/**/*.js', 'test/**/*.jsx'],
|
files: ['test/**/*.js', 'test/**/*.jsx'],
|
||||||
...eslint.configs.recommended,
|
...eslint.configs.recommended,
|
||||||
|
|
@ -25,8 +25,9 @@ export default [
|
||||||
{
|
{
|
||||||
files: ['test/**/*.js', 'test/**/*.jsx'],
|
files: ['test/**/*.js', 'test/**/*.jsx'],
|
||||||
plugins: {
|
plugins: {
|
||||||
'react-hooks': fixupPluginRules(eslintPluginReactHooks),
|
'react-hooks': reactHooks,
|
||||||
},
|
},
|
||||||
|
extends: ['react-hooks/recommended'],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
files: ['test/**/*.js', 'test/**/*.jsx'],
|
files: ['test/**/*.js', 'test/**/*.jsx'],
|
||||||
|
|
@ -40,4 +41,4 @@ export default [
|
||||||
files: ['test/**/*.js', 'test/**/*.jsx'],
|
files: ['test/**/*.js', 'test/**/*.jsx'],
|
||||||
...eslintConfigPrettier,
|
...eslintConfigPrettier,
|
||||||
},
|
},
|
||||||
];
|
]);
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,10 @@
|
||||||
|
import { defineConfig } from 'eslint/config';
|
||||||
import eslint from '@eslint/js';
|
import eslint from '@eslint/js';
|
||||||
import tseslint from 'typescript-eslint';
|
import tseslint from 'typescript-eslint';
|
||||||
import eslintConfigPrettier from 'eslint-config-prettier';
|
import eslintConfigPrettier from 'eslint-config-prettier';
|
||||||
|
|
||||||
export default (tsconfigRootDir, files = ['**/*.ts'], project = true) => [
|
export default (tsconfigRootDir, files = ['**/*.ts'], project = true) =>
|
||||||
|
defineConfig([
|
||||||
{
|
{
|
||||||
files,
|
files,
|
||||||
...eslint.configs.recommended,
|
...eslint.configs.recommended,
|
||||||
|
|
@ -52,4 +54,4 @@ export default (tsconfigRootDir, files = ['**/*.ts'], project = true) => [
|
||||||
'@typescript-eslint/prefer-function-type': 'off',
|
'@typescript-eslint/prefer-function-type': 'off',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
];
|
]);
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,11 @@
|
||||||
|
import { defineConfig } from 'eslint/config';
|
||||||
import eslint from '@eslint/js';
|
import eslint from '@eslint/js';
|
||||||
import tseslint from 'typescript-eslint';
|
import tseslint from 'typescript-eslint';
|
||||||
import jest from 'eslint-plugin-jest';
|
import jest from 'eslint-plugin-jest';
|
||||||
import eslintConfigPrettier from 'eslint-config-prettier';
|
import eslintConfigPrettier from 'eslint-config-prettier';
|
||||||
|
|
||||||
export default (tsconfigRootDir) => [
|
export default (tsconfigRootDir) =>
|
||||||
|
defineConfig([
|
||||||
{
|
{
|
||||||
files: ['test/**/*.ts'],
|
files: ['test/**/*.ts'],
|
||||||
...eslint.configs.recommended,
|
...eslint.configs.recommended,
|
||||||
|
|
@ -61,4 +63,4 @@ export default (tsconfigRootDir) => [
|
||||||
'@typescript-eslint/prefer-function-type': 'off',
|
'@typescript-eslint/prefer-function-type': 'off',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
];
|
]);
|
||||||
|
|
|
||||||
|
|
@ -1,15 +1,16 @@
|
||||||
|
import { defineConfig } from 'eslint/config';
|
||||||
import eslint from '@eslint/js';
|
import eslint from '@eslint/js';
|
||||||
import tseslint from 'typescript-eslint';
|
import tseslint from 'typescript-eslint';
|
||||||
import react from 'eslint-plugin-react';
|
import react from 'eslint-plugin-react';
|
||||||
import { fixupPluginRules } from '@eslint/compat';
|
import reactHooks from 'eslint-plugin-react-hooks';
|
||||||
import eslintPluginReactHooks from 'eslint-plugin-react-hooks';
|
|
||||||
import eslintConfigPrettier from 'eslint-config-prettier';
|
import eslintConfigPrettier from 'eslint-config-prettier';
|
||||||
|
|
||||||
export default (
|
export default (
|
||||||
tsconfigRootDir,
|
tsconfigRootDir,
|
||||||
files = ['**/*.ts', '**/*.tsx'],
|
files = ['**/*.ts', '**/*.tsx'],
|
||||||
project = true,
|
project = true,
|
||||||
) => [
|
) =>
|
||||||
|
defineConfig([
|
||||||
{
|
{
|
||||||
files,
|
files,
|
||||||
...eslint.configs.recommended,
|
...eslint.configs.recommended,
|
||||||
|
|
@ -46,8 +47,9 @@ export default (
|
||||||
{
|
{
|
||||||
files,
|
files,
|
||||||
plugins: {
|
plugins: {
|
||||||
'react-hooks': fixupPluginRules(eslintPluginReactHooks),
|
'react-hooks': reactHooks,
|
||||||
},
|
},
|
||||||
|
extends: ['react-hooks/recommended-latest'],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
files,
|
files,
|
||||||
|
|
@ -86,4 +88,4 @@ export default (
|
||||||
'react/prop-types': 'off',
|
'react/prop-types': 'off',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
];
|
]);
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,13 @@
|
||||||
|
import { defineConfig } from 'eslint/config';
|
||||||
import eslint from '@eslint/js';
|
import eslint from '@eslint/js';
|
||||||
import tseslint from 'typescript-eslint';
|
import tseslint from 'typescript-eslint';
|
||||||
import react from 'eslint-plugin-react';
|
import react from 'eslint-plugin-react';
|
||||||
import { fixupPluginRules } from '@eslint/compat';
|
import reactHooks from 'eslint-plugin-react-hooks';
|
||||||
import eslintPluginReactHooks from 'eslint-plugin-react-hooks';
|
|
||||||
import jest from 'eslint-plugin-jest';
|
import jest from 'eslint-plugin-jest';
|
||||||
import eslintConfigPrettier from 'eslint-config-prettier';
|
import eslintConfigPrettier from 'eslint-config-prettier';
|
||||||
|
|
||||||
export default (tsconfigRootDir) => [
|
export default (tsconfigRootDir) =>
|
||||||
|
defineConfig([
|
||||||
{
|
{
|
||||||
files: ['test/**/*.ts', 'test/**/*.tsx'],
|
files: ['test/**/*.ts', 'test/**/*.tsx'],
|
||||||
...eslint.configs.recommended,
|
...eslint.configs.recommended,
|
||||||
|
|
@ -43,8 +44,9 @@ export default (tsconfigRootDir) => [
|
||||||
{
|
{
|
||||||
files: ['test/**/*.ts', 'test/**/*.tsx'],
|
files: ['test/**/*.ts', 'test/**/*.tsx'],
|
||||||
plugins: {
|
plugins: {
|
||||||
'react-hooks': fixupPluginRules(eslintPluginReactHooks),
|
'react-hooks': reactHooks,
|
||||||
},
|
},
|
||||||
|
extends: ['react-hooks/recommended-latest'],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
files: ['test/**/*.ts', 'test/**/*.tsx'],
|
files: ['test/**/*.ts', 'test/**/*.tsx'],
|
||||||
|
|
@ -82,4 +84,4 @@ export default (tsconfigRootDir) => [
|
||||||
'@typescript-eslint/prefer-function-type': 'off',
|
'@typescript-eslint/prefer-function-type': 'off',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
];
|
]);
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/core": "^7.28.4",
|
"@babel/core": "^7.28.4",
|
||||||
"@changesets/cli": "^2.29.7",
|
"@changesets/cli": "^2.29.7",
|
||||||
"@eslint/compat": "^1.4.0",
|
|
||||||
"@eslint/js": "^9.37.0",
|
"@eslint/js": "^9.37.0",
|
||||||
"eslint": "^9.37.0",
|
"eslint": "^9.37.0",
|
||||||
"eslint-config-prettier": "^10.1.8",
|
"eslint-config-prettier": "^10.1.8",
|
||||||
|
|
|
||||||
|
|
@ -25,9 +25,6 @@ importers:
|
||||||
'@changesets/cli':
|
'@changesets/cli':
|
||||||
specifier: ^2.29.7
|
specifier: ^2.29.7
|
||||||
version: 2.29.7(@types/node@22.18.10)
|
version: 2.29.7(@types/node@22.18.10)
|
||||||
'@eslint/compat':
|
|
||||||
specifier: ^1.4.0
|
|
||||||
version: 1.4.0(eslint@9.37.0)
|
|
||||||
'@eslint/js':
|
'@eslint/js':
|
||||||
specifier: ^9.37.0
|
specifier: ^9.37.0
|
||||||
version: 9.37.0
|
version: 9.37.0
|
||||||
|
|
@ -3862,15 +3859,6 @@ packages:
|
||||||
resolution: {integrity: sha512-CCZCDJuduB9OUkFkY2IgppNZMi2lBQgD2qzwXkEia16cge2pijY/aXi96CJMquDMn3nJdlPV1A5KrJEXwfLNzQ==}
|
resolution: {integrity: sha512-CCZCDJuduB9OUkFkY2IgppNZMi2lBQgD2qzwXkEia16cge2pijY/aXi96CJMquDMn3nJdlPV1A5KrJEXwfLNzQ==}
|
||||||
engines: {node: ^12.0.0 || ^14.0.0 || >=16.0.0}
|
engines: {node: ^12.0.0 || ^14.0.0 || >=16.0.0}
|
||||||
|
|
||||||
'@eslint/compat@1.4.0':
|
|
||||||
resolution: {integrity: sha512-DEzm5dKeDBPm3r08Ixli/0cmxr8LkRdwxMRUIJBlSCpAwSrvFEJpVBzV+66JhDxiaqKxnRzCXhtiMiczF7Hglg==}
|
|
||||||
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
|
|
||||||
peerDependencies:
|
|
||||||
eslint: ^8.40 || 9
|
|
||||||
peerDependenciesMeta:
|
|
||||||
eslint:
|
|
||||||
optional: true
|
|
||||||
|
|
||||||
'@eslint/config-array@0.21.0':
|
'@eslint/config-array@0.21.0':
|
||||||
resolution: {integrity: sha512-ENIdc4iLu0d93HeYirvKmrzshzofPw6VkZRKQGe9Nv46ZnWUzcF1xV01dcvEg/1wXUR61OmmlSfyeyO7EvjLxQ==}
|
resolution: {integrity: sha512-ENIdc4iLu0d93HeYirvKmrzshzofPw6VkZRKQGe9Nv46ZnWUzcF1xV01dcvEg/1wXUR61OmmlSfyeyO7EvjLxQ==}
|
||||||
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
|
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
|
||||||
|
|
@ -11846,12 +11834,6 @@ snapshots:
|
||||||
|
|
||||||
'@eslint-community/regexpp@4.12.1': {}
|
'@eslint-community/regexpp@4.12.1': {}
|
||||||
|
|
||||||
'@eslint/compat@1.4.0(eslint@9.37.0)':
|
|
||||||
dependencies:
|
|
||||||
'@eslint/core': 0.16.0
|
|
||||||
optionalDependencies:
|
|
||||||
eslint: 9.37.0
|
|
||||||
|
|
||||||
'@eslint/config-array@0.21.0':
|
'@eslint/config-array@0.21.0':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@eslint/object-schema': 2.1.6
|
'@eslint/object-schema': 2.1.6
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user