Skip to content

Commit 50c4e2e

Browse files
authored
Merge pull request #592 from contentstack/feature/workflow
checking workflow for sitecore
2 parents a5e9875 + 8006a6e commit 50c4e2e

File tree

2 files changed

+27
-22
lines changed

2 files changed

+27
-22
lines changed

.github/workflows/repo-sync.yml

Lines changed: 26 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -104,29 +104,33 @@ jobs:
104104
if [ ! -f "eslint.config.cjs" ]; then
105105
echo "Creating default ESLint config..."
106106
cat <<EOL > eslint.config.cjs
107-
const js = require("@eslint/js");
108-
const globals = require("globals");
109-
110-
module.exports = [
111-
js.configs.recommended,
112-
{
113-
languageOptions: {
114-
ecmaVersion: "latest",
115-
sourceType: "module",
116-
globals: globals.node,
117-
},
118-
rules: {
119-
"no-unused-vars": "warn",
120-
"no-console": "off",
121-
"@typescript-eslint/no-var-requires": 'off',
122-
"@typescript-eslint/no-var-requires": "off",
123-
"no-prototype-builtins": "off",
124-
"@typescript-eslint/no-explicit-any": "off",
125-
"no-constant-condition": "off"
107+
const js = require("@eslint/js");
108+
const globals = require("globals");
109+
const tsPlugin = require("@typescript-eslint/eslint-plugin");
110+
111+
module.exports = [
112+
js.configs.recommended,
113+
{
114+
languageOptions: {
115+
ecmaVersion: "latest",
116+
sourceType: "module",
117+
globals: globals.node,
118+
parser: require.resolve("@typescript-eslint/parser"),
119+
},
120+
plugins: {
121+
"@typescript-eslint": tsPlugin,
122+
},
123+
rules: {
124+
"no-unused-vars": "warn",
125+
"no-console": "off",
126+
"@typescript-eslint/no-var-requires": "off",
127+
"no-prototype-builtins": "off",
128+
"@typescript-eslint/no-explicit-any": "off",
129+
"no-constant-condition": "off"
130+
}
126131
}
127-
}
128-
];
129-
EOL
132+
];
133+
EOL
130134
fi
131135
132136
# # Remove unused imports and missing file references

upload-api/migration-sitecore/libs/contenttypes.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ const configChecker = path?.join('content', 'Common', 'Configuration');
1111
const append = 'a';
1212
let config = {};
1313

14+
1415
const {
1516
DATA_MAPPER_DIR,
1617
DATA_MAPPER_CONFIG_FILE,

0 commit comments

Comments
 (0)