43 lines
1.3 KiB
TypeScript
43 lines
1.3 KiB
TypeScript
import pluginQuery from '@tanstack/eslint-plugin-query';
|
|
// @ts-expect-error fix package
|
|
import config from 'eslint-config-ksv741';
|
|
import perfectionist from 'eslint-plugin-perfectionist';
|
|
|
|
// eslint-disable-next-line import/no-anonymous-default-export
|
|
export default [
|
|
...pluginQuery.configs['flat/recommended'],
|
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
...config,
|
|
{
|
|
rules: {
|
|
'@stylistic/jsx-sort-props': 'off',
|
|
'@typescript-eslint/no-floating-promises': 'off',
|
|
'@typescript-eslint/sort-type-constituents': 'off',
|
|
'@typescript-eslint/strict-boolean-expressions': 'off',
|
|
'func-style': 'off',
|
|
'import/no-extraneous-dependencies': ['error', {
|
|
devDependencies: [
|
|
'eslint.config.ts',
|
|
'rsbuild.config.ts',
|
|
'configs/**/*',
|
|
'**/*.test.js',
|
|
'**/*.test.jsx',
|
|
'**/*.test.ts',
|
|
'**/*.test.tsx',
|
|
'**/__tests__/**',
|
|
'**/tests/**',
|
|
'__mocks__/**',
|
|
],
|
|
}],
|
|
'import/order': 'off',
|
|
'jsx-a11y/click-events-have-key-events': 'off',
|
|
'jsx-a11y/no-noninteractive-element-interactions': 'off',
|
|
'jsx-a11y/no-static-element-interactions': 'off',
|
|
},
|
|
},
|
|
perfectionist.configs['recommended-natural'],
|
|
{
|
|
ignores: ['./src/shared/api/schema.ts'],
|
|
},
|
|
];
|