mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2024-12-04 23:43:51 +03:00
44 lines
1.0 KiB
JavaScript
44 lines
1.0 KiB
JavaScript
|
import eslint from '@eslint/js';
|
||
|
import react from 'eslint-plugin-react';
|
||
|
import { fixupPluginRules } from '@eslint/compat';
|
||
|
import eslintPluginReactHooks from 'eslint-plugin-react-hooks';
|
||
|
import jest from 'eslint-plugin-jest';
|
||
|
import eslintConfigPrettier from 'eslint-config-prettier';
|
||
|
|
||
|
export default [
|
||
|
{
|
||
|
files: ['test/**/*.js', 'test/**/*.jsx'],
|
||
|
...eslint.configs.recommended,
|
||
|
},
|
||
|
{
|
||
|
files: ['test/**/*.js', 'test/**/*.jsx'],
|
||
|
...react.configs.flat.recommended,
|
||
|
},
|
||
|
{
|
||
|
files: ['test/**/*.js', 'test/**/*.jsx'],
|
||
|
settings: {
|
||
|
react: {
|
||
|
version: 'detect',
|
||
|
},
|
||
|
},
|
||
|
},
|
||
|
{
|
||
|
files: ['test/**/*.js', 'test/**/*.jsx'],
|
||
|
plugins: {
|
||
|
'react-hooks': fixupPluginRules(eslintPluginReactHooks),
|
||
|
},
|
||
|
},
|
||
|
{
|
||
|
files: ['test/**/*.js', 'test/**/*.jsx'],
|
||
|
...jest.configs['flat/recommended'],
|
||
|
},
|
||
|
{
|
||
|
files: ['test/**/*.js', 'test/**/*.jsx'],
|
||
|
...jest.configs['jest/style'],
|
||
|
},
|
||
|
{
|
||
|
files: ['test/**/*.js', 'test/**/*.jsx'],
|
||
|
...eslintConfigPrettier,
|
||
|
},
|
||
|
];
|