Skip to content

Commit

Permalink
Fix eslint para volto 18.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
samoel-silva committed Dec 5, 2024
1 parent d7c3592 commit 67918e0
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 6 deletions.
6 changes: 2 additions & 4 deletions frontend/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
const fs = require('fs');
const projectRootPath = __dirname;
const AddonConfigurationRegistry = require('@plone/registry/src/addon-registry');
const { AddonRegistry } = require('@plone/registry/addon-registry');

let coreLocation;
if (fs.existsSync(`${projectRootPath}/core`))
coreLocation = `${projectRootPath}/core`;
else if (fs.existsSync(`${projectRootPath}/../../core`))
coreLocation = `${projectRootPath}/../../core`;

const registry = new AddonConfigurationRegistry(
`${coreLocation}/packages/volto`,
);
const { registry } = AddonRegistry.init(`${coreLocation}/packages/volto`);

// Extends ESlint configuration for adding the aliases to `src` directories in Volto addons
const addonAliases = Object.keys(registry.packages).map((o) => [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@ msgstr ""
"Content-Type: \n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"


Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@ msgstr ""
"Content-Type: \n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"


Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,5 @@ msgstr ""
"Domain: volto\n"
"X-Is-Fallback-For: es-ar es-bo es-cl es-co es-cr es-do es-ec es-es es-sv es-gt es-hn es-mx es-ni es-pa es-py es-pe es-pr es-us es-uy es-ve\n"
"X-Generator: Poedit 2.2.1\n"


Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,5 @@ msgstr ""
"Language-Name: Português do Brasil\n"
"Preferred-Encodings: utf-8\n"
"Domain: volto\n"


4 changes: 3 additions & 1 deletion frontend/packages/volto-procergs-siteplone/locales/volto.pot
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Project-Id-Version: Plone\n"
"POT-Creation-Date: 2024-03-22T12:43:34.158Z\n"
"POT-Creation-Date: 2024-12-05T08:41:48.696Z\n"
"Last-Translator: Plone i18n <plone-i18n@lists.sourceforge.net>\n"
"Language-Team: Plone i18n <plone-i18n@lists.sourceforge.net>\n"
"Content-Type: text/plain; charset=utf-8\n"
Expand All @@ -12,3 +12,5 @@ msgstr ""
"Language-Name: English\n"
"Preferred-Encodings: utf-8\n"
"Domain: volto\n"


2 changes: 1 addition & 1 deletion frontend/packages/volto-procergs-siteplone/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ const applyConfig = (config) => {
return config;
};

export default applyConfig;
export default applyConfig;

0 comments on commit 67918e0

Please sign in to comment.