Skip to content

Commit

Permalink
Merge pull request #13106 from rtibbles/no_js
Browse files Browse the repository at this point in the history
Remove .js extension from configuration imports for better compatibility
  • Loading branch information
bjester authored Feb 25, 2025
2 parents f6fceb2 + 129b639 commit c63d71b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions packages/kolibri-format/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,23 @@ const hostProjectDir = process.cwd();

let esLintConfig;
try {
esLintConfig = require(`${hostProjectDir}/.eslintrc.js`);
esLintConfig = require(`${hostProjectDir}/.eslintrc`);
} catch (e) {
esLintConfig = require('./.eslintrc.js');
esLintConfig = require('./.eslintrc');
}

let stylelintConfig;
try {
stylelintConfig = require(`${hostProjectDir}/.stylelintrc.js`);
stylelintConfig = require(`${hostProjectDir}/.stylelintrc`);
} catch (e) {
stylelintConfig = require('./.stylelintrc.js');
stylelintConfig = require('./.stylelintrc');
}

let prettierConfig;
try {
prettierConfig = require(`${hostProjectDir}/.prettierrc.js`);
prettierConfig = require(`${hostProjectDir}/.prettierrc`);
} catch (e) {
prettierConfig = require('./.prettierrc.js');
prettierConfig = require('./.prettierrc');
}

const logging = logger.getLogger('Kolibri Format');
Expand Down
2 changes: 1 addition & 1 deletion packages/kolibri-format/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "kolibri-format",
"version": "1.0.0",
"version": "1.0.1",
"description": "A module for formatting frontend code to Kolibri standards",
"repository": {
"type": "git",
Expand Down

0 comments on commit c63d71b

Please sign in to comment.