Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 26 additions & 22 deletions .github/workflows/repo-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,29 +104,33 @@ jobs:
if [ ! -f "eslint.config.cjs" ]; then
echo "Creating default ESLint config..."
cat <<EOL > eslint.config.cjs
const js = require("@eslint/js");
const globals = require("globals");

module.exports = [
js.configs.recommended,
{
languageOptions: {
ecmaVersion: "latest",
sourceType: "module",
globals: globals.node,
},
rules: {
"no-unused-vars": "warn",
"no-console": "off",
"@typescript-eslint/no-var-requires": 'off',
"@typescript-eslint/no-var-requires": "off",
"no-prototype-builtins": "off",
"@typescript-eslint/no-explicit-any": "off",
"no-constant-condition": "off"
const js = require("@eslint/js");
const globals = require("globals");
const tsPlugin = require("@typescript-eslint/eslint-plugin");

module.exports = [
js.configs.recommended,
{
languageOptions: {
ecmaVersion: "latest",
sourceType: "module",
globals: globals.node,
parser: require.resolve("@typescript-eslint/parser"),
},
plugins: {
"@typescript-eslint": tsPlugin,
},
rules: {
"no-unused-vars": "warn",
"no-console": "off",
"@typescript-eslint/no-var-requires": "off",
"no-prototype-builtins": "off",
"@typescript-eslint/no-explicit-any": "off",
"no-constant-condition": "off"
}
}
}
];
EOL
];
EOL
fi

# # Remove unused imports and missing file references
Expand Down
1 change: 1 addition & 0 deletions upload-api/migration-sitecore/libs/contenttypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const configChecker = path?.join('content', 'Common', 'Configuration');
const append = 'a';
let config = {};


const {
DATA_MAPPER_DIR,
DATA_MAPPER_CONFIG_FILE,
Expand Down
Loading