Bump
This commit is contained in:
12
src/presets/testing-library.ts
Normal file
12
src/presets/testing-library.ts
Normal file
@ -0,0 +1,12 @@
|
||||
import type { Middleware } from '../index';
|
||||
import { TestingLibraryRulesObject } from '@aet/eslint-define-config/src/rules/testing-library';
|
||||
|
||||
const testingLibraryRules: Partial<TestingLibraryRulesObject> = {};
|
||||
|
||||
export const testingLibrary: Middleware = (config, { addRules }) => {
|
||||
config.overrides.push({
|
||||
files: ['**/*.(spec|test).{ts,tsx}'],
|
||||
plugins: ['plugin:testing-library/react'],
|
||||
});
|
||||
addRules(testingLibraryRules);
|
||||
};
|
@ -19,7 +19,6 @@ const typescriptRules: Partial<TypeScriptRulesObject> = {
|
||||
'ts-nocheck': 'allow-with-description',
|
||||
},
|
||||
],
|
||||
'@typescript-eslint/ban-types': [error, { extendDefaults: true }],
|
||||
'@typescript-eslint/consistent-type-imports': [
|
||||
error,
|
||||
{ disallowTypeAnnotations: false, fixStyle: 'inline-type-imports' },
|
||||
|
Reference in New Issue
Block a user