Skip to content

Commit

Permalink
Bump dependencies, apply lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobLey committed Feb 11, 2025
1 parent 5fcc847 commit c179ba2
Show file tree
Hide file tree
Showing 6 changed files with 522 additions and 521 deletions.
14 changes: 2 additions & 12 deletions leyman/eslint-config/src/lib/plugins.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import rawEslintConfig from '@eslint/js';
import type { ESLint, Linter } from 'eslint';
import type { ESLint } from 'eslint';
import rawPrettierConfig from 'eslint-config-prettier';
import rawImportPlugin from 'eslint-plugin-import';
import rawJsDocPlugin from 'eslint-plugin-jsdoc';
Expand All @@ -10,16 +9,7 @@ import rawReactHooksPlugin from 'eslint-plugin-react-hooks';
import rawSonarPlugin from 'eslint-plugin-sonarjs';
import rawUnicornPlugin from 'eslint-plugin-unicorn';

export const eslintConfig: {
configs: {
all: {
rules: Linter.RulesRecord;
};
recommended: {
rules: Linter.RulesRecord;
};
};
} = rawEslintConfig;
export { default as eslintConfig } from '@eslint/js';

/* eslint-disable @typescript-eslint/no-unsafe-assignment */
export const prettierConfig: ESLint.Plugin = rawPrettierConfig;
Expand Down
17 changes: 1 addition & 16 deletions leyman/eslint-config/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,32 +23,17 @@ declare module 'eslint-plugin-import' {
export default import('eslint').ESLint.Plugin;
}

declare module 'eslint-plugin-jsdoc' {
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
export default import('eslint').ESLint.Plugin;
}

declare module 'eslint-plugin-jsx-a11y' {
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
export default import('eslint').ESLint.Plugin;
}

declare module 'eslint-plugin-n' {
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
export default import('eslint').ESLint.Plugin;
}

declare module 'eslint-plugin-react' {
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
export default import('eslint').ESLint.Plugin;
}

declare module 'eslint-plugin-react-hooks' {
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
export default import('eslint').ESLint.Plugin;
}

declare module 'eslint-plugin-unicorn' {
declare module 'eslint-plugin-sonarjs' {
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
export default import('eslint').ESLint.Plugin;
}
Loading

0 comments on commit c179ba2

Please sign in to comment.