Skip to content

Commit

Permalink
Fix lint on @plone/registry/addons-loader
Browse files Browse the repository at this point in the history
  • Loading branch information
sneridagh committed Dec 7, 2024
1 parent c32e2c6 commit 364b9b6
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions apps/rr7/.eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ module.exports = {
react: {
version: 'detect',
},
'import/core-modules': ['@plone/registry/addons-loader'],
formComponents: ['Form'],
linkComponents: [
{ name: 'Link', linkAttribute: 'to' },
Expand Down
3 changes: 3 additions & 0 deletions packages/registry/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@
"import": "./vite-plugin.js",
"types": "./vite-plugin.d.ts"
},
"./addons-loader": {
"types": "./vite-plugin.d.ts"
},
".": {
"import": "./dist/index.js",
"default": "./dist/index.cjs"
Expand Down
7 changes: 7 additions & 0 deletions packages/registry/vite-plugin.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
import { ConfigType } from './dist';
import * as vite from 'vite';

declare function PloneRegistryVitePlugin(): vite.Plugin;

declare module '@plone/registry/addons-loader' {
export default function applyAddonConfiguration(
config: ConfigType,
): ConfigType;
}

export { PloneRegistryVitePlugin };

0 comments on commit 364b9b6

Please sign in to comment.